@a-cube-io/ereceipts-js-sdk 1.0.0
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/LICENSE +41 -0
- package/README.md +444 -0
- package/dist/.tsbuildinfo +1 -0
- package/dist/auth-D6UEILKY.cjs +56 -0
- package/dist/auth-D6UEILKY.cjs.map +1 -0
- package/dist/auth-RZRIC4PK.js +7 -0
- package/dist/auth-RZRIC4PK.js.map +1 -0
- package/dist/chunk-24ZJ6SNG.cjs +624 -0
- package/dist/chunk-24ZJ6SNG.cjs.map +1 -0
- package/dist/chunk-C3YEL4ED.js +511 -0
- package/dist/chunk-C3YEL4ED.js.map +1 -0
- package/dist/chunk-K65HAAAO.js +44 -0
- package/dist/chunk-K65HAAAO.js.map +1 -0
- package/dist/chunk-NARXAXFL.cjs +215 -0
- package/dist/chunk-NARXAXFL.cjs.map +1 -0
- package/dist/chunk-UBEIMFLN.js +209 -0
- package/dist/chunk-UBEIMFLN.js.map +1 -0
- package/dist/chunk-UVUWF5FV.cjs +3964 -0
- package/dist/chunk-UVUWF5FV.cjs.map +1 -0
- package/dist/chunk-UXVFQRZK.cjs +533 -0
- package/dist/chunk-UXVFQRZK.cjs.map +1 -0
- package/dist/chunk-VDHN3FKS.js +3929 -0
- package/dist/chunk-VDHN3FKS.js.map +1 -0
- package/dist/chunk-XQKCXG4I.cjs +52 -0
- package/dist/chunk-XQKCXG4I.cjs.map +1 -0
- package/dist/chunk-YX3PJ4FC.js +590 -0
- package/dist/chunk-YX3PJ4FC.js.map +1 -0
- package/dist/client-WPBRHPKX.cjs +31 -0
- package/dist/client-WPBRHPKX.cjs.map +1 -0
- package/dist/client-Z2LXQJMF.js +6 -0
- package/dist/client-Z2LXQJMF.js.map +1 -0
- package/dist/index.cjs +1326 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +960 -0
- package/dist/index.d.ts +960 -0
- package/dist/index.js +1065 -0
- package/dist/index.js.map +1 -0
- package/dist/metafile-cjs.json +1 -0
- package/dist/metafile-esm.json +1 -0
- package/dist/queue-D7PJ536B.js +4 -0
- package/dist/queue-D7PJ536B.js.map +1 -0
- package/dist/queue-JHWXWX2B.cjs +13 -0
- package/dist/queue-JHWXWX2B.cjs.map +1 -0
- package/dist/token-3CIX4E64.cjs +13 -0
- package/dist/token-3CIX4E64.cjs.map +1 -0
- package/dist/token-4OAGWTVG.js +4 -0
- package/dist/token-4OAGWTVG.js.map +1 -0
- package/openapi.yaml +2732 -0
- package/package.json +115 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/api/mf1.ts","../src/api/mf2.ts","../src/hooks/useAuth.ts","../src/hooks/useRetryQueue.ts","../src/hooks/useProviderFlow.ts","../src/components/Button.tsx","../src/components/FormInput.tsx","../src/storage/certificate.ts","../src/constants/roles.ts","../src/index.ts"],"names":["createCashier","data","client","getAPIClient","response","post","MF1_PATHS","CASHIERS","getCashiers","page","size","get","getCashierById","id","CASHIER_BY_ID","getCurrentCashier","CASHIER_ME","deleteCashier","delete","getPointOfSales","status","url","POINT_OF_SALES","getPointOfSaleBySerial","serialNumber","POINT_OF_SALE_BY_SERIAL","activatePointOfSale","registrationKey","POINT_OF_SALE_ACTIVATION","registration_key","createInactivityPeriod","POINT_OF_SALE_INACTIVITY","setPointOfSaleOffline","timestamp","reason","POINT_OF_SALE_OFFLINE","closeJournal","CLOSE_JOURNAL","createReceipt","RECEIPTS","getReceipts","getReceiptById","uuid","RECEIPT_BY_UUID","getReceiptDetails","format","headers","Accept","RECEIPT_DETAILS","Blob","type","voidReceipt","voidReceiptWithProof","RECEIPT_VOID_WITH_PROOF","returnReceiptItems","RECEIPT_RETURN","returnReceiptItemsWithProof","RECEIPT_RETURN_WITH_PROOF","createCashRegister","CASH_REGISTER","getCashRegisters","getCashRegisterById","CASH_REGISTER_BY_ID","getMTLSCertificate","CASH_REGISTER_MTLS_CERT","createMerchant","MF2_PATHS","MERCHANTS","getMerchants","getMerchantById","MERCHANT_BY_UUID","updateMerchant","put","useAuth","state","setState","useState","isAuthenticated","isLoading","user","token","error","setError","clearError","useCallback","checkAuthStatus","prev","authenticated","getCurrentUser","err","console","loginAsProvider","email","password","tokenData","loginProvider","access_token","errorMessage","AuthenticationError","message","loginAsMerchant","loginMerchant","loginAsCashier","loginCashier","handleLogout","logout","useEffect","useRetryQueue","stats","setStats","total","byPriority","high","medium","low","isProcessing","setIsProcessing","networkConnected","setNetworkConnected","isConnected","refreshStats","queueStats","RequestQueue","getQueueStats","networkLogger","processQueue","info","processOfflineQueue","clearQueue","processingTimeout","handleNetworkChange","setTimeout","unsubscribe","addNetworkListener","clearTimeout","interval","setInterval","clearInterval","TOTAL_STEPS","useProviderFlow","currentStep","merchantData","createdMerchant","setMerchantData","validateCurrentStep","emailValidation","validateEmail","fiscalIdValidation","validateFiscalId","fiscal_id","isValid","errors","name","trim","field","code","address","validateAddress","createMerchantFlow","merchant","detail","nextStep","Math","min","previousStep","max","resetFlow","Button","title","onPress","variant","disabled","loading","fullWidth","style","textStyle","testID","isDisabled","buttonStyle","styles","base","filter","Boolean","textColor","baseText","disabledText","React","TouchableOpacity","accessibilityRole","accessibilityState","accessibilityLabel","View","content","ActivityIndicator","color","loader","Text","StyleSheet","create","borderRadius","justifyContent","alignItems","borderWidth","borderColor","flexDirection","marginRight","primary","backgroundColor","secondary","outline","danger","small","paddingHorizontal","paddingVertical","minHeight","large","opacity","width","fontWeight","textAlign","primaryText","secondaryText","outlineText","dangerText","smallText","fontSize","mediumText","largeText","FormInput","label","helperText","required","containerStyle","labelStyle","inputStyle","errorStyle","helperStyle","leftIcon","rightIcon","showPasswordToggle","secureTextEntry","textInputProps","ref","isPasswordVisible","setIsPasswordVisible","isFocused","setIsFocused","isPassword","actualSecureTextEntry","handleTogglePassword","inputContainerStyle","inputContainer","inputContainerFocused","inputContainerError","textInputStyle","input","inputWithLeftIcon","inputWithRightIcon","container","labelContainer","leftIconContainer","TextInput","onFocus","onBlur","placeholderTextColor","rightIconContainer","passwordToggle","passwordToggleText","errorText","displayName","marginBottom","shadowColor","shadowOffset","height","shadowOpacity","shadowRadius","elevation","flex","paddingLeft","paddingRight","padding","marginTop","CertificateStorage","storeMTLSCertificate","certificate","privateKey","certData","createdAt","Date","toISOString","certKey","getMTLSCertificateKey","SecureTokenStorage","setItem","JSON","stringify","certDataStr","getItem","parse","warn","removeMTLSCertificate","privateKeyKey","getMTLSPrivateKeyKey","Promise","all","removeItem","listCertificates","certificates","resolve","hasCertificate","validateCertificate","expiresAt","expiryDate","parseCertificateInfo","certificatePEM","cert","replace","fingerprint","substring","clearAllCertificates","map","UserRole","ROLE_PERMISSIONS","hasPermission","userRole","permission","permissions","includes","isProvider","role","isMerchant","isCashier","SDK_VERSION","SDK_NAME","initSDK","config","initializeAPIClient","quickLoginProvider","success","quickLoginMerchant","isSDKReady","global","__ACUBE_SDK__","version","clearAllData","clearAll"],"mappings":";;;;;;;;;;;;;;;;AAkBO,IAAMA,aAAAA,iCAAuBC,IAAAA,KAAAA;AAClC,EAAA,MAAMC,SAASC,YAAAA,EAAAA;AACf,EAAA,MAAMC,WAAW,MAAMF,MAAAA,CAAOG,IAAAA,CAAoBC,SAAAA,CAAUC,UAAUN,IAAAA,CAAAA;AACtE,EAAA,OAAOG,QAAAA,CAASH,IAAAA;AAClB,CAAA,EAJ6B,eAAA;AAMtB,IAAMO,WAAAA,mBAAc,MAAA,CAAA,OAAOC,IAAAA,GAAe,CAAA,EAAGC,OAAe,EAAA,KAAE;AACnE,EAAA,MAAMR,SAASC,YAAAA,EAAAA;AACf,EAAA,MAAMC,QAAAA,GAAW,MAAMF,MAAAA,CAAOS,GAAAA,CAC5B,CAAA,EAAGL,SAAAA,CAAUC,QAAQ,CAAA,MAAA,EAASE,IAAAA,CAAAA,MAAAA,EAAaC,IAAAA,CAAAA,CAAM,CAAA;AAEnD,EAAA,OAAON,QAAAA,CAASH,IAAAA;AAClB,CAAA,EAN2B,aAAA;AAQpB,IAAMW,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IAAA,OAAO,KAAA;AACT,EAAA;AACF,CAAA,EAR0B,YAAA;AAmBuD;AAE/E,EAAA,IAAI,OAAOmV,eAAW,WAAA,EAAa;AAChCA,IAAAA,UAAAA,CAAQC,aAAAA,GAAgB;AACvBnV,MAAAA,YAAAA,kBAAc,MAAA,CAAA,YAAA;AACZ,QAAA,MAAM,EAAEA,YAAAA,EAAAA,aAAAA,EAAY,GAAK,MAAM,OAAO,sBAAA,CAAA;AACtC,QAAA,OAAOA,aAAAA,EAAAA;MACT,CAAA,EAHc,cAAA,CAAA;MAIdoV,OAAAA,EAASX,WAAAA;AACTY,MAAAA,YAAAA,kBAAc,MAAA,CAAA,YAAA;AACZ,QAAA,MAAM,EAAEpD,kBAAAA,EAAAA,mBAAAA,EAAkB,GAAK,MAAM,OAAO,qBAAA,CAAA;AAC5C,QAAA,MAAM,EAAE1K,YAAAA,EAAAA,aAAAA,EAAY,GAAK,MAAM,OAAO,qBAAA,CAAA;AACtC,QAAA,MAAM0K,oBAAmBqD,QAAAA,EAAQ;AACjC,QAAA,MAAM/N,cAAaM,UAAAA,EAAU;MAC/B,CAAA,EALc,cAAA;AAMhB,KAAA;AACF,EAAA;AACF","file":"index.js","sourcesContent":["// MF1 API endpoints - Core e-receipt functionality\nimport { getAPIClient } from './client';\nimport { MF1_PATHS } from '../constants/endpoints';\nimport {\n CashRegisterCreate,\n CashRegisterOutput,\n CashierCreateInput,\n CashierOutput,\n PEMPublic,\n PaginatedResponse,\n ReceiptDetailsOutput,\n ReceiptInput,\n ReceiptOutput,\n} from './types.generated';\n\n/**\n * Cashier Management\n */\nexport const createCashier = async (data: CashierCreateInput): Promise<CashierOutput> => {\n const client = getAPIClient();\n const response = await client.post<CashierOutput>(MF1_PATHS.CASHIERS, data);\n return response.data;\n};\n\nexport const getCashiers = async (page: number = 1, size: number = 30): Promise<PaginatedResponse<CashierOutput>> => {\n const client = getAPIClient();\n const response = await client.get<PaginatedResponse<CashierOutput>>(\n `${MF1_PATHS.CASHIERS}?page=${page}&size=${size}`\n );\n return response.data;\n};\n\nexport const getCashierById = async (id: number): Promise<CashierOutput> => {\n const client = getAPIClient();\n const response = await client.get<CashierOutput>(MF1_PATHS.CASHIER_BY_ID(id));\n return response.data;\n};\n\nexport const getCurrentCashier = async (): Promise<CashierOutput> => {\n const client = getAPIClient();\n const response = await client.get<CashierOutput>(MF1_PATHS.CASHIER_ME);\n return response.data;\n};\n\nexport const deleteCashier = async (id: number): Promise<void> => {\n const client = getAPIClient();\n await client.delete(MF1_PATHS.CASHIER_BY_ID(id));\n};\n\n/**\n * Point of Sale Management\n */\nexport const getPointOfSales = async (\n status?: string,\n page: number = 1,\n size: number = 30\n): Promise<PaginatedResponse<PEMPublic>> => {\n const client = getAPIClient();\n let url = `${MF1_PATHS.POINT_OF_SALES}?page=${page}&size=${size}`;\n if (status) {\n url += `&status=${status}`;\n }\n const response = await client.get<PaginatedResponse<PEMPublic>>(url);\n return response.data;\n};\n\nexport const getPointOfSaleBySerial = async (serialNumber: string): Promise<PEMPublic> => {\n const client = getAPIClient();\n const response = await client.get<PEMPublic>(MF1_PATHS.POINT_OF_SALE_BY_SERIAL(serialNumber));\n return response.data;\n};\n\nexport const activatePointOfSale = async (\n serialNumber: string,\n registrationKey: string\n): Promise<void> => {\n const client = getAPIClient();\n await client.post(MF1_PATHS.POINT_OF_SALE_ACTIVATION(serialNumber), {\n registration_key: registrationKey,\n });\n};\n\nexport const createInactivityPeriod = async (serialNumber: string): Promise<void> => {\n const client = getAPIClient();\n await client.post(MF1_PATHS.POINT_OF_SALE_INACTIVITY(serialNumber));\n};\n\nexport const setPointOfSaleOffline = async (\n serialNumber: string,\n timestamp: string,\n reason: string\n): Promise<void> => {\n const client = getAPIClient();\n await client.post(MF1_PATHS.POINT_OF_SALE_OFFLINE(serialNumber), {\n timestamp,\n reason,\n });\n};\n\nexport const closeJournal = async (): Promise<void> => {\n const client = getAPIClient();\n await client.post(MF1_PATHS.CLOSE_JOURNAL);\n};\n\n/**\n * Receipt Management\n */\nexport const createReceipt = async (data: ReceiptInput): Promise<ReceiptOutput> => {\n const client = getAPIClient();\n const response = await client.post<ReceiptOutput>(MF1_PATHS.RECEIPTS, data);\n return response.data;\n};\n\nexport const getReceipts = async (\n page: number = 1,\n size: number = 30\n): Promise<PaginatedResponse<ReceiptOutput>> => {\n const client = getAPIClient();\n const response = await client.get<PaginatedResponse<ReceiptOutput>>(\n `${MF1_PATHS.RECEIPTS}?page=${page}&size=${size}`\n );\n return response.data;\n};\n\nexport const getReceiptById = async (uuid: string): Promise<ReceiptOutput> => {\n const client = getAPIClient();\n const response = await client.get<ReceiptOutput>(MF1_PATHS.RECEIPT_BY_UUID(uuid));\n return response.data;\n};\n\nexport const getReceiptDetails = async (\n uuid: string,\n format: 'json' | 'pdf' = 'json'\n): Promise<ReceiptDetailsOutput | Blob> => {\n const client = getAPIClient();\n const headers = format === 'pdf' ? { Accept: 'application/pdf' } : { Accept: 'application/json' };\n \n const response = await client.get(MF1_PATHS.RECEIPT_DETAILS(uuid), { headers });\n \n if (format === 'pdf') {\n return new Blob([response.data], { type: 'application/pdf' });\n }\n \n return response.data as ReceiptDetailsOutput;\n};\n\nexport const voidReceipt = async (data: {\n pem_id?: string;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n items: any[];\n document_number: string;\n document_date?: string;\n lottery_code?: string;\n}): Promise<void> => {\n const client = getAPIClient();\n await client.delete(MF1_PATHS.RECEIPTS, { data });\n};\n\nexport const voidReceiptWithProof = async (data: {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n items: any[];\n proof: 'POS' | 'VR' | 'ND';\n document_datetime: string;\n}): Promise<void> => {\n const client = getAPIClient();\n await client.delete(MF1_PATHS.RECEIPT_VOID_WITH_PROOF, { data });\n};\n\nexport const returnReceiptItems = async (data: {\n pem_id?: string;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n items: any[];\n document_number: string;\n document_date?: string;\n lottery_code?: string;\n}): Promise<ReceiptOutput> => {\n const client = getAPIClient();\n const response = await client.post<ReceiptOutput>(MF1_PATHS.RECEIPT_RETURN, data);\n return response.data;\n};\n\nexport const returnReceiptItemsWithProof = async (data: {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n items: any[];\n proof: 'POS' | 'VR' | 'ND';\n document_datetime: string;\n}): Promise<ReceiptOutput> => {\n const client = getAPIClient();\n const response = await client.post<ReceiptOutput>(MF1_PATHS.RECEIPT_RETURN_WITH_PROOF, data);\n return response.data;\n};\n\n/**\n * Cash Register Management\n */\nexport const createCashRegister = async (data: CashRegisterCreate): Promise<CashRegisterOutput> => {\n const client = getAPIClient();\n const response = await client.post<CashRegisterOutput>(MF1_PATHS.CASH_REGISTER, data);\n return response.data;\n};\n\nexport const getCashRegisters = async (\n page: number = 1,\n size: number = 30\n): Promise<PaginatedResponse<CashRegisterOutput>> => {\n const client = getAPIClient();\n const response = await client.get<PaginatedResponse<CashRegisterOutput>>(\n `${MF1_PATHS.CASH_REGISTER}?page=${page}&size=${size}`\n );\n return response.data;\n};\n\nexport const getCashRegisterById = async (id: string): Promise<CashRegisterOutput> => {\n const client = getAPIClient();\n const response = await client.get<CashRegisterOutput>(MF1_PATHS.CASH_REGISTER_BY_ID(id));\n return response.data;\n};\n\nexport const getMTLSCertificate = async (id: string): Promise<string> => {\n const client = getAPIClient();\n const response = await client.get<string>(MF1_PATHS.CASH_REGISTER_MTLS_CERT(id));\n return response.data;\n};","// MF2 API endpoints - Merchant management\nimport { getAPIClient } from './client';\nimport { MF2_PATHS } from '../constants/endpoints';\nimport {\n MerchantCreateInput,\n MerchantOutput,\n MerchantUpdateInput,\n} from './types.generated';\n\n/**\n * Create a new merchant\n */\nexport const createMerchant = async (data: MerchantCreateInput): Promise<MerchantOutput> => {\n const client = getAPIClient();\n const response = await client.post<MerchantOutput>(MF2_PATHS.MERCHANTS, data);\n return response.data;\n};\n\n/**\n * Get list of merchants\n */\nexport const getMerchants = async (page: number = 1): Promise<MerchantOutput[]> => {\n const client = getAPIClient();\n const response = await client.get<MerchantOutput[]>(\n `${MF2_PATHS.MERCHANTS}?page=${page}`\n );\n return response.data;\n};\n\n/**\n * Get merchant by UUID\n */\nexport const getMerchantById = async (uuid: string): Promise<MerchantOutput> => {\n const client = getAPIClient();\n const response = await client.get<MerchantOutput>(MF2_PATHS.MERCHANT_BY_UUID(uuid));\n return response.data;\n};\n\n/**\n * Update merchant information\n */\nexport const updateMerchant = async (\n uuid: string,\n data: MerchantUpdateInput\n): Promise<MerchantOutput> => {\n const client = getAPIClient();\n const response = await client.put<MerchantOutput>(MF2_PATHS.MERCHANT_BY_UUID(uuid), data);\n return response.data;\n};","import { useCallback, useEffect, useState } from 'react';\nimport { \n AuthenticationError, \n getCurrentUser, \n isAuthenticated, \n loginCashier, \n loginMerchant, \n loginProvider,\n logout \n} from '../api/auth';\n\nexport interface AuthState {\n isAuthenticated: boolean;\n isLoading: boolean;\n user: {\n email: string;\n role: string;\n } | null;\n token: string | null;\n}\n\nexport interface AuthActions {\n loginAsProvider: (email: string, password: string) => Promise<void>;\n loginAsMerchant: (email: string, password: string) => Promise<void>;\n loginAsCashier: (email: string, password: string) => Promise<void>;\n logout: () => Promise<void>;\n checkAuthStatus: () => Promise<void>;\n}\n\nexport interface UseAuthReturn extends AuthState, AuthActions {\n error: string | null;\n clearError: () => void;\n}\n\nexport const useAuth = (): UseAuthReturn => {\n const [state, setState] = useState<AuthState>({\n isAuthenticated: false,\n isLoading: true,\n user: null,\n token: null,\n });\n\n const [error, setError] = useState<string | null>(null);\n\n const clearError = useCallback(() => {\n setError(null);\n }, []);\n\n const checkAuthStatus = useCallback(async () => {\n try {\n setState(prev => ({ ...prev, isLoading: true }));\n \n const authenticated = await isAuthenticated();\n if (authenticated) {\n const user = await getCurrentUser();\n setState(prev => ({\n ...prev,\n isAuthenticated: true,\n user,\n isLoading: false,\n }));\n } else {\n setState(prev => ({\n ...prev,\n isAuthenticated: false,\n user: null,\n token: null,\n isLoading: false,\n }));\n }\n } catch (err) {\n console.error('Error checking auth status:', err);\n setState(prev => ({\n ...prev,\n isAuthenticated: false,\n user: null,\n token: null,\n isLoading: false,\n }));\n }\n }, []);\n\n const loginAsProvider = useCallback(async (email: string, password: string) => {\n try {\n setError(null);\n setState(prev => ({ ...prev, isLoading: true }));\n \n const tokenData = await loginProvider(email, password);\n const user = await getCurrentUser();\n \n setState(prev => ({\n ...prev,\n isAuthenticated: true,\n user,\n token: tokenData.access_token,\n isLoading: false,\n }));\n } catch (err) {\n const errorMessage = err instanceof AuthenticationError \n ? err.message \n : 'Login failed. Please try again.';\n \n setError(errorMessage);\n setState(prev => ({\n ...prev,\n isAuthenticated: false,\n user: null,\n token: null,\n isLoading: false,\n }));\n throw err;\n }\n }, []);\n\n const loginAsMerchant = useCallback(async (email: string, password: string) => {\n try {\n setError(null);\n setState(prev => ({ ...prev, isLoading: true }));\n \n const tokenData = await loginMerchant(email, password);\n const user = await getCurrentUser();\n \n setState(prev => ({\n ...prev,\n isAuthenticated: true,\n user,\n token: tokenData.access_token,\n isLoading: false,\n }));\n } catch (err) {\n const errorMessage = err instanceof AuthenticationError \n ? err.message \n : 'Login failed. Please try again.';\n \n setError(errorMessage);\n setState(prev => ({\n ...prev,\n isAuthenticated: false,\n user: null,\n token: null,\n isLoading: false,\n }));\n throw err;\n }\n }, []);\n\n const loginAsCashier = useCallback(async (email: string, password: string) => {\n try {\n setError(null);\n setState(prev => ({ ...prev, isLoading: true }));\n \n const tokenData = await loginCashier(email, password);\n const user = await getCurrentUser();\n \n setState(prev => ({\n ...prev,\n isAuthenticated: true,\n user,\n token: tokenData.access_token,\n isLoading: false,\n }));\n } catch (err) {\n const errorMessage = err instanceof AuthenticationError \n ? err.message \n : 'Login failed. Please try again.';\n \n setError(errorMessage);\n setState(prev => ({\n ...prev,\n isAuthenticated: false,\n user: null,\n token: null,\n isLoading: false,\n }));\n throw err;\n }\n }, []);\n\n const handleLogout = useCallback(async () => {\n try {\n setState(prev => ({ ...prev, isLoading: true }));\n \n await logout();\n \n setState({\n isAuthenticated: false,\n user: null,\n token: null,\n isLoading: false,\n });\n \n setError(null);\n } catch (err) {\n console.error('Logout error:', err);\n // Force state reset even if logout fails\n setState({\n isAuthenticated: false,\n user: null,\n token: null,\n isLoading: false,\n });\n }\n }, []);\n\n // Check authentication status on mount\n useEffect(() => {\n void checkAuthStatus();\n }, [checkAuthStatus]);\n\n return {\n // State\n isAuthenticated: state.isAuthenticated,\n isLoading: state.isLoading,\n user: state.user,\n token: state.token,\n error,\n \n // Actions\n loginAsProvider,\n loginAsMerchant,\n loginAsCashier,\n logout: handleLogout,\n checkAuthStatus,\n clearError,\n };\n};","import { useCallback, useEffect, useState } from 'react';\nimport { getAPIClient } from '../api/client';\nimport { RequestQueue } from '../storage/queue';\nimport { addNetworkListener, isConnected } from '../utils/network';\nimport { networkLogger } from '../utils/logger';\n\nexport interface QueueStats {\n total: number;\n byPriority: { high: number; medium: number; low: number };\n oldestTimestamp?: number;\n newestTimestamp?: number;\n}\n\nexport interface UseRetryQueueReturn {\n stats: QueueStats;\n isProcessing: boolean;\n isConnected: boolean;\n processQueue: () => Promise<void>;\n clearQueue: () => Promise<void>;\n refreshStats: () => Promise<void>;\n}\n\nexport const useRetryQueue = (): UseRetryQueueReturn => {\n const [stats, setStats] = useState<QueueStats>({\n total: 0,\n byPriority: { high: 0, medium: 0, low: 0 },\n });\n \n const [isProcessing, setIsProcessing] = useState(false);\n const [networkConnected, setNetworkConnected] = useState(isConnected());\n\n const refreshStats = useCallback(async () => {\n try {\n const queueStats = await RequestQueue.getQueueStats();\n setStats(queueStats);\n } catch (error) {\n networkLogger.error('Failed to refresh queue stats', error);\n }\n }, []);\n\n const processQueue = useCallback(async () => {\n if (isProcessing || !networkConnected) {\n return;\n }\n\n try {\n setIsProcessing(true);\n networkLogger.info('Starting manual queue processing');\n \n const client = getAPIClient();\n await client.processOfflineQueue();\n \n // Refresh stats after processing\n await refreshStats();\n \n networkLogger.info('Manual queue processing completed');\n } catch (error) {\n networkLogger.error('Manual queue processing failed', error);\n } finally {\n setIsProcessing(false);\n }\n }, [isProcessing, networkConnected, refreshStats]);\n\n const clearQueue = useCallback(async () => {\n try {\n networkLogger.info('Clearing retry queue');\n \n await RequestQueue.clearQueue();\n await refreshStats();\n \n networkLogger.info('Retry queue cleared');\n } catch (error) {\n networkLogger.error('Failed to clear retry queue', error);\n }\n }, [refreshStats]);\n\n // Auto-process queue when network comes back online\n useEffect(() => {\n let processingTimeout: NodeJS.Timeout;\n\n const handleNetworkChange = (state: { isConnected: boolean }) => {\n setNetworkConnected(state.isConnected);\n \n if (state.isConnected && !isProcessing) {\n // Wait a bit for network to stabilize before processing\n processingTimeout = setTimeout(() => {\n void (async () => {\n try {\n networkLogger.info('Network reconnected, auto-processing queue');\n await processQueue();\n } catch (error) {\n networkLogger.error('Auto queue processing failed', error);\n }\n })();\n }, 2000);\n }\n };\n\n const unsubscribe = addNetworkListener(handleNetworkChange);\n\n return () => {\n unsubscribe();\n if (processingTimeout) {\n clearTimeout(processingTimeout);\n }\n };\n }, [processQueue, isProcessing]);\n\n // Refresh stats periodically\n useEffect(() => {\n // Initial load\n void refreshStats();\n\n // Set up periodic refresh\n const interval = setInterval(() => {\n void refreshStats();\n }, 30000); // Every 30 seconds\n\n return () => clearInterval(interval);\n }, [refreshStats]);\n\n // Monitor queue changes by polling (could be optimized with events)\n useEffect(() => {\n const interval = setInterval(() => {\n if (!isProcessing) {\n void refreshStats();\n }\n }, 10000); // Every 10 seconds\n\n return () => clearInterval(interval);\n }, [isProcessing, refreshStats]);\n\n return {\n stats,\n isProcessing,\n isConnected: networkConnected,\n processQueue,\n clearQueue,\n refreshStats,\n };\n};","import { useCallback, useState } from 'react';\nimport { createMerchant } from '../api/mf2';\nimport { MerchantCreateInput, MerchantOutput } from '../api/types.generated';\nimport { ValidationResult, validateAddress, validateEmail, validateFiscalId } from '../utils/validation';\n\nexport interface ProviderFlowState {\n isLoading: boolean;\n currentStep: number;\n merchantData: Partial<MerchantCreateInput>;\n createdMerchant: MerchantOutput | null;\n}\n\nexport interface UseProviderFlowReturn extends ProviderFlowState {\n error: string | null;\n setMerchantData: (data: Partial<MerchantCreateInput>) => void;\n validateCurrentStep: () => ValidationResult;\n createMerchantFlow: (data: MerchantCreateInput) => Promise<MerchantOutput>;\n nextStep: () => void;\n previousStep: () => void;\n resetFlow: () => void;\n clearError: () => void;\n}\n\nconst TOTAL_STEPS = 3; // Account info, Business info, Address\n\nexport const useProviderFlow = (): UseProviderFlowReturn => {\n const [state, setState] = useState<ProviderFlowState>({\n isLoading: false,\n currentStep: 1,\n merchantData: {},\n createdMerchant: null,\n });\n \n const [error, setError] = useState<string | null>(null);\n\n const setMerchantData = useCallback((data: Partial<MerchantCreateInput>) => {\n setState(prev => ({\n ...prev,\n merchantData: { ...prev.merchantData, ...data },\n }));\n }, []);\n\n const validateCurrentStep = useCallback((): ValidationResult => {\n const { merchantData, currentStep } = state;\n \n switch (currentStep) {\n case 1: { // Account info\n const emailValidation = validateEmail(merchantData.email ?? '');\n const fiscalIdValidation = validateFiscalId(merchantData.fiscal_id ?? '');\n\n return {\n isValid: emailValidation.isValid && fiscalIdValidation.isValid,\n errors: [...emailValidation.errors, ...fiscalIdValidation.errors],\n };\n }\n \n case 2: // Business info\n if (!merchantData.name || merchantData.name.trim() === '') {\n return {\n isValid: false,\n errors: [{\n field: 'name',\n message: 'Business name is required',\n code: 'NAME_REQUIRED',\n }],\n };\n }\n return { isValid: true, errors: [] };\n \n case 3: // Address\n if (merchantData.address) {\n return validateAddress(merchantData.address);\n }\n return { isValid: true, errors: [] }; // Address is optional\n \n default:\n return { isValid: true, errors: [] };\n }\n }, [state]);\n\n const createMerchantFlow = useCallback(async (data: MerchantCreateInput): Promise<MerchantOutput> => {\n try {\n setError(null);\n setState(prev => ({ ...prev, isLoading: true }));\n \n const merchant = await createMerchant(data);\n \n setState(prev => ({\n ...prev,\n createdMerchant: merchant,\n isLoading: false,\n }));\n \n return merchant;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n } catch (err: any) {\n const errorMessage = err.response?.data?.detail || 'Failed to create merchant';\n setError(errorMessage);\n \n setState(prev => ({ ...prev, isLoading: false }));\n throw err;\n }\n }, []);\n\n const nextStep = useCallback(() => {\n setState(prev => ({\n ...prev,\n currentStep: Math.min(prev.currentStep + 1, TOTAL_STEPS),\n }));\n }, []);\n\n const previousStep = useCallback(() => {\n setState(prev => ({\n ...prev,\n currentStep: Math.max(prev.currentStep - 1, 1),\n }));\n }, []);\n\n const resetFlow = useCallback(() => {\n setState({\n isLoading: false,\n currentStep: 1,\n merchantData: {},\n createdMerchant: null,\n });\n setError(null);\n }, []);\n\n const clearError = useCallback(() => {\n setError(null);\n }, []);\n\n return {\n ...state,\n error,\n setMerchantData,\n validateCurrentStep,\n createMerchantFlow,\n nextStep,\n previousStep,\n resetFlow,\n clearError,\n };\n};","import React from 'react';\nimport { \n ActivityIndicator, \n StyleSheet, \n Text, \n TextStyle, \n TouchableOpacity,\n View,\n ViewStyle,\n} from 'react-native';\n\nexport interface ButtonProps {\n title: string;\n onPress: () => void;\n variant?: 'primary' | 'secondary' | 'outline' | 'danger';\n size?: 'small' | 'medium' | 'large';\n disabled?: boolean;\n loading?: boolean;\n fullWidth?: boolean;\n style?: ViewStyle;\n textStyle?: TextStyle;\n testID?: string;\n}\n\nexport const Button: React.FC<ButtonProps> = ({\n title,\n onPress,\n variant = 'primary',\n size = 'medium',\n disabled = false,\n loading = false,\n fullWidth = false,\n style,\n textStyle,\n testID,\n}) => {\n const isDisabled = disabled || loading;\n\n const buttonStyle: ViewStyle = [\n styles.base,\n styles[variant],\n styles[size],\n fullWidth && styles.fullWidth,\n isDisabled && styles.disabled,\n style,\n ].filter(Boolean) as ViewStyle;\n\n const textColor: TextStyle = [\n styles.baseText,\n styles[`${variant}Text`],\n styles[`${size}Text`],\n isDisabled && styles.disabledText,\n textStyle,\n ].filter(Boolean) as TextStyle;\n\n return (\n <TouchableOpacity\n style={buttonStyle}\n onPress={onPress}\n disabled={isDisabled}\n testID={testID}\n accessibilityRole=\"button\"\n accessibilityState={{ disabled: isDisabled }}\n accessibilityLabel={title}\n >\n <View style={styles.content}>\n {loading && (\n <ActivityIndicator\n size=\"small\"\n color={variant === 'outline' ? '#007AFF' : '#FFFFFF'}\n style={styles.loader}\n />\n )}\n <Text style={textColor}>\n {title}\n </Text>\n </View>\n </TouchableOpacity>\n );\n};\n\nconst styles = StyleSheet.create({\n base: {\n borderRadius: 8,\n justifyContent: 'center',\n alignItems: 'center',\n borderWidth: 1,\n borderColor: 'transparent',\n },\n \n content: {\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'center',\n },\n \n loader: {\n marginRight: 8,\n },\n\n // Variants\n primary: {\n backgroundColor: '#007AFF',\n borderColor: '#007AFF',\n },\n \n secondary: {\n backgroundColor: '#6C757D',\n borderColor: '#6C757D',\n },\n \n outline: {\n backgroundColor: 'transparent',\n borderColor: '#007AFF',\n borderWidth: 1,\n },\n \n danger: {\n backgroundColor: '#DC3545',\n borderColor: '#DC3545',\n },\n\n // Sizes\n small: {\n paddingHorizontal: 12,\n paddingVertical: 6,\n minHeight: 32,\n },\n \n medium: {\n paddingHorizontal: 16,\n paddingVertical: 10,\n minHeight: 44,\n },\n \n large: {\n paddingHorizontal: 24,\n paddingVertical: 14,\n minHeight: 52,\n },\n\n // States\n disabled: {\n opacity: 0.5,\n },\n \n fullWidth: {\n width: '100%',\n },\n\n // Text styles\n baseText: {\n fontWeight: '600',\n textAlign: 'center',\n },\n \n primaryText: {\n color: '#FFFFFF',\n },\n \n secondaryText: {\n color: '#FFFFFF',\n },\n \n outlineText: {\n color: '#007AFF',\n },\n \n dangerText: {\n color: '#FFFFFF',\n },\n \n smallText: {\n fontSize: 14,\n },\n \n mediumText: {\n fontSize: 16,\n },\n \n largeText: {\n fontSize: 18,\n },\n \n disabledText: {\n opacity: 0.7,\n },\n});\n\nexport default Button;","import React, { forwardRef, useState } from 'react';\nimport {\n StyleSheet,\n Text,\n TextInput,\n TextInputProps,\n TextStyle,\n TouchableOpacity,\n View,\n ViewStyle,\n} from 'react-native';\n\nexport interface FormInputProps extends TextInputProps {\n label?: string;\n error?: string;\n helperText?: string;\n required?: boolean;\n containerStyle?: ViewStyle;\n labelStyle?: TextStyle;\n inputStyle?: TextStyle;\n errorStyle?: TextStyle;\n helperStyle?: TextStyle;\n leftIcon?: React.ReactNode;\n rightIcon?: React.ReactNode;\n showPasswordToggle?: boolean;\n}\n\nexport const FormInput = forwardRef<TextInput, FormInputProps>(({\n label,\n error,\n helperText,\n required = false,\n containerStyle,\n labelStyle,\n inputStyle,\n errorStyle,\n helperStyle,\n leftIcon,\n rightIcon,\n showPasswordToggle = false,\n secureTextEntry,\n ...textInputProps\n}, ref) => {\n const [isPasswordVisible, setIsPasswordVisible] = useState(false);\n const [isFocused, setIsFocused] = useState(false);\n\n const isPassword = secureTextEntry ?? showPasswordToggle;\n const actualSecureTextEntry = isPassword ? !isPasswordVisible : false;\n\n const handleTogglePassword = () => {\n setIsPasswordVisible(!isPasswordVisible);\n };\n\n const inputContainerStyle = [\n styles.inputContainer,\n isFocused && styles.inputContainerFocused,\n error && styles.inputContainerError,\n ].filter(Boolean);\n\n const textInputStyle = [\n styles.input,\n leftIcon && styles.inputWithLeftIcon,\n (rightIcon ?? showPasswordToggle) && styles.inputWithRightIcon,\n inputStyle,\n ].filter(Boolean);\n\n return (\n <View style={[styles.container, containerStyle]}>\n {label && (\n <View style={styles.labelContainer}>\n <Text style={[styles.label, labelStyle]}>\n {label}\n {required && <Text style={styles.required}> *</Text>}\n </Text>\n </View>\n )}\n \n <View style={inputContainerStyle as ViewStyle}>\n {leftIcon && (\n <View style={styles.leftIconContainer}>\n {leftIcon}\n </View>\n )}\n \n <TextInput\n ref={ref}\n style={textInputStyle as TextStyle}\n secureTextEntry={actualSecureTextEntry}\n onFocus={() => setIsFocused(true)}\n onBlur={() => setIsFocused(false)}\n placeholderTextColor=\"#999999\"\n {...textInputProps}\n />\n \n {(rightIcon ?? showPasswordToggle) && (\n <View style={styles.rightIconContainer}>\n {showPasswordToggle ? (\n <TouchableOpacity\n onPress={handleTogglePassword}\n style={styles.passwordToggle}\n accessibilityRole=\"button\"\n accessibilityLabel={isPasswordVisible ? 'Hide password' : 'Show password'}\n >\n <Text style={styles.passwordToggleText}>\n {isPasswordVisible ? '🙈' : '👁️'}\n </Text>\n </TouchableOpacity>\n ) : (\n rightIcon\n )}\n </View>\n )}\n </View>\n \n {error && (\n <Text style={[styles.errorText, errorStyle]}>\n {error}\n </Text>\n )}\n \n {helperText && !error && (\n <Text style={[styles.helperText, helperStyle]}>\n {helperText}\n </Text>\n )}\n </View>\n );\n});\n\nFormInput.displayName = 'FormInput';\n\nconst styles = StyleSheet.create({\n container: {\n marginBottom: 16,\n },\n \n labelContainer: {\n marginBottom: 6,\n },\n \n label: {\n fontSize: 16,\n fontWeight: '500',\n color: '#333333',\n },\n \n required: {\n color: '#DC3545',\n },\n \n inputContainer: {\n flexDirection: 'row',\n alignItems: 'center',\n borderWidth: 1,\n borderColor: '#CCCCCC',\n borderRadius: 8,\n backgroundColor: '#FFFFFF',\n minHeight: 44,\n },\n \n inputContainerFocused: {\n borderColor: '#007AFF',\n shadowColor: '#007AFF',\n shadowOffset: { width: 0, height: 0 },\n shadowOpacity: 0.2,\n shadowRadius: 4,\n elevation: 2,\n },\n \n inputContainerError: {\n borderColor: '#DC3545',\n },\n \n input: {\n flex: 1,\n fontSize: 16,\n color: '#333333',\n paddingHorizontal: 12,\n paddingVertical: 10,\n },\n \n inputWithLeftIcon: {\n paddingLeft: 8,\n },\n \n inputWithRightIcon: {\n paddingRight: 8,\n },\n \n leftIconContainer: {\n paddingLeft: 12,\n justifyContent: 'center',\n alignItems: 'center',\n },\n \n rightIconContainer: {\n paddingRight: 12,\n justifyContent: 'center',\n alignItems: 'center',\n },\n \n passwordToggle: {\n padding: 4,\n },\n \n passwordToggleText: {\n fontSize: 16,\n },\n \n errorText: {\n fontSize: 14,\n color: '#DC3545',\n marginTop: 4,\n },\n \n helperText: {\n fontSize: 14,\n color: '#666666',\n marginTop: 4,\n },\n});\n\nexport default FormInput;","import { SecureTokenStorage } from './token';\nimport { getMTLSCertificateKey, getMTLSPrivateKeyKey } from '../constants/keys';\n\nexport interface MTLSCertificate {\n uuid: string;\n certificate: string;\n privateKey?: string;\n createdAt: string;\n expiresAt?: string;\n}\n\nexport class CertificateStorage {\n /**\n * Store mTLS certificate securely\n */\n static async storeMTLSCertificate(\n uuid: string, \n certificate: string,\n privateKey?: string\n ): Promise<void> {\n const certData: MTLSCertificate = {\n uuid,\n certificate,\n privateKey,\n createdAt: new Date().toISOString(),\n };\n\n const certKey = getMTLSCertificateKey(uuid);\n await SecureTokenStorage.setItem(certKey, JSON.stringify(certData));\n }\n\n /**\n * Retrieve mTLS certificate\n */\n static async getMTLSCertificate(uuid: string): Promise<MTLSCertificate | null> {\n try {\n const certKey = getMTLSCertificateKey(uuid);\n const certDataStr = await SecureTokenStorage.getItem(certKey);\n \n if (!certDataStr) {\n return null;\n }\n\n return JSON.parse(certDataStr) as MTLSCertificate;\n } catch (error) {\n console.warn(`Failed to retrieve certificate for ${uuid}:`, error);\n return null;\n }\n }\n\n /**\n * Remove mTLS certificate\n */\n static async removeMTLSCertificate(uuid: string): Promise<void> {\n const certKey = getMTLSCertificateKey(uuid);\n const privateKeyKey = getMTLSPrivateKeyKey(uuid);\n \n await Promise.all([\n SecureTokenStorage.removeItem(certKey),\n SecureTokenStorage.removeItem(privateKeyKey),\n ]);\n }\n\n /**\n * List all stored certificates\n */\n static async listCertificates(): Promise<MTLSCertificate[]> {\n // This is a simplified implementation\n // In a real scenario, you might want to maintain an index of certificate UUIDs\n try {\n const certificates: MTLSCertificate[] = [];\n \n // Note: This is a placeholder implementation\n // In practice, you'd need to maintain a list of certificate UUIDs\n // or iterate through storage keys (platform-specific)\n\n // generate fake data waiting time\n //@Todo: Replace with actual storage key retrieval logic\n await new Promise(resolve => setTimeout(resolve, 1000));\n\n return certificates;\n } catch (error) {\n console.warn('Failed to list certificates:', error);\n return [];\n }\n }\n\n /**\n * Check if certificate exists\n */\n static async hasCertificate(uuid: string): Promise<boolean> {\n const certificate = await this.getMTLSCertificate(uuid);\n return certificate !== null;\n }\n\n /**\n * Validate certificate (basic checks)\n */\n static async validateCertificate(uuid: string): Promise<boolean> {\n const certificate = await this.getMTLSCertificate(uuid);\n \n if (!certificate) {\n return false;\n }\n\n // Basic validation\n if (!certificate.certificate || certificate.certificate.trim() === '') {\n return false;\n }\n\n // Check expiry if available\n if (certificate.expiresAt) {\n const expiryDate = new Date(certificate.expiresAt);\n if (expiryDate < new Date()) {\n return false;\n }\n }\n\n return true;\n }\n\n /**\n * Parse certificate information (basic implementation)\n */\n static parseCertificateInfo(certificatePEM: string): {\n subject?: string;\n issuer?: string;\n validFrom?: string;\n validTo?: string;\n fingerprint?: string;\n } {\n // This is a placeholder implementation\n // In a real scenario, you'd use a proper certificate parsing library\n try {\n // Basic extraction from PEM format\n const cert = certificatePEM.replace(/-----BEGIN CERTIFICATE-----/, '')\n .replace(/-----END CERTIFICATE-----/, '')\n .replace(/\\s/g, '');\n \n return {\n fingerprint: cert.substring(0, 40), // Simplified fingerprint\n // Other fields would be extracted using proper certificate parsing\n };\n } catch (error) {\n console.warn('Failed to parse certificate:', error);\n return {};\n }\n }\n\n /**\n * Clear all certificates\n */\n static async clearAllCertificates(): Promise<void> {\n const certificates = await this.listCertificates();\n await Promise.all(\n certificates.map(cert => this.removeMTLSCertificate(cert.uuid))\n );\n }\n}","export enum UserRole {\n PROVIDER = 'provider',\n MERCHANT = 'merchant',\n CASHIER = 'cashier',\n}\n\nexport const ROLE_PERMISSIONS: Record<UserRole, string[]> = {\n [UserRole.PROVIDER]: [\n 'create_merchant',\n 'manage_merchants',\n 'view_all_data',\n ],\n [UserRole.MERCHANT]: [\n 'create_cashier',\n 'manage_pos',\n 'create_cash_register',\n 'view_receipts',\n 'manage_business_data',\n ],\n [UserRole.CASHIER]: [\n 'create_receipt',\n 'void_receipt',\n 'return_items',\n 'view_own_receipts',\n ],\n};\n\nexport const hasPermission = (\n userRole: UserRole,\n permission: string\n): boolean => {\n const permissions = ROLE_PERMISSIONS[userRole];\n return permissions.includes(permission);\n};\n\nexport const isProvider = (role: UserRole): boolean => \n role === UserRole.PROVIDER;\n\nexport const isMerchant = (role: UserRole): boolean => \n role === UserRole.MERCHANT;\n\nexport const isCashier = (role: UserRole): boolean => \n role === UserRole.CASHIER;","// A-Cube SDK - Main Entry Point\n// Professional TypeScript SDK for A-Cube e-receipt system integration\n\n// =============================================================================\n// API Client & Configuration\n// =============================================================================\nexport {\n initializeAPIClient,\n getAPIClient,\n configureSDK,\n APIClient,\n} from './api/client';\nexport type { SDKConfig } from './api/client';\n\n// =============================================================================\n// Authentication\n// =============================================================================\nexport {\n loginProvider,\n loginMerchant,\n loginCashier,\n logout,\n isAuthenticated,\n getCurrentUser,\n refreshToken,\n hasRole,\n AuthenticationError,\n} from './api/auth';\n\n// =============================================================================\n// API Endpoints\n// =============================================================================\n\n// MF1 - Core e-receipt functionality\nexport {\n // Cashiers\n createCashier,\n getCashiers,\n getCashierById,\n getCurrentCashier,\n deleteCashier,\n \n // Point of Sales\n getPointOfSales,\n getPointOfSaleBySerial,\n activatePointOfSale,\n createInactivityPeriod,\n setPointOfSaleOffline,\n closeJournal,\n \n // Receipts\n createReceipt,\n getReceipts,\n getReceiptById,\n getReceiptDetails,\n voidReceipt,\n voidReceiptWithProof,\n returnReceiptItems,\n returnReceiptItemsWithProof,\n \n // Cash Registers\n createCashRegister,\n getCashRegisters,\n getCashRegisterById,\n getMTLSCertificate,\n} from './api/mf1';\n\n// MF2 - Merchant management\nexport {\n createMerchant,\n getMerchants,\n getMerchantById,\n updateMerchant,\n} from './api/mf2';\n\n// =============================================================================\n// React Hooks\n// =============================================================================\nexport {\n useAuth,\n useRetryQueue,\n useProviderFlow,\n} from './hooks';\n\nexport type {\n AuthState,\n AuthActions,\n UseAuthReturn,\n QueueStats,\n UseRetryQueueReturn,\n ProviderFlowState,\n UseProviderFlowReturn,\n} from './hooks';\n\n// =============================================================================\n// UI Components (Cross-platform React/React Native)\n// =============================================================================\nexport {\n Button,\n FormInput,\n} from './components';\n\nexport type {\n ButtonProps,\n FormInputProps,\n} from './components';\n\n// =============================================================================\n// Storage & Security\n// =============================================================================\nexport {\n SecureTokenStorage,\n CertificateStorage,\n RequestQueue,\n} from './storage';\n\nexport type {\n MTLSCertificate,\n QueuedRequest,\n} from './storage';\n\n// =============================================================================\n// Utilities\n// =============================================================================\nexport {\n // Network\n getNetworkState,\n isConnected,\n addNetworkListener,\n removeNetworkListener,\n checkInternetConnectivity,\n waitForConnection,\n \n // Retry\n retryAsync,\n withRetry,\n AxiosRetryInterceptor,\n isRetryableError,\n calculateRetryDelay,\n calculateJitteredDelay,\n \n // Validation\n validateEmail,\n validatePassword,\n validateFiscalId,\n validateZipCode,\n validateProvinceCode,\n validateAddress,\n validateReceiptItem,\n validateMoneyAmount,\n combineValidationResults,\n validateRequired,\n \n // Logging\n logError,\n logWarn,\n logInfo,\n logDebug,\n apiLogger,\n authLogger,\n storageLogger,\n networkLogger,\n uiLogger,\n} from './utils';\n\nexport type {\n NetworkState,\n NetworkStateChangeHandler,\n RetryConfig,\n ValidationError,\n ValidationResult,\n LogLevel,\n LogEntry,\n} from './utils';\n\n// =============================================================================\n// Constants & Configuration\n// =============================================================================\nexport {\n API_ENDPOINTS,\n MF1_PATHS,\n MF2_PATHS,\n getBaseURL,\n STORAGE_KEYS,\n SECURE_KEYS,\n getMTLSCertificateKey,\n getMTLSPrivateKeyKey,\n UserRole,\n ROLE_PERMISSIONS,\n hasPermission,\n isProvider,\n isMerchant,\n isCashier,\n} from './constants';\n\nexport type {\n Environment,\n StorageKey,\n SecurityLevel,\n} from './constants';\n\n// =============================================================================\n// Types\n// =============================================================================\n\n// Generated API types\nexport type {\n // Core entities\n Address,\n MerchantCreateInput,\n MerchantOutput,\n MerchantUpdateInput,\n CashRegisterCreate,\n CashRegisterOutput,\n CashierCreateInput,\n CashierOutput,\n ReceiptInput,\n ReceiptOutput,\n ReceiptDetailsOutput,\n ReceiptItem,\n PEMPublic,\n \n // Enums\n PEMStatus,\n ReceiptType,\n GoodOrService,\n \n // API responses\n ApiResponse,\n PaginatedResponse,\n AuthToken,\n JWTPayload,\n LoginRequest,\n} from './api/types.generated';\n\n// SDK-specific types\nexport type {\n LoginCredentials,\n TokenInfo,\n UserProfile,\n MerchantInfo,\n AddressInfo,\n PointOfSaleInfo,\n CashRegisterInfo,\n ReceiptInfo,\n ReceiptItemInfo,\n} from './types';\n\n// =============================================================================\n// Version & Metadata\n// =============================================================================\nexport const SDK_VERSION = '1.0.0';\nexport const SDK_NAME = 'a-cube-io/ereceipts-js-sdk';\n\n// =============================================================================\n// Quick Start Helpers\n// =============================================================================\n\n/**\n * Initialize the A-Cube SDK with configuration\n * Call this once at the start of your application\n */\nexport const initSDK = async (config?: Partial<import('./api/client').SDKConfig>) => {\n const { initializeAPIClient } = await import('./api/client');\n return initializeAPIClient(config);\n};\n\n/**\n * Quick login helper for providers\n */\nexport const quickLoginProvider = async (email: string, password: string) => {\n try {\n const { loginProvider } = await import('./api/auth');\n const token = await loginProvider(email, password);\n return { success: true, token };\n } catch (error) {\n return { success: false, error };\n }\n};\n\n/**\n * Quick login helper for merchants\n */\nexport const quickLoginMerchant = async (email: string, password: string) => {\n try {\n const { loginMerchant } = await import('./api/auth');\n const token = await loginMerchant(email, password);\n return { success: true, token };\n } catch (error) {\n return { success: false, error };\n }\n};\n\n/**\n * Check if SDK is properly configured\n */\nexport const isSDKReady = async (): Promise<boolean> => {\n try {\n const { getAPIClient } = await import('./api/client');\n const client = getAPIClient();\n return client !== null;\n } catch {\n return false;\n }\n};\n\n// =============================================================================\n// Development Helpers (only available in development)\n// =============================================================================\ndeclare const __DEV__: boolean | undefined;\ndeclare const process: { env?: { NODE_ENV?: string } } | undefined;\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ndeclare const global: any;\n\nif ((typeof __DEV__ !== 'undefined' && __DEV__) || \n (typeof process !== 'undefined' && process.env?.NODE_ENV === 'development')) {\n // Export additional debugging utilities\n if (typeof global !== 'undefined') {\n (global).__ACUBE_SDK__ = {\n getAPIClient: async () => {\n const { getAPIClient } = await import('./api/client');\n return getAPIClient();\n },\n version: SDK_VERSION,\n clearAllData: async () => {\n const { SecureTokenStorage } = await import('./storage/token');\n const { RequestQueue } = await import('./storage/queue');\n await SecureTokenStorage.clearAll();\n await RequestQueue.clearQueue();\n },\n };\n }\n}"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"inputs":{"node_modules/tsup/assets/cjs_shims.js":{"bytes":1828,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/helpers/bind.js":{"bytes":691,"imports":[{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/utils.js":{"bytes":63348,"imports":[{"path":"node_modules/axios/lib/helpers/bind.js","kind":"import-statement","original":"./helpers/bind.js"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/core/AxiosError.js":{"bytes":9285,"imports":[{"path":"node_modules/axios/lib/utils.js","kind":"import-statement","original":"../utils.js"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/platform/node/classes/FormData.js":{"bytes":373,"imports":[{"path":"form-data","kind":"import-statement","external":true},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/helpers/toFormData.js":{"bytes":20910,"imports":[{"path":"node_modules/axios/lib/utils.js","kind":"import-statement","original":"../utils.js"},{"path":"node_modules/axios/lib/core/AxiosError.js","kind":"import-statement","original":"../core/AxiosError.js"},{"path":"node_modules/axios/lib/platform/node/classes/FormData.js","kind":"import-statement","original":"../platform/node/classes/FormData.js"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/helpers/AxiosURLSearchParams.js":{"bytes":5128,"imports":[{"path":"node_modules/axios/lib/helpers/toFormData.js","kind":"import-statement","original":"./toFormData.js"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/helpers/buildURL.js":{"bytes":5659,"imports":[{"path":"node_modules/axios/lib/utils.js","kind":"import-statement","original":"../utils.js"},{"path":"node_modules/axios/lib/helpers/AxiosURLSearchParams.js","kind":"import-statement","original":"../helpers/AxiosURLSearchParams.js"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/core/InterceptorManager.js":{"bytes":5277,"imports":[{"path":"node_modules/axios/lib/utils.js","kind":"import-statement","original":"./../utils.js"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/defaults/transitional.js":{"bytes":629,"imports":[{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/platform/node/classes/URLSearchParams.js":{"bytes":455,"imports":[{"path":"url","kind":"import-statement","external":true},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/platform/node/index.js":{"bytes":3322,"imports":[{"path":"crypto","kind":"import-statement","external":true},{"path":"node_modules/axios/lib/platform/node/classes/URLSearchParams.js","kind":"import-statement","original":"./classes/URLSearchParams.js"},{"path":"node_modules/axios/lib/platform/node/classes/FormData.js","kind":"import-statement","original":"./classes/FormData.js"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/platform/common/utils.js":{"bytes":4865,"imports":[{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/platform/index.js":{"bytes":636,"imports":[{"path":"node_modules/axios/lib/platform/node/index.js","kind":"import-statement","original":"./node/index.js"},{"path":"node_modules/axios/lib/platform/common/utils.js","kind":"import-statement","original":"./common/utils.js"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/helpers/toURLEncodedForm.js":{"bytes":2365,"imports":[{"path":"node_modules/axios/lib/utils.js","kind":"import-statement","original":"../utils.js"},{"path":"node_modules/axios/lib/helpers/toFormData.js","kind":"import-statement","original":"./toFormData.js"},{"path":"node_modules/axios/lib/platform/index.js","kind":"import-statement","original":"../platform/index.js"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/helpers/formDataToJSON.js":{"bytes":8127,"imports":[{"path":"node_modules/axios/lib/utils.js","kind":"import-statement","original":"../utils.js"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/defaults/index.js":{"bytes":16631,"imports":[{"path":"node_modules/axios/lib/utils.js","kind":"import-statement","original":"../utils.js"},{"path":"node_modules/axios/lib/core/AxiosError.js","kind":"import-statement","original":"../core/AxiosError.js"},{"path":"node_modules/axios/lib/defaults/transitional.js","kind":"import-statement","original":"./transitional.js"},{"path":"node_modules/axios/lib/helpers/toFormData.js","kind":"import-statement","original":"../helpers/toFormData.js"},{"path":"node_modules/axios/lib/helpers/toURLEncodedForm.js","kind":"import-statement","original":"../helpers/toURLEncodedForm.js"},{"path":"node_modules/axios/lib/platform/index.js","kind":"import-statement","original":"../platform/index.js"},{"path":"node_modules/axios/lib/helpers/formDataToJSON.js","kind":"import-statement","original":"../helpers/formDataToJSON.js"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/helpers/parseHeaders.js":{"bytes":4995,"imports":[{"path":"node_modules/axios/lib/utils.js","kind":"import-statement","original":"./../utils.js"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/core/AxiosHeaders.js":{"bytes":28969,"imports":[{"path":"node_modules/axios/lib/utils.js","kind":"import-statement","original":"../utils.js"},{"path":"node_modules/axios/lib/helpers/parseHeaders.js","kind":"import-statement","original":"../helpers/parseHeaders.js"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/core/transformData.js":{"bytes":2843,"imports":[{"path":"node_modules/axios/lib/utils.js","kind":"import-statement","original":"./../utils.js"},{"path":"node_modules/axios/lib/defaults/index.js","kind":"import-statement","original":"../defaults/index.js"},{"path":"node_modules/axios/lib/core/AxiosHeaders.js","kind":"import-statement","original":"../core/AxiosHeaders.js"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/cancel/isCancel.js":{"bytes":562,"imports":[{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/cancel/CanceledError.js":{"bytes":2399,"imports":[{"path":"node_modules/axios/lib/core/AxiosError.js","kind":"import-statement","original":"../core/AxiosError.js"},{"path":"node_modules/axios/lib/utils.js","kind":"import-statement","original":"../utils.js"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/core/settle.js":{"bytes":2918,"imports":[{"path":"node_modules/axios/lib/core/AxiosError.js","kind":"import-statement","original":"./AxiosError.js"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/helpers/isAbsoluteURL.js":{"bytes":1718,"imports":[{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/helpers/combineURLs.js":{"bytes":1329,"imports":[{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/core/buildFullPath.js":{"bytes":2515,"imports":[{"path":"node_modules/axios/lib/helpers/isAbsoluteURL.js","kind":"import-statement","original":"../helpers/isAbsoluteURL.js"},{"path":"node_modules/axios/lib/helpers/combineURLs.js","kind":"import-statement","original":"../helpers/combineURLs.js"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/env/data.js":{"bytes":283,"imports":[{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/helpers/parseProtocol.js":{"bytes":736,"imports":[{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/helpers/fromDataURI.js":{"bytes":5117,"imports":[{"path":"node_modules/axios/lib/core/AxiosError.js","kind":"import-statement","original":"../core/AxiosError.js"},{"path":"node_modules/axios/lib/helpers/parseProtocol.js","kind":"import-statement","original":"./parseProtocol.js"},{"path":"node_modules/axios/lib/platform/index.js","kind":"import-statement","original":"../platform/index.js"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/helpers/AxiosTransformStream.js":{"bytes":13876,"imports":[{"path":"stream","kind":"import-statement","external":true},{"path":"node_modules/axios/lib/utils.js","kind":"import-statement","original":"../utils.js"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/helpers/readBlob.js":{"bytes":1424,"imports":[{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/helpers/formDataToStream.js":{"bytes":11349,"imports":[{"path":"util","kind":"import-statement","external":true},{"path":"stream","kind":"import-statement","external":true},{"path":"node_modules/axios/lib/utils.js","kind":"import-statement","original":"../utils.js"},{"path":"node_modules/axios/lib/helpers/readBlob.js","kind":"import-statement","original":"./readBlob.js"},{"path":"node_modules/axios/lib/platform/index.js","kind":"import-statement","original":"../platform/index.js"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js":{"bytes":2851,"imports":[{"path":"stream","kind":"import-statement","external":true},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/helpers/callbackify.js":{"bytes":1666,"imports":[{"path":"node_modules/axios/lib/utils.js","kind":"import-statement","original":"../utils.js"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/helpers/speedometer.js":{"bytes":4158,"imports":[{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/helpers/throttle.js":{"bytes":3317,"imports":[{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/helpers/progressEventReducer.js":{"bytes":4903,"imports":[{"path":"node_modules/axios/lib/helpers/speedometer.js","kind":"import-statement","original":"./speedometer.js"},{"path":"node_modules/axios/lib/helpers/throttle.js","kind":"import-statement","original":"./throttle.js"},{"path":"node_modules/axios/lib/utils.js","kind":"import-statement","original":"../utils.js"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/adapters/http.js":{"bytes":80254,"imports":[{"path":"node_modules/axios/lib/utils.js","kind":"import-statement","original":"./../utils.js"},{"path":"node_modules/axios/lib/core/settle.js","kind":"import-statement","original":"./../core/settle.js"},{"path":"node_modules/axios/lib/core/buildFullPath.js","kind":"import-statement","original":"../core/buildFullPath.js"},{"path":"node_modules/axios/lib/helpers/buildURL.js","kind":"import-statement","original":"./../helpers/buildURL.js"},{"path":"proxy-from-env","kind":"import-statement","external":true},{"path":"http","kind":"import-statement","external":true},{"path":"https","kind":"import-statement","external":true},{"path":"util","kind":"import-statement","external":true},{"path":"follow-redirects","kind":"import-statement","external":true},{"path":"zlib","kind":"import-statement","external":true},{"path":"node_modules/axios/lib/env/data.js","kind":"import-statement","original":"../env/data.js"},{"path":"node_modules/axios/lib/defaults/transitional.js","kind":"import-statement","original":"../defaults/transitional.js"},{"path":"node_modules/axios/lib/core/AxiosError.js","kind":"import-statement","original":"../core/AxiosError.js"},{"path":"node_modules/axios/lib/cancel/CanceledError.js","kind":"import-statement","original":"../cancel/CanceledError.js"},{"path":"node_modules/axios/lib/platform/index.js","kind":"import-statement","original":"../platform/index.js"},{"path":"node_modules/axios/lib/helpers/fromDataURI.js","kind":"import-statement","original":"../helpers/fromDataURI.js"},{"path":"stream","kind":"import-statement","external":true},{"path":"node_modules/axios/lib/core/AxiosHeaders.js","kind":"import-statement","original":"../core/AxiosHeaders.js"},{"path":"node_modules/axios/lib/helpers/AxiosTransformStream.js","kind":"import-statement","original":"../helpers/AxiosTransformStream.js"},{"path":"events","kind":"import-statement","external":true},{"path":"node_modules/axios/lib/helpers/formDataToStream.js","kind":"import-statement","original":"../helpers/formDataToStream.js"},{"path":"node_modules/axios/lib/helpers/readBlob.js","kind":"import-statement","original":"../helpers/readBlob.js"},{"path":"node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js","kind":"import-statement","original":"../helpers/ZlibHeaderTransformStream.js"},{"path":"node_modules/axios/lib/helpers/callbackify.js","kind":"import-statement","original":"../helpers/callbackify.js"},{"path":"node_modules/axios/lib/helpers/progressEventReducer.js","kind":"import-statement","original":"../helpers/progressEventReducer.js"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/helpers/isURLSameOrigin.js":{"bytes":1814,"imports":[{"path":"node_modules/axios/lib/platform/index.js","kind":"import-statement","original":"../platform/index.js"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/helpers/cookies.js":{"bytes":4043,"imports":[{"path":"node_modules/axios/lib/utils.js","kind":"import-statement","original":"./../utils.js"},{"path":"node_modules/axios/lib/platform/index.js","kind":"import-statement","original":"../platform/index.js"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/core/mergeConfig.js":{"bytes":12506,"imports":[{"path":"node_modules/axios/lib/utils.js","kind":"import-statement","original":"../utils.js"},{"path":"node_modules/axios/lib/core/AxiosHeaders.js","kind":"import-statement","original":"./AxiosHeaders.js"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/helpers/resolveConfig.js":{"bytes":8066,"imports":[{"path":"node_modules/axios/lib/platform/index.js","kind":"import-statement","original":"../platform/index.js"},{"path":"node_modules/axios/lib/utils.js","kind":"import-statement","original":"../utils.js"},{"path":"node_modules/axios/lib/helpers/isURLSameOrigin.js","kind":"import-statement","original":"./isURLSameOrigin.js"},{"path":"node_modules/axios/lib/helpers/cookies.js","kind":"import-statement","original":"./cookies.js"},{"path":"node_modules/axios/lib/core/buildFullPath.js","kind":"import-statement","original":"../core/buildFullPath.js"},{"path":"node_modules/axios/lib/core/mergeConfig.js","kind":"import-statement","original":"../core/mergeConfig.js"},{"path":"node_modules/axios/lib/core/AxiosHeaders.js","kind":"import-statement","original":"../core/AxiosHeaders.js"},{"path":"node_modules/axios/lib/helpers/buildURL.js","kind":"import-statement","original":"./buildURL.js"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/adapters/xhr.js":{"bytes":23372,"imports":[{"path":"node_modules/axios/lib/utils.js","kind":"import-statement","original":"./../utils.js"},{"path":"node_modules/axios/lib/core/settle.js","kind":"import-statement","original":"./../core/settle.js"},{"path":"node_modules/axios/lib/defaults/transitional.js","kind":"import-statement","original":"../defaults/transitional.js"},{"path":"node_modules/axios/lib/core/AxiosError.js","kind":"import-statement","original":"../core/AxiosError.js"},{"path":"node_modules/axios/lib/cancel/CanceledError.js","kind":"import-statement","original":"../cancel/CanceledError.js"},{"path":"node_modules/axios/lib/helpers/parseProtocol.js","kind":"import-statement","original":"../helpers/parseProtocol.js"},{"path":"node_modules/axios/lib/platform/index.js","kind":"import-statement","original":"../platform/index.js"},{"path":"node_modules/axios/lib/core/AxiosHeaders.js","kind":"import-statement","original":"../core/AxiosHeaders.js"},{"path":"node_modules/axios/lib/helpers/progressEventReducer.js","kind":"import-statement","original":"../helpers/progressEventReducer.js"},{"path":"node_modules/axios/lib/helpers/resolveConfig.js","kind":"import-statement","original":"../helpers/resolveConfig.js"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/helpers/composeSignals.js":{"bytes":5275,"imports":[{"path":"node_modules/axios/lib/cancel/CanceledError.js","kind":"import-statement","original":"../cancel/CanceledError.js"},{"path":"node_modules/axios/lib/core/AxiosError.js","kind":"import-statement","original":"../core/AxiosError.js"},{"path":"node_modules/axios/lib/utils.js","kind":"import-statement","original":"../utils.js"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/helpers/trackStream.js":{"bytes":6798,"imports":[{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/adapters/fetch.js":{"bytes":24524,"imports":[{"path":"node_modules/axios/lib/platform/index.js","kind":"import-statement","original":"../platform/index.js"},{"path":"node_modules/axios/lib/utils.js","kind":"import-statement","original":"../utils.js"},{"path":"node_modules/axios/lib/core/AxiosError.js","kind":"import-statement","original":"../core/AxiosError.js"},{"path":"node_modules/axios/lib/helpers/composeSignals.js","kind":"import-statement","original":"../helpers/composeSignals.js"},{"path":"node_modules/axios/lib/helpers/trackStream.js","kind":"import-statement","original":"../helpers/trackStream.js"},{"path":"node_modules/axios/lib/core/AxiosHeaders.js","kind":"import-statement","original":"../core/AxiosHeaders.js"},{"path":"node_modules/axios/lib/helpers/progressEventReducer.js","kind":"import-statement","original":"../helpers/progressEventReducer.js"},{"path":"node_modules/axios/lib/helpers/resolveConfig.js","kind":"import-statement","original":"../helpers/resolveConfig.js"},{"path":"node_modules/axios/lib/core/settle.js","kind":"import-statement","original":"../core/settle.js"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/adapters/adapters.js":{"bytes":7454,"imports":[{"path":"node_modules/axios/lib/utils.js","kind":"import-statement","original":"../utils.js"},{"path":"node_modules/axios/lib/adapters/http.js","kind":"import-statement","original":"./http.js"},{"path":"node_modules/axios/lib/adapters/xhr.js","kind":"import-statement","original":"./xhr.js"},{"path":"node_modules/axios/lib/adapters/fetch.js","kind":"import-statement","original":"./fetch.js"},{"path":"node_modules/axios/lib/core/AxiosError.js","kind":"import-statement","original":"../core/AxiosError.js"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/core/dispatchRequest.js":{"bytes":7697,"imports":[{"path":"node_modules/axios/lib/core/transformData.js","kind":"import-statement","original":"./transformData.js"},{"path":"node_modules/axios/lib/cancel/isCancel.js","kind":"import-statement","original":"../cancel/isCancel.js"},{"path":"node_modules/axios/lib/defaults/index.js","kind":"import-statement","original":"../defaults/index.js"},{"path":"node_modules/axios/lib/cancel/CanceledError.js","kind":"import-statement","original":"../cancel/CanceledError.js"},{"path":"node_modules/axios/lib/core/AxiosHeaders.js","kind":"import-statement","original":"../core/AxiosHeaders.js"},{"path":"node_modules/axios/lib/adapters/adapters.js","kind":"import-statement","original":"../adapters/adapters.js"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/helpers/validator.js":{"bytes":9568,"imports":[{"path":"node_modules/axios/lib/env/data.js","kind":"import-statement","original":"../env/data.js"},{"path":"node_modules/axios/lib/core/AxiosError.js","kind":"import-statement","original":"../core/AxiosError.js"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/core/Axios.js":{"bytes":25168,"imports":[{"path":"node_modules/axios/lib/utils.js","kind":"import-statement","original":"./../utils.js"},{"path":"node_modules/axios/lib/helpers/buildURL.js","kind":"import-statement","original":"../helpers/buildURL.js"},{"path":"node_modules/axios/lib/core/InterceptorManager.js","kind":"import-statement","original":"./InterceptorManager.js"},{"path":"node_modules/axios/lib/core/dispatchRequest.js","kind":"import-statement","original":"./dispatchRequest.js"},{"path":"node_modules/axios/lib/core/mergeConfig.js","kind":"import-statement","original":"./mergeConfig.js"},{"path":"node_modules/axios/lib/core/buildFullPath.js","kind":"import-statement","original":"./buildFullPath.js"},{"path":"node_modules/axios/lib/helpers/validator.js","kind":"import-statement","original":"../helpers/validator.js"},{"path":"node_modules/axios/lib/core/AxiosHeaders.js","kind":"import-statement","original":"./AxiosHeaders.js"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/cancel/CancelToken.js":{"bytes":10241,"imports":[{"path":"node_modules/axios/lib/cancel/CanceledError.js","kind":"import-statement","original":"./CanceledError.js"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/helpers/spread.js":{"bytes":1757,"imports":[{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/helpers/isAxiosError.js":{"bytes":1285,"imports":[{"path":"node_modules/axios/lib/utils.js","kind":"import-statement","original":"./../utils.js"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/helpers/HttpStatusCode.js":{"bytes":6877,"imports":[{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/lib/axios.js":{"bytes":8903,"imports":[{"path":"node_modules/axios/lib/utils.js","kind":"import-statement","original":"./utils.js"},{"path":"node_modules/axios/lib/helpers/bind.js","kind":"import-statement","original":"./helpers/bind.js"},{"path":"node_modules/axios/lib/core/Axios.js","kind":"import-statement","original":"./core/Axios.js"},{"path":"node_modules/axios/lib/core/mergeConfig.js","kind":"import-statement","original":"./core/mergeConfig.js"},{"path":"node_modules/axios/lib/defaults/index.js","kind":"import-statement","original":"./defaults/index.js"},{"path":"node_modules/axios/lib/helpers/formDataToJSON.js","kind":"import-statement","original":"./helpers/formDataToJSON.js"},{"path":"node_modules/axios/lib/cancel/CanceledError.js","kind":"import-statement","original":"./cancel/CanceledError.js"},{"path":"node_modules/axios/lib/cancel/CancelToken.js","kind":"import-statement","original":"./cancel/CancelToken.js"},{"path":"node_modules/axios/lib/cancel/isCancel.js","kind":"import-statement","original":"./cancel/isCancel.js"},{"path":"node_modules/axios/lib/env/data.js","kind":"import-statement","original":"./env/data.js"},{"path":"node_modules/axios/lib/helpers/toFormData.js","kind":"import-statement","original":"./helpers/toFormData.js"},{"path":"node_modules/axios/lib/core/AxiosError.js","kind":"import-statement","original":"./core/AxiosError.js"},{"path":"node_modules/axios/lib/helpers/spread.js","kind":"import-statement","original":"./helpers/spread.js"},{"path":"node_modules/axios/lib/helpers/isAxiosError.js","kind":"import-statement","original":"./helpers/isAxiosError.js"},{"path":"node_modules/axios/lib/core/AxiosHeaders.js","kind":"import-statement","original":"./core/AxiosHeaders.js"},{"path":"node_modules/axios/lib/adapters/adapters.js","kind":"import-statement","original":"./adapters/adapters.js"},{"path":"node_modules/axios/lib/helpers/HttpStatusCode.js","kind":"import-statement","original":"./helpers/HttpStatusCode.js"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"node_modules/axios/index.js":{"bytes":2648,"imports":[{"path":"node_modules/axios/lib/axios.js","kind":"import-statement","original":"./lib/axios.js"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/constants/keys.ts":{"bytes":5269,"imports":[{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/utils/logger.ts":{"bytes":30641,"imports":[{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/storage/token.ts":{"bytes":45586,"imports":[{"path":"@react-native-async-storage/async-storage","kind":"import-statement","external":true},{"path":"react-native-keychain","kind":"import-statement","external":true},{"path":"idb-keyval","kind":"import-statement","external":true},{"path":"src/constants/keys.ts","kind":"import-statement","original":"../constants/keys"},{"path":"src/utils/logger.ts","kind":"import-statement","original":"../utils/logger"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/storage/queue.ts":{"bytes":22999,"imports":[{"path":"@react-native-async-storage/async-storage","kind":"import-statement","external":true},{"path":"src/constants/keys.ts","kind":"import-statement","original":"../constants/keys"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/utils/network.ts":{"bytes":19516,"imports":[{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"@react-native-community/netinfo","kind":"dynamic-import","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/utils/retry.ts":{"bytes":19447,"imports":[{"path":"src/utils/network.ts","kind":"import-statement","original":"./network"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/constants/endpoints.ts":{"bytes":6238,"imports":[{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/api/client.ts":{"bytes":34936,"imports":[{"path":"node_modules/axios/index.js","kind":"import-statement","original":"axios"},{"path":"src/storage/token.ts","kind":"import-statement","original":"../storage/token"},{"path":"src/storage/queue.ts","kind":"import-statement","original":"../storage/queue"},{"path":"src/utils/retry.ts","kind":"import-statement","original":"../utils/retry"},{"path":"src/utils/network.ts","kind":"import-statement","original":"../utils/network"},{"path":"src/utils/logger.ts","kind":"import-statement","original":"../utils/logger"},{"path":"src/constants/endpoints.ts","kind":"import-statement","original":"../constants/endpoints"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/utils/validation.ts":{"bytes":29184,"imports":[{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/api/auth.ts":{"bytes":28737,"imports":[{"path":"src/api/client.ts","kind":"import-statement","original":"./client"},{"path":"src/storage/token.ts","kind":"import-statement","original":"../storage/token"},{"path":"src/constants/endpoints.ts","kind":"import-statement","original":"../constants/endpoints"},{"path":"src/utils/validation.ts","kind":"import-statement","original":"../utils/validation"},{"path":"src/utils/logger.ts","kind":"import-statement","original":"../utils/logger"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/api/mf1.ts":{"bytes":20984,"imports":[{"path":"src/api/client.ts","kind":"import-statement","original":"./client"},{"path":"src/constants/endpoints.ts","kind":"import-statement","original":"../constants/endpoints"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/api/mf2.ts":{"bytes":4237,"imports":[{"path":"src/api/client.ts","kind":"import-statement","original":"./client"},{"path":"src/constants/endpoints.ts","kind":"import-statement","original":"../constants/endpoints"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/hooks/useAuth.ts":{"bytes":18391,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"src/api/auth.ts","kind":"import-statement","original":"../api/auth"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/hooks/useRetryQueue.ts":{"bytes":12856,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"src/api/client.ts","kind":"import-statement","original":"../api/client"},{"path":"src/storage/queue.ts","kind":"import-statement","original":"../storage/queue"},{"path":"src/utils/network.ts","kind":"import-statement","original":"../utils/network"},{"path":"src/utils/logger.ts","kind":"import-statement","original":"../utils/logger"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/hooks/useProviderFlow.ts":{"bytes":13718,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"src/api/mf2.ts","kind":"import-statement","original":"../api/mf2"},{"path":"src/utils/validation.ts","kind":"import-statement","original":"../utils/validation"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/hooks/index.ts":{"bytes":1017,"imports":[{"path":"src/hooks/useAuth.ts","kind":"import-statement","original":"./useAuth"},{"path":"src/hooks/useRetryQueue.ts","kind":"import-statement","original":"./useRetryQueue"},{"path":"src/hooks/useProviderFlow.ts","kind":"import-statement","original":"./useProviderFlow"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/components/Button.tsx":{"bytes":11328,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"react-native","kind":"import-statement","external":true},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/components/FormInput.tsx":{"bytes":16534,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"react-native","kind":"import-statement","external":true},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/components/index.ts":{"bytes":570,"imports":[{"path":"src/components/Button.tsx","kind":"import-statement","original":"./Button"},{"path":"src/components/FormInput.tsx","kind":"import-statement","original":"./FormInput"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/storage/certificate.ts":{"bytes":13709,"imports":[{"path":"src/storage/token.ts","kind":"import-statement","original":"./token"},{"path":"src/constants/keys.ts","kind":"import-statement","original":"../constants/keys"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/storage/index.ts":{"bytes":415,"imports":[{"path":"src/storage/token.ts","kind":"import-statement","original":"./token"},{"path":"src/storage/certificate.ts","kind":"import-statement","original":"./certificate"},{"path":"src/storage/queue.ts","kind":"import-statement","original":"./queue"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/utils/index.ts":{"bytes":498,"imports":[{"path":"src/utils/network.ts","kind":"import-statement","original":"./network"},{"path":"src/utils/retry.ts","kind":"import-statement","original":"./retry"},{"path":"src/utils/validation.ts","kind":"import-statement","original":"./validation"},{"path":"src/utils/logger.ts","kind":"import-statement","original":"./logger"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/constants/roles.ts":{"bytes":3229,"imports":[{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/constants/index.ts":{"bytes":408,"imports":[{"path":"src/constants/endpoints.ts","kind":"import-statement","original":"./endpoints"},{"path":"src/constants/keys.ts","kind":"import-statement","original":"./keys"},{"path":"src/constants/roles.ts","kind":"import-statement","original":"./roles"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":24068,"imports":[{"path":"src/api/client.ts","kind":"import-statement","original":"./api/client"},{"path":"src/api/auth.ts","kind":"import-statement","original":"./api/auth"},{"path":"src/api/mf1.ts","kind":"import-statement","original":"./api/mf1"},{"path":"src/api/mf2.ts","kind":"import-statement","original":"./api/mf2"},{"path":"src/hooks/index.ts","kind":"import-statement","original":"./hooks"},{"path":"src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"src/storage/index.ts","kind":"import-statement","original":"./storage"},{"path":"src/utils/index.ts","kind":"import-statement","original":"./utils"},{"path":"src/constants/index.ts","kind":"import-statement","original":"./constants"},{"path":"/Users/anders/Desktop/works/acube/acube-ereceipt/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true},{"path":"src/api/client.ts","kind":"dynamic-import","original":"./api/client"},{"path":"src/api/auth.ts","kind":"dynamic-import","original":"./api/auth"},{"path":"src/api/auth.ts","kind":"dynamic-import","original":"./api/auth"},{"path":"src/api/client.ts","kind":"dynamic-import","original":"./api/client"},{"path":"src/api/client.ts","kind":"dynamic-import","original":"./api/client"},{"path":"src/storage/token.ts","kind":"dynamic-import","original":"./storage/token"},{"path":"src/storage/queue.ts","kind":"dynamic-import","original":"./storage/queue"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":70375},"dist/index.cjs":{"imports":[{"path":"dist/chunk-UXVFQRZK.cjs","kind":"import-statement"},{"path":"dist/chunk-UVUWF5FV.cjs","kind":"import-statement"},{"path":"dist/chunk-24ZJ6SNG.cjs","kind":"import-statement"},{"path":"dist/chunk-NARXAXFL.cjs","kind":"import-statement"},{"path":"dist/chunk-XQKCXG4I.cjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-native","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-native","kind":"import-statement","external":true},{"path":"dist/client-WPBRHPKX.cjs","kind":"dynamic-import"},{"path":"dist/auth-D6UEILKY.cjs","kind":"dynamic-import"},{"path":"dist/auth-D6UEILKY.cjs","kind":"dynamic-import"},{"path":"dist/client-WPBRHPKX.cjs","kind":"dynamic-import"},{"path":"dist/client-WPBRHPKX.cjs","kind":"dynamic-import"},{"path":"dist/token-3CIX4E64.cjs","kind":"dynamic-import"},{"path":"dist/queue-JHWXWX2B.cjs","kind":"dynamic-import"}],"exports":["APIClient","API_ENDPOINTS","AuthenticationError","AxiosRetryInterceptor","Button","CertificateStorage","FormInput","MF1_PATHS","MF2_PATHS","ROLE_PERMISSIONS","RequestQueue","SDK_NAME","SDK_VERSION","SECURE_KEYS","STORAGE_KEYS","SecureTokenStorage","UserRole","activatePointOfSale","addNetworkListener","apiLogger","authLogger","calculateJitteredDelay","calculateRetryDelay","checkInternetConnectivity","closeJournal","combineValidationResults","configureSDK","createCashRegister","createCashier","createInactivityPeriod","createMerchant","createReceipt","deleteCashier","getAPIClient","getBaseURL","getCashRegisterById","getCashRegisters","getCashierById","getCashiers","getCurrentCashier","getCurrentUser","getMTLSCertificate","getMTLSCertificateKey","getMTLSPrivateKeyKey","getMerchantById","getMerchants","getNetworkState","getPointOfSaleBySerial","getPointOfSales","getReceiptById","getReceiptDetails","getReceipts","hasPermission","hasRole","initSDK","initializeAPIClient","isAuthenticated","isCashier","isConnected","isMerchant","isProvider","isRetryableError","isSDKReady","logDebug","logError","logInfo","logWarn","loginCashier","loginMerchant","loginProvider","logout","networkLogger","quickLoginMerchant","quickLoginProvider","refreshToken","removeNetworkListener","retryAsync","returnReceiptItems","returnReceiptItemsWithProof","setPointOfSaleOffline","storageLogger","uiLogger","updateMerchant","useAuth","useProviderFlow","useRetryQueue","validateAddress","validateEmail","validateFiscalId","validateMoneyAmount","validatePassword","validateProvinceCode","validateReceiptItem","validateRequired","validateZipCode","voidReceipt","voidReceiptWithProof","waitForConnection","withRetry"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":1997},"src/api/mf1.ts":{"bytesInOutput":5379},"src/api/mf2.ts":{"bytesInOutput":861},"src/hooks/useAuth.ts":{"bytesInOutput":4491},"src/hooks/index.ts":{"bytesInOutput":0},"src/hooks/useRetryQueue.ts":{"bytesInOutput":3047},"src/hooks/useProviderFlow.ts":{"bytesInOutput":3186},"src/components/Button.tsx":{"bytesInOutput":2733},"src/components/index.ts":{"bytesInOutput":0},"src/components/FormInput.tsx":{"bytesInOutput":4427},"src/storage/certificate.ts":{"bytesInOutput":2961},"src/constants/roles.ts":{"bytesInOutput":996}},"bytes":33405},"dist/token-3CIX4E64.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/token-3CIX4E64.cjs":{"imports":[{"path":"dist/chunk-24ZJ6SNG.cjs","kind":"import-statement"},{"path":"dist/chunk-XQKCXG4I.cjs","kind":"import-statement"}],"exports":["SecureTokenStorage"],"entryPoint":"src/storage/token.ts","inputs":{},"bytes":201},"dist/queue-JHWXWX2B.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/queue-JHWXWX2B.cjs":{"imports":[{"path":"dist/chunk-NARXAXFL.cjs","kind":"import-statement"},{"path":"dist/chunk-XQKCXG4I.cjs","kind":"import-statement"}],"exports":["RequestQueue"],"entryPoint":"src/storage/queue.ts","inputs":{},"bytes":189},"dist/client-WPBRHPKX.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/client-WPBRHPKX.cjs":{"imports":[{"path":"dist/chunk-UVUWF5FV.cjs","kind":"import-statement"},{"path":"dist/chunk-24ZJ6SNG.cjs","kind":"import-statement"},{"path":"dist/chunk-NARXAXFL.cjs","kind":"import-statement"},{"path":"dist/chunk-XQKCXG4I.cjs","kind":"import-statement"}],"exports":["APIClient","DEFAULT_CONFIG","configureSDK","getAPIClient","initializeAPIClient"],"entryPoint":"src/api/client.ts","inputs":{},"bytes":391},"dist/auth-D6UEILKY.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/auth-D6UEILKY.cjs":{"imports":[{"path":"dist/chunk-UXVFQRZK.cjs","kind":"import-statement"},{"path":"dist/chunk-UVUWF5FV.cjs","kind":"import-statement"},{"path":"dist/chunk-24ZJ6SNG.cjs","kind":"import-statement"},{"path":"dist/chunk-NARXAXFL.cjs","kind":"import-statement"},{"path":"dist/chunk-XQKCXG4I.cjs","kind":"import-statement"}],"exports":["AuthenticationError","getAuthHeaders","getCurrentUser","hasRole","isAuthenticated","loginCashier","loginMerchant","loginProvider","logout","refreshToken","validateLoginCredentials"],"entryPoint":"src/api/auth.ts","inputs":{},"bytes":636},"dist/chunk-UXVFQRZK.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":28880},"dist/chunk-UXVFQRZK.cjs":{"imports":[{"path":"dist/chunk-UVUWF5FV.cjs","kind":"import-statement"},{"path":"dist/chunk-24ZJ6SNG.cjs","kind":"import-statement"},{"path":"dist/chunk-XQKCXG4I.cjs","kind":"import-statement"}],"exports":["AuthenticationError","combineValidationResults","getAuthHeaders","getCurrentUser","hasRole","isAuthenticated","loginCashier","loginMerchant","loginProvider","logout","refreshToken","validateAddress","validateEmail","validateFiscalId","validateLoginCredentials","validateMoneyAmount","validatePassword","validateProvinceCode","validateReceiptItem","validateRequired","validateZipCode"],"inputs":{"src/utils/validation.ts":{"bytesInOutput":7407},"src/api/auth.ts":{"bytesInOutput":7023}},"bytes":15181},"dist/chunk-UVUWF5FV.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":287709},"dist/chunk-UVUWF5FV.cjs":{"imports":[{"path":"dist/chunk-24ZJ6SNG.cjs","kind":"import-statement"},{"path":"dist/chunk-NARXAXFL.cjs","kind":"import-statement"},{"path":"dist/chunk-XQKCXG4I.cjs","kind":"import-statement"},{"path":"form-data","kind":"import-statement","external":true},{"path":"crypto","kind":"import-statement","external":true},{"path":"url","kind":"import-statement","external":true},{"path":"proxy-from-env","kind":"import-statement","external":true},{"path":"http","kind":"import-statement","external":true},{"path":"https","kind":"import-statement","external":true},{"path":"util","kind":"import-statement","external":true},{"path":"follow-redirects","kind":"import-statement","external":true},{"path":"zlib","kind":"import-statement","external":true},{"path":"stream","kind":"import-statement","external":true},{"path":"stream","kind":"import-statement","external":true},{"path":"events","kind":"import-statement","external":true},{"path":"util","kind":"import-statement","external":true},{"path":"stream","kind":"import-statement","external":true},{"path":"stream","kind":"import-statement","external":true},{"path":"@react-native-community/netinfo","kind":"dynamic-import","external":true}],"exports":["APIClient","API_ENDPOINTS","AxiosRetryInterceptor","DEFAULT_CONFIG","MF1_PATHS","MF2_PATHS","addNetworkListener","calculateJitteredDelay","calculateRetryDelay","checkInternetConnectivity","configureSDK","getAPIClient","getBaseURL","getNetworkState","initializeAPIClient","isConnected","isRetryableError","removeNetworkListener","retryAsync","waitForConnection","withRetry"],"inputs":{"node_modules/axios/lib/helpers/bind.js":{"bytesInOutput":158},"node_modules/axios/lib/utils.js":{"bytesInOutput":12813},"node_modules/axios/lib/core/AxiosError.js":{"bytesInOutput":2166},"node_modules/axios/lib/platform/node/classes/FormData.js":{"bytesInOutput":69},"node_modules/axios/lib/helpers/toFormData.js":{"bytesInOutput":4444},"node_modules/axios/lib/helpers/AxiosURLSearchParams.js":{"bytesInOutput":1116},"node_modules/axios/lib/helpers/buildURL.js":{"bytesInOutput":1042},"node_modules/axios/lib/core/InterceptorManager.js":{"bytesInOutput":1615},"node_modules/axios/lib/defaults/transitional.js":{"bytesInOutput":115},"node_modules/axios/lib/platform/node/index.js":{"bytesInOutput":821},"node_modules/axios/lib/platform/node/classes/URLSearchParams.js":{"bytesInOutput":74},"node_modules/axios/lib/platform/common/utils.js":{"bytesInOutput":867},"node_modules/axios/lib/platform/index.js":{"bytesInOutput":66},"node_modules/axios/lib/helpers/toURLEncodedForm.js":{"bytesInOutput":501},"node_modules/axios/lib/helpers/formDataToJSON.js":{"bytesInOutput":1721},"node_modules/axios/lib/defaults/index.js":{"bytesInOutput":4157},"node_modules/axios/lib/helpers/parseHeaders.js":{"bytesInOutput":1039},"node_modules/axios/lib/core/AxiosHeaders.js":{"bytesInOutput":8089},"node_modules/axios/lib/core/transformData.js":{"bytesInOutput":479},"node_modules/axios/lib/cancel/isCancel.js":{"bytesInOutput":99},"node_modules/axios/lib/cancel/CanceledError.js":{"bytesInOutput":373},"node_modules/axios/lib/core/settle.js":{"bytesInOutput":518},"node_modules/axios/lib/helpers/isAbsoluteURL.js":{"bytesInOutput":124},"node_modules/axios/lib/helpers/combineURLs.js":{"bytesInOutput":187},"node_modules/axios/lib/core/buildFullPath.js":{"bytesInOutput":301},"node_modules/axios/lib/adapters/http.js":{"bytesInOutput":18959},"node_modules/axios/lib/env/data.js":{"bytesInOutput":24},"node_modules/axios/lib/helpers/parseProtocol.js":{"bytesInOutput":163},"node_modules/axios/lib/helpers/fromDataURI.js":{"bytesInOutput":1110},"node_modules/axios/lib/helpers/AxiosTransformStream.js":{"bytesInOutput":3798},"node_modules/axios/lib/helpers/formDataToStream.js":{"bytesInOutput":2954},"node_modules/axios/lib/helpers/readBlob.js":{"bytesInOutput":361},"node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js":{"bytesInOutput":653},"node_modules/axios/lib/helpers/callbackify.js":{"bytesInOutput":393},"node_modules/axios/lib/helpers/speedometer.js":{"bytesInOutput":1009},"node_modules/axios/lib/helpers/throttle.js":{"bytesInOutput":902},"node_modules/axios/lib/helpers/progressEventReducer.js":{"bytesInOutput":1259},"node_modules/axios/lib/helpers/isURLSameOrigin.js":{"bytesInOutput":430},"node_modules/axios/lib/helpers/cookies.js":{"bytesInOutput":1019},"node_modules/axios/lib/core/mergeConfig.js":{"bytesInOutput":3308},"node_modules/axios/lib/helpers/resolveConfig.js":{"bytesInOutput":1559},"node_modules/axios/lib/adapters/xhr.js":{"bytesInOutput":5244},"node_modules/axios/lib/helpers/composeSignals.js":{"bytesInOutput":1398},"node_modules/axios/lib/helpers/trackStream.js":{"bytesInOutput":1865},"node_modules/axios/lib/adapters/fetch.js":{"bytesInOutput":6143},"node_modules/axios/lib/adapters/adapters.js":{"bytesInOutput":1855},"node_modules/axios/lib/core/dispatchRequest.js":{"bytesInOutput":1581},"node_modules/axios/lib/helpers/validator.js":{"bytesInOutput":2244},"node_modules/axios/lib/core/Axios.js":{"bytesInOutput":6265},"node_modules/axios/lib/cancel/CancelToken.js":{"bytesInOutput":2597},"node_modules/axios/lib/helpers/spread.js":{"bytesInOutput":161},"node_modules/axios/lib/helpers/isAxiosError.js":{"bytesInOutput":148},"node_modules/axios/lib/helpers/HttpStatusCode.js":{"bytesInOutput":1609},"node_modules/axios/lib/axios.js":{"bytesInOutput":1386},"node_modules/axios/index.js":{"bytesInOutput":365},"src/utils/network.ts":{"bytesInOutput":4710},"src/utils/retry.ts":{"bytesInOutput":4107},"src/constants/endpoints.ts":{"bytesInOutput":2073},"src/api/client.ts":{"bytesInOutput":7727}},"bytes":136074},"dist/chunk-24ZJ6SNG.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":38629},"dist/chunk-24ZJ6SNG.cjs":{"imports":[{"path":"dist/chunk-XQKCXG4I.cjs","kind":"import-statement"},{"path":"@react-native-async-storage/async-storage","kind":"import-statement","external":true},{"path":"react-native-keychain","kind":"import-statement","external":true},{"path":"idb-keyval","kind":"import-statement","external":true}],"exports":["SecureTokenStorage","apiLogger","authLogger","logDebug","logError","logInfo","logWarn","networkLogger","storageLogger","uiLogger"],"inputs":{"src/storage/token.ts":{"bytesInOutput":11060},"src/utils/logger.ts":{"bytesInOutput":7190}},"bytes":18650},"dist/chunk-NARXAXFL.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":11576},"dist/chunk-NARXAXFL.cjs":{"imports":[{"path":"dist/chunk-XQKCXG4I.cjs","kind":"import-statement"},{"path":"@react-native-async-storage/async-storage","kind":"import-statement","external":true}],"exports":["RequestQueue"],"inputs":{"src/storage/queue.ts":{"bytesInOutput":5655}},"bytes":5866},"dist/chunk-XQKCXG4I.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2708},"dist/chunk-XQKCXG4I.cjs":{"imports":[],"exports":["SECURE_KEYS","STORAGE_KEYS","__export","__name","__publicField","getMTLSCertificateKey","getMTLSPrivateKeyKey"],"inputs":{"src/constants/keys.ts":{"bytesInOutput":1179}},"bytes":1942}}}
|