@roketus/loyalty-js-sdk 4.35.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/README.md +8 -0
- package/dist/cjs/IContainerRegistry.d.ts +7 -0
- package/dist/cjs/api/analytics/createEvent.d.ts +2 -0
- package/dist/cjs/api/analytics/getActiveUsersData.d.ts +2 -0
- package/dist/cjs/api/analytics/getCardConversionStats.d.ts +2 -0
- package/dist/cjs/api/analytics/getGeneralCardsData.d.ts +2 -0
- package/dist/cjs/api/analytics/getIssuedCardsStats.d.ts +2 -0
- package/dist/cjs/api/analytics/getMyNotificationStats.d.ts +2 -0
- package/dist/cjs/api/analytics/getPointsAddedStats.d.ts +2 -0
- package/dist/cjs/api/analytics/getPointsData.d.ts +2 -0
- package/dist/cjs/api/analytics/getPointsUsedStats.d.ts +2 -0
- package/dist/cjs/api/analytics/getPurchasesStats.d.ts +2 -0
- package/dist/cjs/api/analytics/getUniquePurchasesStats.d.ts +2 -0
- package/dist/cjs/api/analytics/getUserCompositionStats.d.ts +2 -0
- package/dist/cjs/api/analytics/utils.d.ts +1 -0
- package/dist/cjs/api/auth/getJWTByApiKey.d.ts +2 -0
- package/dist/cjs/api/auth/getUserData.d.ts +2 -0
- package/dist/cjs/api/auth/signInByPhone.d.ts +2 -0
- package/dist/cjs/api/auth/validatePhoneOtp.d.ts +2 -0
- package/dist/cjs/api/campaign/createCampaign.d.ts +2 -0
- package/dist/cjs/api/campaign/createEmailTemplate.d.ts +16 -0
- package/dist/cjs/api/campaign/createPassPushTemplate.d.ts +15 -0
- package/dist/cjs/api/campaign/createSMSTemplate.d.ts +14 -0
- package/dist/cjs/api/campaign/createWebPushTemplate.d.ts +15 -0
- package/dist/cjs/api/campaign/deleteTemplate.d.ts +2 -0
- package/dist/cjs/api/campaign/deleteTemplateFromCampaign.d.ts +2 -0
- package/dist/cjs/api/campaign/getCampaignById.d.ts +2 -0
- package/dist/cjs/api/campaign/getMyCampaign.d.ts +2 -0
- package/dist/cjs/api/campaign/getMyCohorts.d.ts +2 -0
- package/dist/cjs/api/campaign/getMyTemplates.d.ts +2 -0
- package/dist/cjs/api/campaign/getTemplateById.d.ts +2 -0
- package/dist/cjs/api/campaign/runCampaign.d.ts +2 -0
- package/dist/cjs/api/campaign/setCohortToCampaign.d.ts +2 -0
- package/dist/cjs/api/campaign/setTemplateToCampaign.d.ts +2 -0
- package/dist/cjs/api/campaign/setTemplatesToCampaign.d.ts +2 -0
- package/dist/cjs/api/campaign/updateEmailTemplate.d.ts +2 -0
- package/dist/cjs/api/campaign/updatePassPushTemplate.d.ts +2 -0
- package/dist/cjs/api/campaign/updateSMSTemplate.d.ts +2 -0
- package/dist/cjs/api/campaign/updateWebPushTemplate.d.ts +2 -0
- package/dist/cjs/api/card/addPoints.d.ts +2 -0
- package/dist/cjs/api/card/addReserve.d.ts +2 -0
- package/dist/cjs/api/card/createAnonymousCard.d.ts +2 -0
- package/dist/cjs/api/card/downloadAndroidCard.d.ts +2 -0
- package/dist/cjs/api/card/downloadAnonymousCard.d.ts +2 -0
- package/dist/cjs/api/card/downloadCardFromPromise.d.ts +4 -0
- package/dist/cjs/api/card/downloadIOSCard.d.ts +2 -0
- package/dist/cjs/api/card/getBalanceHistory.d.ts +3 -0
- package/dist/cjs/api/card/getBonuses.d.ts +2 -0
- package/dist/cjs/api/card/getReferral.d.ts +2 -0
- package/dist/cjs/api/card/getUserCard.d.ts +2 -0
- package/dist/cjs/api/card/restoreCard.d.ts +2 -0
- package/dist/cjs/api/card/setTypeCard.d.ts +2 -0
- package/dist/cjs/api/card/spendPoints.d.ts +2 -0
- package/dist/cjs/api/card/updateCard.d.ts +2 -0
- package/dist/cjs/api/card/updateDiscountPercent.d.ts +2 -0
- package/dist/cjs/api/cardManagement/createCard.d.ts +2 -0
- package/dist/cjs/api/cardManagement/deactivateCard.d.ts +2 -0
- package/dist/cjs/api/cardManagement/issueCard.d.ts +2 -0
- package/dist/cjs/api/cardManagement/listCards.d.ts +2 -0
- package/dist/cjs/api/cardManagement/resultSerializer.d.ts +1 -0
- package/dist/cjs/api/cardManagement/updateCustomParams.d.ts +2 -0
- package/dist/cjs/api/cardManagement/updateExpirationDate.d.ts +2 -0
- package/dist/cjs/api/excludes/createExclude.d.ts +2 -0
- package/dist/cjs/api/excludes/deleteExclude.d.ts +2 -0
- package/dist/cjs/api/excludes/getExclude.d.ts +2 -0
- package/dist/cjs/api/excludes/listExcludes.d.ts +2 -0
- package/dist/cjs/api/excludes/resultSerializer.d.ts +1 -0
- package/dist/cjs/api/excludes/updateExclude.d.ts +2 -0
- package/dist/cjs/api/issuer/authByPassToken.d.ts +2 -0
- package/dist/cjs/api/issuer/authByToken.d.ts +2 -0
- package/dist/cjs/api/issuer/createIssuer.d.ts +2 -0
- package/dist/cjs/api/issuer/dispatchCustomEvent.d.ts +2 -0
- package/dist/cjs/api/issuer/getCardBonuses.d.ts +13 -0
- package/dist/cjs/api/issuer/getCardById.d.ts +2 -0
- package/dist/cjs/api/issuer/getCardByPhone.d.ts +2 -0
- package/dist/cjs/api/issuer/getCardSpends.d.ts +2 -0
- package/dist/cjs/api/issuer/getIssuer.d.ts +2 -0
- package/dist/cjs/api/issuer/refreshApiKey.d.ts +2 -0
- package/dist/cjs/api/issuer/sendNotificationToCards.d.ts +2 -0
- package/dist/cjs/api/issuer/sendPushNotification.d.ts +3 -0
- package/dist/cjs/api/issuer/sendToAllIssuerCards.d.ts +2 -0
- package/dist/cjs/api/issuer/setCardName.d.ts +2 -0
- package/dist/cjs/api/issuer/setSettings.d.ts +2 -0
- package/dist/cjs/api/logger/logDebug.d.ts +2 -0
- package/dist/cjs/api/logger/logError.d.ts +2 -0
- package/dist/cjs/api/logger/logInfo.d.ts +2 -0
- package/dist/cjs/api/logger/setup.d.ts +3 -0
- package/dist/cjs/api/notification/listEmailTemplates.d.ts +2 -0
- package/dist/cjs/api/notification/sendCompanyEmailByEvent.d.ts +2 -0
- package/dist/cjs/api/notification/sendCompanySmsByEvent.d.ts +2 -0
- package/dist/cjs/api/notification/sendEmailByEvent.d.ts +2 -0
- package/dist/cjs/api/notification/subscribeToNotifications.d.ts +2 -0
- package/dist/cjs/api/order/closeOrder.d.ts +2 -0
- package/dist/cjs/api/order/openOrder.d.ts +2 -0
- package/dist/cjs/api/order/resultSerializer.d.ts +1 -0
- package/dist/cjs/api/products/categoryResultSerializer.d.ts +1 -0
- package/dist/cjs/api/products/getCategoryById.d.ts +2 -0
- package/dist/cjs/api/products/getProductById.d.ts +2 -0
- package/dist/cjs/api/products/productResultSerializer.d.ts +1 -0
- package/dist/cjs/api/products/searchCategories.d.ts +2 -0
- package/dist/cjs/api/products/searchProducts.d.ts +2 -0
- package/dist/cjs/api/promocode/archivePromocode.d.ts +2 -0
- package/dist/cjs/api/promocode/createPromocode.d.ts +2 -0
- package/dist/cjs/api/promocode/getPromocodeById.d.ts +2 -0
- package/dist/cjs/api/promocode/listPromocodes.d.ts +2 -0
- package/dist/cjs/api/promocode/resultSerializer.d.ts +1 -0
- package/dist/cjs/api/promocode/unarchivePromocode.d.ts +2 -0
- package/dist/cjs/api/promocode/updatePromocode.d.ts +2 -0
- package/dist/cjs/api/promocode/usePromocode.d.ts +2 -0
- package/dist/cjs/api/referralProgram/archiveRefProgram.d.ts +2 -0
- package/dist/cjs/api/referralProgram/createRefProgram.d.ts +2 -0
- package/dist/cjs/api/referralProgram/getRefProgram.d.ts +2 -0
- package/dist/cjs/api/referralProgram/getRefProgramStats.d.ts +2 -0
- package/dist/cjs/api/referralProgram/influencers/addInfluencer.d.ts +2 -0
- package/dist/cjs/api/referralProgram/influencers/deleteInfluencer.d.ts +2 -0
- package/dist/cjs/api/referralProgram/influencers/getInfluencer.d.ts +2 -0
- package/dist/cjs/api/referralProgram/influencers/getStatsByInfluencer.d.ts +2 -0
- package/dist/cjs/api/referralProgram/influencers/listInfluencers.d.ts +2 -0
- package/dist/cjs/api/referralProgram/influencers/resultSerializer.d.ts +1 -0
- package/dist/cjs/api/referralProgram/influencers/updateInfluencer.d.ts +2 -0
- package/dist/cjs/api/referralProgram/listRefPrograms.d.ts +2 -0
- package/dist/cjs/api/referralProgram/resultSerializer.d.ts +1 -0
- package/dist/cjs/api/referralProgram/unarchiveRefProgram.d.ts +2 -0
- package/dist/cjs/api/referralProgram/updateRefProgram.d.ts +2 -0
- package/dist/cjs/api/shortLink/createLink.d.ts +2 -0
- package/dist/cjs/api/shortLink/deleteLink.d.ts +2 -0
- package/dist/cjs/api/shortLink/editLink.d.ts +2 -0
- package/dist/cjs/api/shortLink/listLinks.d.ts +2 -0
- package/dist/cjs/api/shortLink/resultSerializer.d.ts +1 -0
- package/dist/cjs/api/shortLink/viewLink.d.ts +2 -0
- package/dist/cjs/api/shortLink/wait.d.ts +1 -0
- package/dist/cjs/api/shortLinkAction/createLinkAction.d.ts +2 -0
- package/dist/cjs/api/shortLinkAction/deleteLinkAction.d.ts +2 -0
- package/dist/cjs/api/shortLinkAction/editLinkAction.d.ts +2 -0
- package/dist/cjs/api/signup/acceptTerms.d.ts +2 -0
- package/dist/cjs/api/signup/activateEmail.d.ts +2 -0
- package/dist/cjs/api/signup/activatePhone.d.ts +2 -0
- package/dist/cjs/api/signup/resendActivationCode.d.ts +2 -0
- package/dist/cjs/api/signup/setBirthdate.d.ts +2 -0
- package/dist/cjs/api/signup/setEmail.d.ts +2 -0
- package/dist/cjs/api/signup/setEmailWithoutActivation.d.ts +2 -0
- package/dist/cjs/api/signup/setPhone.d.ts +2 -0
- package/dist/cjs/api/signup/setProfile.d.ts +2 -0
- package/dist/cjs/api/signup/skipEmail.d.ts +2 -0
- package/dist/cjs/api/signup/skipEmailActivation.d.ts +2 -0
- package/dist/cjs/api/signup/skipProfile.d.ts +2 -0
- package/dist/cjs/api/telemetry/send.d.ts +2 -0
- package/dist/cjs/api/tiers/getAllTiers.d.ts +2 -0
- package/dist/cjs/api/tiers/getTiersByCard.d.ts +2 -0
- package/dist/cjs/api/tiers/setTierByCard.d.ts +2 -0
- package/dist/cjs/api/transactions/getTransactionsByCard.d.ts +2 -0
- package/dist/cjs/api/url/getShortLink.d.ts +2 -0
- package/dist/cjs/api/user/changeEmail.d.ts +2 -0
- package/dist/cjs/api/user/changePhone.d.ts +2 -0
- package/dist/cjs/api/user/changeProfileData.d.ts +2 -0
- package/dist/cjs/api/user/createUser.d.ts +2 -0
- package/dist/cjs/api/user/getProfile.d.ts +2 -0
- package/dist/cjs/api/user/updateProfileByIssuer.d.ts +2 -0
- package/dist/cjs/api/user/validateNewPhoneOtp.d.ts +2 -0
- package/dist/cjs/clients/anonymousUserClient.d.ts +2 -0
- package/dist/cjs/clients/anonymousUserClientWithIssuer.d.ts +2 -0
- package/dist/cjs/clients/issuerClient.d.ts +1 -0
- package/dist/cjs/clients/setIssuer.d.ts +3 -0
- package/dist/cjs/clients/setIssuerToken.d.ts +2 -0
- package/dist/cjs/clients/setUserToken.d.ts +2 -0
- package/dist/cjs/clients/timeout.d.ts +1 -0
- package/dist/cjs/clients/url.d.ts +1 -0
- package/dist/cjs/clients/userClient.d.ts +1 -0
- package/dist/cjs/diContainer/container.d.ts +7 -0
- package/dist/cjs/diContainer/initializeDependencies.d.ts +1 -0
- package/dist/cjs/index.d.ts +59 -0
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/interfaces/IRequestWithCancel.d.ts +4 -0
- package/dist/cjs/interfaces/IRequestWithCancelAndData.d.ts +5 -0
- package/dist/cjs/interfaces/ISDK.d.ts +232 -0
- package/dist/cjs/interfaces/I_Deserialized_Response_DTO.d.ts +5 -0
- package/dist/cjs/interfaces/I_JSON_API_ResponseDTO.d.ts +14 -0
- package/dist/cjs/interfaces/JsonApiRequestDTO.d.ts +5 -0
- package/dist/cjs/interfaces/analyticsInterfaces.d.ts +86 -0
- package/dist/cjs/interfaces/authInterfaces.d.ts +39 -0
- package/dist/cjs/interfaces/campaigns/campaignInterfaces.d.ts +174 -0
- package/dist/cjs/interfaces/campaigns/common.d.ts +74 -0
- package/dist/cjs/interfaces/campaigns/getByID.d.ts +9 -0
- package/dist/cjs/interfaces/campaigns/getMyCampaigns.d.ts +8 -0
- package/dist/cjs/interfaces/campaigns/index.d.ts +4 -0
- package/dist/cjs/interfaces/card/IGetBonuses.d.ts +7 -0
- package/dist/cjs/interfaces/cardInterfaces.d.ts +128 -0
- package/dist/cjs/interfaces/cardManagement/ICard.d.ts +27 -0
- package/dist/cjs/interfaces/cardManagement/cardManagementInterfaces.d.ts +67 -0
- package/dist/cjs/interfaces/common/CurrencyCodeEnum.d.ts +5 -0
- package/dist/cjs/interfaces/common/NotificationChannelEnum.d.ts +6 -0
- package/dist/cjs/interfaces/common/index.d.ts +2 -0
- package/dist/cjs/interfaces/excludes/excludeInterfaces.d.ts +43 -0
- package/dist/cjs/interfaces/excludes/listExcludesInterfaces.d.ts +10 -0
- package/dist/cjs/interfaces/issuer/IGetCardBonuses.d.ts +23 -0
- package/dist/cjs/interfaces/issuer/IGetCardSpends.d.ts +15 -0
- package/dist/cjs/interfaces/issuerInterface.d.ts +195 -0
- package/dist/cjs/interfaces/json.d.ts +5 -0
- package/dist/cjs/interfaces/loggerInterface.d.ts +19 -0
- package/dist/cjs/interfaces/notifications/IGetMyNotificationStats.d.ts +11 -0
- package/dist/cjs/interfaces/order/orderInterfaces.d.ts +101 -0
- package/dist/cjs/interfaces/products/TGetGroupById.d.ts +4 -0
- package/dist/cjs/interfaces/products/TGetProductById.d.ts +4 -0
- package/dist/cjs/interfaces/products/categoryInterfaces.d.ts +11 -0
- package/dist/cjs/interfaces/products/listCategoriesInterfaces.d.ts +13 -0
- package/dist/cjs/interfaces/products/listProductsInterfaces.d.ts +13 -0
- package/dist/cjs/interfaces/products/productInterfaces.d.ts +39 -0
- package/dist/cjs/interfaces/products/productSearchInterfaces.d.ts +4 -0
- package/dist/cjs/interfaces/promoCodes/ICreatePromocodePayload.d.ts +15 -0
- package/dist/cjs/interfaces/promoCodes/IPromocode.d.ts +30 -0
- package/dist/cjs/interfaces/promoCodes/IUpdatePromocodePayload.d.ts +14 -0
- package/dist/cjs/interfaces/promoCodes/promocodeInterfaces.d.ts +27 -0
- package/dist/cjs/interfaces/referralProgram/ICreateRefProgramPayload.d.ts +12 -0
- package/dist/cjs/interfaces/referralProgram/IInfluencerPayload.d.ts +7 -0
- package/dist/cjs/interfaces/referralProgram/IRefProgramInfluencer.d.ts +12 -0
- package/dist/cjs/interfaces/referralProgram/IRefProgramStats.d.ts +19 -0
- package/dist/cjs/interfaces/referralProgram/IReferralProgram.d.ts +51 -0
- package/dist/cjs/interfaces/referralProgram/IUpdateRefProgramPayload.d.ts +9 -0
- package/dist/cjs/interfaces/referralProgram/influencerInterfaces.d.ts +35 -0
- package/dist/cjs/interfaces/referralProgram/referralProgramInterfaces.d.ts +45 -0
- package/dist/cjs/interfaces/requestFilterInterfaces.d.ts +29 -0
- package/dist/cjs/interfaces/shortLinkActionInterface.d.ts +146 -0
- package/dist/cjs/interfaces/shortLinkInterface.d.ts +92 -0
- package/dist/cjs/interfaces/signupInterface.d.ts +56 -0
- package/dist/cjs/interfaces/telemetryInterfaces.d.ts +8 -0
- package/dist/cjs/interfaces/tiers/IGetAllTiers.d.ts +41 -0
- package/dist/cjs/interfaces/tiers/IGetTiersByCard.d.ts +22 -0
- package/dist/cjs/interfaces/tiers/ISetTierByCard.d.ts +16 -0
- package/dist/cjs/interfaces/transactions/IGetTransactionsByCard.d.ts +19 -0
- package/dist/cjs/interfaces/urlInterfaces.d.ts +19 -0
- package/dist/cjs/interfaces/user/IUser.d.ts +20 -0
- package/dist/cjs/interfaces/user/IUserCreate.d.ts +22 -0
- package/dist/cjs/interfaces/user/IUserUpdate.d.ts +7 -0
- package/dist/cjs/interfaces/user/userInterfaces.d.ts +86 -0
- package/dist/cjs/interfaces/user/userNotificationsInterfaces.d.ts +34 -0
- package/dist/cjs/sdk.d.ts +2 -0
- package/dist/cjs/testUtils.d.ts +2 -0
- package/dist/cjs/utils/toFilterQueryParams.d.ts +9 -0
- package/dist/cjs/utils/toIsoString.d.ts +1 -0
- package/dist/cjs/utils/toPagination.d.ts +3 -0
- package/dist/esm5/IContainerRegistry.d.ts +7 -0
- package/dist/esm5/api/analytics/createEvent.d.ts +2 -0
- package/dist/esm5/api/analytics/getActiveUsersData.d.ts +2 -0
- package/dist/esm5/api/analytics/getCardConversionStats.d.ts +2 -0
- package/dist/esm5/api/analytics/getGeneralCardsData.d.ts +2 -0
- package/dist/esm5/api/analytics/getIssuedCardsStats.d.ts +2 -0
- package/dist/esm5/api/analytics/getMyNotificationStats.d.ts +2 -0
- package/dist/esm5/api/analytics/getPointsAddedStats.d.ts +2 -0
- package/dist/esm5/api/analytics/getPointsData.d.ts +2 -0
- package/dist/esm5/api/analytics/getPointsUsedStats.d.ts +2 -0
- package/dist/esm5/api/analytics/getPurchasesStats.d.ts +2 -0
- package/dist/esm5/api/analytics/getUniquePurchasesStats.d.ts +2 -0
- package/dist/esm5/api/analytics/getUserCompositionStats.d.ts +2 -0
- package/dist/esm5/api/analytics/utils.d.ts +1 -0
- package/dist/esm5/api/auth/getJWTByApiKey.d.ts +2 -0
- package/dist/esm5/api/auth/getUserData.d.ts +2 -0
- package/dist/esm5/api/auth/signInByPhone.d.ts +2 -0
- package/dist/esm5/api/auth/validatePhoneOtp.d.ts +2 -0
- package/dist/esm5/api/campaign/createCampaign.d.ts +2 -0
- package/dist/esm5/api/campaign/createEmailTemplate.d.ts +16 -0
- package/dist/esm5/api/campaign/createPassPushTemplate.d.ts +15 -0
- package/dist/esm5/api/campaign/createSMSTemplate.d.ts +14 -0
- package/dist/esm5/api/campaign/createWebPushTemplate.d.ts +15 -0
- package/dist/esm5/api/campaign/deleteTemplate.d.ts +2 -0
- package/dist/esm5/api/campaign/deleteTemplateFromCampaign.d.ts +2 -0
- package/dist/esm5/api/campaign/getCampaignById.d.ts +2 -0
- package/dist/esm5/api/campaign/getMyCampaign.d.ts +2 -0
- package/dist/esm5/api/campaign/getMyCohorts.d.ts +2 -0
- package/dist/esm5/api/campaign/getMyTemplates.d.ts +2 -0
- package/dist/esm5/api/campaign/getTemplateById.d.ts +2 -0
- package/dist/esm5/api/campaign/runCampaign.d.ts +2 -0
- package/dist/esm5/api/campaign/setCohortToCampaign.d.ts +2 -0
- package/dist/esm5/api/campaign/setTemplateToCampaign.d.ts +2 -0
- package/dist/esm5/api/campaign/setTemplatesToCampaign.d.ts +2 -0
- package/dist/esm5/api/campaign/updateEmailTemplate.d.ts +2 -0
- package/dist/esm5/api/campaign/updatePassPushTemplate.d.ts +2 -0
- package/dist/esm5/api/campaign/updateSMSTemplate.d.ts +2 -0
- package/dist/esm5/api/campaign/updateWebPushTemplate.d.ts +2 -0
- package/dist/esm5/api/card/addPoints.d.ts +2 -0
- package/dist/esm5/api/card/addReserve.d.ts +2 -0
- package/dist/esm5/api/card/createAnonymousCard.d.ts +2 -0
- package/dist/esm5/api/card/downloadAndroidCard.d.ts +2 -0
- package/dist/esm5/api/card/downloadAnonymousCard.d.ts +2 -0
- package/dist/esm5/api/card/downloadCardFromPromise.d.ts +4 -0
- package/dist/esm5/api/card/downloadIOSCard.d.ts +2 -0
- package/dist/esm5/api/card/getBalanceHistory.d.ts +3 -0
- package/dist/esm5/api/card/getBonuses.d.ts +2 -0
- package/dist/esm5/api/card/getReferral.d.ts +2 -0
- package/dist/esm5/api/card/getUserCard.d.ts +2 -0
- package/dist/esm5/api/card/restoreCard.d.ts +2 -0
- package/dist/esm5/api/card/setTypeCard.d.ts +2 -0
- package/dist/esm5/api/card/spendPoints.d.ts +2 -0
- package/dist/esm5/api/card/updateCard.d.ts +2 -0
- package/dist/esm5/api/card/updateDiscountPercent.d.ts +2 -0
- package/dist/esm5/api/cardManagement/createCard.d.ts +2 -0
- package/dist/esm5/api/cardManagement/deactivateCard.d.ts +2 -0
- package/dist/esm5/api/cardManagement/issueCard.d.ts +2 -0
- package/dist/esm5/api/cardManagement/listCards.d.ts +2 -0
- package/dist/esm5/api/cardManagement/resultSerializer.d.ts +1 -0
- package/dist/esm5/api/cardManagement/updateCustomParams.d.ts +2 -0
- package/dist/esm5/api/cardManagement/updateExpirationDate.d.ts +2 -0
- package/dist/esm5/api/excludes/createExclude.d.ts +2 -0
- package/dist/esm5/api/excludes/deleteExclude.d.ts +2 -0
- package/dist/esm5/api/excludes/getExclude.d.ts +2 -0
- package/dist/esm5/api/excludes/listExcludes.d.ts +2 -0
- package/dist/esm5/api/excludes/resultSerializer.d.ts +1 -0
- package/dist/esm5/api/excludes/updateExclude.d.ts +2 -0
- package/dist/esm5/api/issuer/authByPassToken.d.ts +2 -0
- package/dist/esm5/api/issuer/authByToken.d.ts +2 -0
- package/dist/esm5/api/issuer/createIssuer.d.ts +2 -0
- package/dist/esm5/api/issuer/dispatchCustomEvent.d.ts +2 -0
- package/dist/esm5/api/issuer/getCardBonuses.d.ts +13 -0
- package/dist/esm5/api/issuer/getCardById.d.ts +2 -0
- package/dist/esm5/api/issuer/getCardByPhone.d.ts +2 -0
- package/dist/esm5/api/issuer/getCardSpends.d.ts +2 -0
- package/dist/esm5/api/issuer/getIssuer.d.ts +2 -0
- package/dist/esm5/api/issuer/refreshApiKey.d.ts +2 -0
- package/dist/esm5/api/issuer/sendNotificationToCards.d.ts +2 -0
- package/dist/esm5/api/issuer/sendPushNotification.d.ts +3 -0
- package/dist/esm5/api/issuer/sendToAllIssuerCards.d.ts +2 -0
- package/dist/esm5/api/issuer/setCardName.d.ts +2 -0
- package/dist/esm5/api/issuer/setSettings.d.ts +2 -0
- package/dist/esm5/api/logger/logDebug.d.ts +2 -0
- package/dist/esm5/api/logger/logError.d.ts +2 -0
- package/dist/esm5/api/logger/logInfo.d.ts +2 -0
- package/dist/esm5/api/logger/setup.d.ts +3 -0
- package/dist/esm5/api/notification/listEmailTemplates.d.ts +2 -0
- package/dist/esm5/api/notification/sendCompanyEmailByEvent.d.ts +2 -0
- package/dist/esm5/api/notification/sendCompanySmsByEvent.d.ts +2 -0
- package/dist/esm5/api/notification/sendEmailByEvent.d.ts +2 -0
- package/dist/esm5/api/notification/subscribeToNotifications.d.ts +2 -0
- package/dist/esm5/api/order/closeOrder.d.ts +2 -0
- package/dist/esm5/api/order/openOrder.d.ts +2 -0
- package/dist/esm5/api/order/resultSerializer.d.ts +1 -0
- package/dist/esm5/api/products/categoryResultSerializer.d.ts +1 -0
- package/dist/esm5/api/products/getCategoryById.d.ts +2 -0
- package/dist/esm5/api/products/getProductById.d.ts +2 -0
- package/dist/esm5/api/products/productResultSerializer.d.ts +1 -0
- package/dist/esm5/api/products/searchCategories.d.ts +2 -0
- package/dist/esm5/api/products/searchProducts.d.ts +2 -0
- package/dist/esm5/api/promocode/archivePromocode.d.ts +2 -0
- package/dist/esm5/api/promocode/createPromocode.d.ts +2 -0
- package/dist/esm5/api/promocode/getPromocodeById.d.ts +2 -0
- package/dist/esm5/api/promocode/listPromocodes.d.ts +2 -0
- package/dist/esm5/api/promocode/resultSerializer.d.ts +1 -0
- package/dist/esm5/api/promocode/unarchivePromocode.d.ts +2 -0
- package/dist/esm5/api/promocode/updatePromocode.d.ts +2 -0
- package/dist/esm5/api/promocode/usePromocode.d.ts +2 -0
- package/dist/esm5/api/referralProgram/archiveRefProgram.d.ts +2 -0
- package/dist/esm5/api/referralProgram/createRefProgram.d.ts +2 -0
- package/dist/esm5/api/referralProgram/getRefProgram.d.ts +2 -0
- package/dist/esm5/api/referralProgram/getRefProgramStats.d.ts +2 -0
- package/dist/esm5/api/referralProgram/influencers/addInfluencer.d.ts +2 -0
- package/dist/esm5/api/referralProgram/influencers/deleteInfluencer.d.ts +2 -0
- package/dist/esm5/api/referralProgram/influencers/getInfluencer.d.ts +2 -0
- package/dist/esm5/api/referralProgram/influencers/getStatsByInfluencer.d.ts +2 -0
- package/dist/esm5/api/referralProgram/influencers/listInfluencers.d.ts +2 -0
- package/dist/esm5/api/referralProgram/influencers/resultSerializer.d.ts +1 -0
- package/dist/esm5/api/referralProgram/influencers/updateInfluencer.d.ts +2 -0
- package/dist/esm5/api/referralProgram/listRefPrograms.d.ts +2 -0
- package/dist/esm5/api/referralProgram/resultSerializer.d.ts +1 -0
- package/dist/esm5/api/referralProgram/unarchiveRefProgram.d.ts +2 -0
- package/dist/esm5/api/referralProgram/updateRefProgram.d.ts +2 -0
- package/dist/esm5/api/shortLink/createLink.d.ts +2 -0
- package/dist/esm5/api/shortLink/deleteLink.d.ts +2 -0
- package/dist/esm5/api/shortLink/editLink.d.ts +2 -0
- package/dist/esm5/api/shortLink/listLinks.d.ts +2 -0
- package/dist/esm5/api/shortLink/resultSerializer.d.ts +1 -0
- package/dist/esm5/api/shortLink/viewLink.d.ts +2 -0
- package/dist/esm5/api/shortLink/wait.d.ts +1 -0
- package/dist/esm5/api/shortLinkAction/createLinkAction.d.ts +2 -0
- package/dist/esm5/api/shortLinkAction/deleteLinkAction.d.ts +2 -0
- package/dist/esm5/api/shortLinkAction/editLinkAction.d.ts +2 -0
- package/dist/esm5/api/signup/acceptTerms.d.ts +2 -0
- package/dist/esm5/api/signup/activateEmail.d.ts +2 -0
- package/dist/esm5/api/signup/activatePhone.d.ts +2 -0
- package/dist/esm5/api/signup/resendActivationCode.d.ts +2 -0
- package/dist/esm5/api/signup/setBirthdate.d.ts +2 -0
- package/dist/esm5/api/signup/setEmail.d.ts +2 -0
- package/dist/esm5/api/signup/setEmailWithoutActivation.d.ts +2 -0
- package/dist/esm5/api/signup/setPhone.d.ts +2 -0
- package/dist/esm5/api/signup/setProfile.d.ts +2 -0
- package/dist/esm5/api/signup/skipEmail.d.ts +2 -0
- package/dist/esm5/api/signup/skipEmailActivation.d.ts +2 -0
- package/dist/esm5/api/signup/skipProfile.d.ts +2 -0
- package/dist/esm5/api/telemetry/send.d.ts +2 -0
- package/dist/esm5/api/tiers/getAllTiers.d.ts +2 -0
- package/dist/esm5/api/tiers/getTiersByCard.d.ts +2 -0
- package/dist/esm5/api/tiers/setTierByCard.d.ts +2 -0
- package/dist/esm5/api/transactions/getTransactionsByCard.d.ts +2 -0
- package/dist/esm5/api/url/getShortLink.d.ts +2 -0
- package/dist/esm5/api/user/changeEmail.d.ts +2 -0
- package/dist/esm5/api/user/changePhone.d.ts +2 -0
- package/dist/esm5/api/user/changeProfileData.d.ts +2 -0
- package/dist/esm5/api/user/createUser.d.ts +2 -0
- package/dist/esm5/api/user/getProfile.d.ts +2 -0
- package/dist/esm5/api/user/updateProfileByIssuer.d.ts +2 -0
- package/dist/esm5/api/user/validateNewPhoneOtp.d.ts +2 -0
- package/dist/esm5/clients/anonymousUserClient.d.ts +2 -0
- package/dist/esm5/clients/anonymousUserClientWithIssuer.d.ts +2 -0
- package/dist/esm5/clients/issuerClient.d.ts +1 -0
- package/dist/esm5/clients/setIssuer.d.ts +3 -0
- package/dist/esm5/clients/setIssuerToken.d.ts +2 -0
- package/dist/esm5/clients/setUserToken.d.ts +2 -0
- package/dist/esm5/clients/timeout.d.ts +1 -0
- package/dist/esm5/clients/url.d.ts +1 -0
- package/dist/esm5/clients/userClient.d.ts +1 -0
- package/dist/esm5/diContainer/container.d.ts +7 -0
- package/dist/esm5/diContainer/initializeDependencies.d.ts +1 -0
- package/dist/esm5/index.d.ts +59 -0
- package/dist/esm5/index.js +1 -0
- package/dist/esm5/interfaces/IRequestWithCancel.d.ts +4 -0
- package/dist/esm5/interfaces/IRequestWithCancelAndData.d.ts +5 -0
- package/dist/esm5/interfaces/ISDK.d.ts +232 -0
- package/dist/esm5/interfaces/I_Deserialized_Response_DTO.d.ts +5 -0
- package/dist/esm5/interfaces/I_JSON_API_ResponseDTO.d.ts +14 -0
- package/dist/esm5/interfaces/JsonApiRequestDTO.d.ts +5 -0
- package/dist/esm5/interfaces/analyticsInterfaces.d.ts +86 -0
- package/dist/esm5/interfaces/authInterfaces.d.ts +39 -0
- package/dist/esm5/interfaces/campaigns/campaignInterfaces.d.ts +174 -0
- package/dist/esm5/interfaces/campaigns/common.d.ts +74 -0
- package/dist/esm5/interfaces/campaigns/getByID.d.ts +9 -0
- package/dist/esm5/interfaces/campaigns/getMyCampaigns.d.ts +8 -0
- package/dist/esm5/interfaces/campaigns/index.d.ts +4 -0
- package/dist/esm5/interfaces/card/IGetBonuses.d.ts +7 -0
- package/dist/esm5/interfaces/cardInterfaces.d.ts +128 -0
- package/dist/esm5/interfaces/cardManagement/ICard.d.ts +27 -0
- package/dist/esm5/interfaces/cardManagement/cardManagementInterfaces.d.ts +67 -0
- package/dist/esm5/interfaces/common/CurrencyCodeEnum.d.ts +5 -0
- package/dist/esm5/interfaces/common/NotificationChannelEnum.d.ts +6 -0
- package/dist/esm5/interfaces/common/index.d.ts +2 -0
- package/dist/esm5/interfaces/excludes/excludeInterfaces.d.ts +43 -0
- package/dist/esm5/interfaces/excludes/listExcludesInterfaces.d.ts +10 -0
- package/dist/esm5/interfaces/issuer/IGetCardBonuses.d.ts +23 -0
- package/dist/esm5/interfaces/issuer/IGetCardSpends.d.ts +15 -0
- package/dist/esm5/interfaces/issuerInterface.d.ts +195 -0
- package/dist/esm5/interfaces/json.d.ts +5 -0
- package/dist/esm5/interfaces/loggerInterface.d.ts +19 -0
- package/dist/esm5/interfaces/notifications/IGetMyNotificationStats.d.ts +11 -0
- package/dist/esm5/interfaces/order/orderInterfaces.d.ts +101 -0
- package/dist/esm5/interfaces/products/TGetGroupById.d.ts +4 -0
- package/dist/esm5/interfaces/products/TGetProductById.d.ts +4 -0
- package/dist/esm5/interfaces/products/categoryInterfaces.d.ts +11 -0
- package/dist/esm5/interfaces/products/listCategoriesInterfaces.d.ts +13 -0
- package/dist/esm5/interfaces/products/listProductsInterfaces.d.ts +13 -0
- package/dist/esm5/interfaces/products/productInterfaces.d.ts +39 -0
- package/dist/esm5/interfaces/products/productSearchInterfaces.d.ts +4 -0
- package/dist/esm5/interfaces/promoCodes/ICreatePromocodePayload.d.ts +15 -0
- package/dist/esm5/interfaces/promoCodes/IPromocode.d.ts +30 -0
- package/dist/esm5/interfaces/promoCodes/IUpdatePromocodePayload.d.ts +14 -0
- package/dist/esm5/interfaces/promoCodes/promocodeInterfaces.d.ts +27 -0
- package/dist/esm5/interfaces/referralProgram/ICreateRefProgramPayload.d.ts +12 -0
- package/dist/esm5/interfaces/referralProgram/IInfluencerPayload.d.ts +7 -0
- package/dist/esm5/interfaces/referralProgram/IRefProgramInfluencer.d.ts +12 -0
- package/dist/esm5/interfaces/referralProgram/IRefProgramStats.d.ts +19 -0
- package/dist/esm5/interfaces/referralProgram/IReferralProgram.d.ts +51 -0
- package/dist/esm5/interfaces/referralProgram/IUpdateRefProgramPayload.d.ts +9 -0
- package/dist/esm5/interfaces/referralProgram/influencerInterfaces.d.ts +35 -0
- package/dist/esm5/interfaces/referralProgram/referralProgramInterfaces.d.ts +45 -0
- package/dist/esm5/interfaces/requestFilterInterfaces.d.ts +29 -0
- package/dist/esm5/interfaces/shortLinkActionInterface.d.ts +146 -0
- package/dist/esm5/interfaces/shortLinkInterface.d.ts +92 -0
- package/dist/esm5/interfaces/signupInterface.d.ts +56 -0
- package/dist/esm5/interfaces/telemetryInterfaces.d.ts +8 -0
- package/dist/esm5/interfaces/tiers/IGetAllTiers.d.ts +41 -0
- package/dist/esm5/interfaces/tiers/IGetTiersByCard.d.ts +22 -0
- package/dist/esm5/interfaces/tiers/ISetTierByCard.d.ts +16 -0
- package/dist/esm5/interfaces/transactions/IGetTransactionsByCard.d.ts +19 -0
- package/dist/esm5/interfaces/urlInterfaces.d.ts +19 -0
- package/dist/esm5/interfaces/user/IUser.d.ts +20 -0
- package/dist/esm5/interfaces/user/IUserCreate.d.ts +22 -0
- package/dist/esm5/interfaces/user/IUserUpdate.d.ts +7 -0
- package/dist/esm5/interfaces/user/userInterfaces.d.ts +86 -0
- package/dist/esm5/interfaces/user/userNotificationsInterfaces.d.ts +34 -0
- package/dist/esm5/sdk.d.ts +2 -0
- package/dist/esm5/testUtils.d.ts +2 -0
- package/dist/esm5/utils/toFilterQueryParams.d.ts +9 -0
- package/dist/esm5/utils/toIsoString.d.ts +1 -0
- package/dist/esm5/utils/toPagination.d.ts +3 -0
- package/package.json +60 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { IListFiltersPayload } from '../requestFilterInterfaces';
|
|
2
|
+
import { I_JSON_API_Response_Many } from '../I_JSON_API_ResponseDTO';
|
|
3
|
+
import { I_Deserialized_List_Response_DTO } from '../I_Deserialized_Response_DTO';
|
|
4
|
+
import { IReferralProgram, IReferralProgramListItem } from './IReferralProgram';
|
|
5
|
+
import { IRefProgramStats } from './IRefProgramStats';
|
|
6
|
+
import { ICreateRefProgramPayload } from './ICreateRefProgramPayload';
|
|
7
|
+
import { IUpdateRefProgramPayload } from './IUpdateRefProgramPayload';
|
|
8
|
+
export interface CreateRefProgramRequestDTO {
|
|
9
|
+
data: {
|
|
10
|
+
attributes: ICreateRefProgramPayload;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export declare type ReferralProgramResponseDTO = I_JSON_API_Response_Many<IReferralProgram>;
|
|
14
|
+
export interface ICreateReferralProgram {
|
|
15
|
+
(payload: ICreateRefProgramPayload): Promise<IReferralProgram>;
|
|
16
|
+
}
|
|
17
|
+
export interface UpdateRefProgramRequestDTO {
|
|
18
|
+
data: {
|
|
19
|
+
attributes: IUpdateRefProgramPayload;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export interface UpdateReferralProgramResponseDTO {
|
|
23
|
+
data: 'ok';
|
|
24
|
+
}
|
|
25
|
+
export interface IUpdateReferralProgram {
|
|
26
|
+
(id: string, payload: IUpdateRefProgramPayload): Promise<void>;
|
|
27
|
+
}
|
|
28
|
+
export interface IArchiveReferralProgram {
|
|
29
|
+
(id: string): Promise<void>;
|
|
30
|
+
}
|
|
31
|
+
export interface IUnarchiveReferralProgram {
|
|
32
|
+
(id: string): Promise<void>;
|
|
33
|
+
}
|
|
34
|
+
export interface IListReferralPrograms {
|
|
35
|
+
(params: IListFiltersPayload): Promise<IListReferralProgramsResponse>;
|
|
36
|
+
}
|
|
37
|
+
export declare type ListReferralProgramsResponseDTO = I_JSON_API_Response_Many<ReferralProgramResponseDTO>;
|
|
38
|
+
export declare type IListReferralProgramsResponse = I_Deserialized_List_Response_DTO<IReferralProgramListItem>;
|
|
39
|
+
export interface IGetReferralProgram {
|
|
40
|
+
(id: string): Promise<IReferralProgram>;
|
|
41
|
+
}
|
|
42
|
+
export declare type RefProgramStatsResponseDTO = I_JSON_API_Response_Many<IRefProgramStats>;
|
|
43
|
+
export interface IGetRefProgramStats {
|
|
44
|
+
(id: string): Promise<IRefProgramStats>;
|
|
45
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface IPaginationExternalMeta {
|
|
2
|
+
current_page?: number;
|
|
3
|
+
limit: number;
|
|
4
|
+
offset: number;
|
|
5
|
+
total_items: number;
|
|
6
|
+
total_pages?: number;
|
|
7
|
+
}
|
|
8
|
+
export interface IPaginationMeta {
|
|
9
|
+
Limit: number;
|
|
10
|
+
Offset: number;
|
|
11
|
+
TotalItems: number;
|
|
12
|
+
}
|
|
13
|
+
export interface IPaginationData {
|
|
14
|
+
page: number;
|
|
15
|
+
pageSize: number;
|
|
16
|
+
totalData: number;
|
|
17
|
+
totalPages: number;
|
|
18
|
+
}
|
|
19
|
+
export declare enum EListSort {
|
|
20
|
+
ASC = "asc",
|
|
21
|
+
DESC = "desc"
|
|
22
|
+
}
|
|
23
|
+
export interface IListFiltersPayload {
|
|
24
|
+
page?: number;
|
|
25
|
+
pageSize?: number;
|
|
26
|
+
filter?: Record<string, string | string[]>;
|
|
27
|
+
sort?: Record<string, EListSort>;
|
|
28
|
+
search?: string;
|
|
29
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { IHTTPClientResponse } from '@roketus/web-toolkit';
|
|
2
|
+
import { NotificationChannel } from './common/NotificationChannelEnum';
|
|
3
|
+
import { CurrencyCode } from './common/CurrencyCodeEnum';
|
|
4
|
+
export declare type TLinkActionType = 'add_gift_bonuses' | 'card' | 'send_notification' | 'coupon' | 'add_promo_to_user' | 'change_template';
|
|
5
|
+
interface IBonusPayload {
|
|
6
|
+
currency_code: CurrencyCode;
|
|
7
|
+
amount: number;
|
|
8
|
+
}
|
|
9
|
+
interface ICardPayload {
|
|
10
|
+
templateID: string;
|
|
11
|
+
}
|
|
12
|
+
interface ICouponWithPromoPayload {
|
|
13
|
+
template_id: string;
|
|
14
|
+
promo_code_id: string;
|
|
15
|
+
count_of_use: number;
|
|
16
|
+
}
|
|
17
|
+
interface IAddUserPromoPayload {
|
|
18
|
+
promo_code_id: string;
|
|
19
|
+
count_of_use: number;
|
|
20
|
+
}
|
|
21
|
+
interface IChangeTemplatePayload {
|
|
22
|
+
template_id: string;
|
|
23
|
+
}
|
|
24
|
+
declare type NotificationEmailRequest = {
|
|
25
|
+
template: {
|
|
26
|
+
subject: string;
|
|
27
|
+
html?: string;
|
|
28
|
+
text: string;
|
|
29
|
+
};
|
|
30
|
+
channel: NotificationChannel.Email;
|
|
31
|
+
};
|
|
32
|
+
declare type NotificationSmsRequest = {
|
|
33
|
+
template: {
|
|
34
|
+
msg: string;
|
|
35
|
+
};
|
|
36
|
+
channel: NotificationChannel.Sms;
|
|
37
|
+
};
|
|
38
|
+
declare type NotificationWepPassPushRequest = {
|
|
39
|
+
template: {
|
|
40
|
+
msg: string;
|
|
41
|
+
title: string;
|
|
42
|
+
};
|
|
43
|
+
channel: NotificationChannel.WebPush | NotificationChannel.PassPush;
|
|
44
|
+
};
|
|
45
|
+
declare type INotificationPayload = NotificationEmailRequest | NotificationSmsRequest | NotificationWepPassPushRequest;
|
|
46
|
+
interface ILinkActionPayload<T> {
|
|
47
|
+
type: TLinkActionType;
|
|
48
|
+
payload: T;
|
|
49
|
+
}
|
|
50
|
+
interface ILinkActionPayloadBonusResponse {
|
|
51
|
+
Amount: string;
|
|
52
|
+
CurrencyCode: CurrencyCode;
|
|
53
|
+
Description: string;
|
|
54
|
+
Metadata: null;
|
|
55
|
+
}
|
|
56
|
+
interface ILinkActionPayloadCardResponse {
|
|
57
|
+
TemplateID: string;
|
|
58
|
+
}
|
|
59
|
+
interface ILinkActionPayloadCouponWithPromoResponse {
|
|
60
|
+
TemplateID: string;
|
|
61
|
+
PromoID: string;
|
|
62
|
+
CountOfUse: number;
|
|
63
|
+
}
|
|
64
|
+
interface ILinkActionPayloadAddUserPromoResponse {
|
|
65
|
+
PromoID: string;
|
|
66
|
+
CountOfUse: number;
|
|
67
|
+
}
|
|
68
|
+
interface ILinkActionPayloadChangeTemplateResponse {
|
|
69
|
+
TemplateID: string;
|
|
70
|
+
}
|
|
71
|
+
declare type NotificationEmailResponse = {
|
|
72
|
+
Template: {
|
|
73
|
+
subject: string;
|
|
74
|
+
html?: string;
|
|
75
|
+
text: string;
|
|
76
|
+
};
|
|
77
|
+
Channel: NotificationChannel.Email;
|
|
78
|
+
};
|
|
79
|
+
declare type NotificationSmsResponse = {
|
|
80
|
+
Template: {
|
|
81
|
+
msg: string;
|
|
82
|
+
};
|
|
83
|
+
Channel: NotificationChannel.Sms;
|
|
84
|
+
};
|
|
85
|
+
declare type NotificationWepPassPushResponse = {
|
|
86
|
+
Template: {
|
|
87
|
+
msg: string;
|
|
88
|
+
title: string;
|
|
89
|
+
};
|
|
90
|
+
Channel: NotificationChannel.WebPush | NotificationChannel.PassPush;
|
|
91
|
+
};
|
|
92
|
+
declare type TLinkActionPayloadNotificationResponse = NotificationEmailResponse | NotificationSmsResponse | NotificationWepPassPushResponse;
|
|
93
|
+
export declare type TLinkActionPayloadResponse = ILinkActionPayloadBonusResponse | ILinkActionPayloadCardResponse | TLinkActionPayloadNotificationResponse[] | ILinkActionPayloadCouponWithPromoResponse | ILinkActionPayloadAddUserPromoResponse | ILinkActionPayloadChangeTemplateResponse;
|
|
94
|
+
interface ILinkActionResponse {
|
|
95
|
+
data: {
|
|
96
|
+
id: string;
|
|
97
|
+
type: string;
|
|
98
|
+
attributes: {
|
|
99
|
+
baseUrl: string;
|
|
100
|
+
linkKey: string;
|
|
101
|
+
linkType: string;
|
|
102
|
+
meta: Record<string, string>;
|
|
103
|
+
name: string;
|
|
104
|
+
ownerId: string;
|
|
105
|
+
params: Record<string, string>;
|
|
106
|
+
url: string;
|
|
107
|
+
};
|
|
108
|
+
relationships: {
|
|
109
|
+
action: {
|
|
110
|
+
data: {
|
|
111
|
+
id: string;
|
|
112
|
+
type: string;
|
|
113
|
+
}[];
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
}[];
|
|
117
|
+
included: [
|
|
118
|
+
{
|
|
119
|
+
id: string;
|
|
120
|
+
type: string;
|
|
121
|
+
attributes: {
|
|
122
|
+
actionType: string;
|
|
123
|
+
createdAt: number;
|
|
124
|
+
payload: TLinkActionPayloadResponse;
|
|
125
|
+
};
|
|
126
|
+
relationships: object;
|
|
127
|
+
}
|
|
128
|
+
];
|
|
129
|
+
}
|
|
130
|
+
export declare type LinkActionResponseDTO = IHTTPClientResponse<ILinkActionResponse>;
|
|
131
|
+
export declare type TLinkActionPayload = ILinkActionPayload<IBonusPayload | ICardPayload | ICouponWithPromoPayload | IAddUserPromoPayload | IChangeTemplatePayload | INotificationPayload[]>;
|
|
132
|
+
export interface LinkActionRequestDTO {
|
|
133
|
+
data: {
|
|
134
|
+
attributes: TLinkActionPayload;
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
export interface ICreateLinkAction {
|
|
138
|
+
(linkId: string, payload: TLinkActionPayload): Promise<LinkActionResponseDTO>;
|
|
139
|
+
}
|
|
140
|
+
export interface IEditLinkAction {
|
|
141
|
+
(linkId: string, linkActionId: string, payload: TLinkActionPayload): Promise<ILinkActionResponse>;
|
|
142
|
+
}
|
|
143
|
+
export interface IDeleteLinkAction {
|
|
144
|
+
(linkId: string, linkActionId: string): Promise<void>;
|
|
145
|
+
}
|
|
146
|
+
export {};
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { TLinkActionType, TLinkActionPayloadResponse } from './shortLinkActionInterface';
|
|
2
|
+
import { IListFiltersPayload, IPaginationData } from './requestFilterInterfaces';
|
|
3
|
+
import { I_JSON_API_Response_Many } from './I_JSON_API_ResponseDTO';
|
|
4
|
+
export interface IShortLinkResponseDTO {
|
|
5
|
+
id: string;
|
|
6
|
+
type: string;
|
|
7
|
+
attributes: {
|
|
8
|
+
linkKey: string;
|
|
9
|
+
linkType: string;
|
|
10
|
+
name: string;
|
|
11
|
+
ownerId: string;
|
|
12
|
+
baseUrl: string;
|
|
13
|
+
url: string;
|
|
14
|
+
createdAt: number;
|
|
15
|
+
params: Record<string, string>;
|
|
16
|
+
meta: Record<string, string>;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export interface IShortLinkActionResponseDTO {
|
|
20
|
+
id: string;
|
|
21
|
+
type: 'action';
|
|
22
|
+
attributes: {
|
|
23
|
+
actionType: TLinkActionType;
|
|
24
|
+
createdAt: number;
|
|
25
|
+
payload: TLinkActionPayloadResponse;
|
|
26
|
+
};
|
|
27
|
+
relationships: object;
|
|
28
|
+
}
|
|
29
|
+
export interface IShortLinkAction {
|
|
30
|
+
id: string;
|
|
31
|
+
actionType: string;
|
|
32
|
+
createdAt: number;
|
|
33
|
+
payload: TLinkActionPayloadResponse;
|
|
34
|
+
}
|
|
35
|
+
export interface IShortLink {
|
|
36
|
+
id: string;
|
|
37
|
+
linkKey: string;
|
|
38
|
+
linkType: string;
|
|
39
|
+
name: string;
|
|
40
|
+
ownerId: string;
|
|
41
|
+
baseUrl: string;
|
|
42
|
+
url: string;
|
|
43
|
+
createdAt: number;
|
|
44
|
+
params: Record<string, string>;
|
|
45
|
+
meta: Record<string, string>;
|
|
46
|
+
action?: IShortLinkAction[];
|
|
47
|
+
}
|
|
48
|
+
export declare type LinkResponseDTO = I_JSON_API_Response_Many<IShortLinkResponseDTO, IShortLinkActionResponseDTO>;
|
|
49
|
+
export interface ICreateLink {
|
|
50
|
+
(payload: ICreateLinkPayload): Promise<IShortLink>;
|
|
51
|
+
}
|
|
52
|
+
export interface ICreateLinkPayload {
|
|
53
|
+
name: string;
|
|
54
|
+
linkType: string;
|
|
55
|
+
url: string;
|
|
56
|
+
meta: Record<string, string>;
|
|
57
|
+
params: Record<string, string>;
|
|
58
|
+
}
|
|
59
|
+
export interface CreateLinkRequestDTO {
|
|
60
|
+
data: {
|
|
61
|
+
attributes: {
|
|
62
|
+
name: string;
|
|
63
|
+
link_type: string;
|
|
64
|
+
url: string;
|
|
65
|
+
meta: Record<string, string>;
|
|
66
|
+
params: Record<string, string>;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
export interface IEditLink {
|
|
71
|
+
(id: string, data: IEditLinkPayload): Promise<void>;
|
|
72
|
+
}
|
|
73
|
+
export interface IEditLinkPayload extends ICreateLinkPayload {
|
|
74
|
+
}
|
|
75
|
+
export interface EditLinkRequestDTO extends CreateLinkRequestDTO {
|
|
76
|
+
}
|
|
77
|
+
export interface EditLinkResponseDTO {
|
|
78
|
+
data: 'ok';
|
|
79
|
+
}
|
|
80
|
+
export interface IViewLink {
|
|
81
|
+
(linkId: string): Promise<IShortLink>;
|
|
82
|
+
}
|
|
83
|
+
export interface IDeleteLink {
|
|
84
|
+
(linkId: string): Promise<void>;
|
|
85
|
+
}
|
|
86
|
+
export interface IListLinks {
|
|
87
|
+
(params: IListFiltersPayload): Promise<IListLinksResponse>;
|
|
88
|
+
}
|
|
89
|
+
export interface IListLinksResponse {
|
|
90
|
+
data: IShortLink[];
|
|
91
|
+
meta: IPaginationData;
|
|
92
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { IHTTPClientResponse } from '@roketus/web-toolkit';
|
|
2
|
+
export interface IAcceptTerms {
|
|
3
|
+
(activationMode: string, referralId?: string): Promise<IHTTPClientResponse<ActivationResponseDTO>>;
|
|
4
|
+
}
|
|
5
|
+
export interface IActivateEmail {
|
|
6
|
+
(activationMode: string): Promise<IHTTPClientResponse<ActivationResponseDTO>>;
|
|
7
|
+
}
|
|
8
|
+
export interface IActivatePhone {
|
|
9
|
+
(code: number, activationMode: string): Promise<IHTTPClientResponse<ActivationResponseDTO>>;
|
|
10
|
+
}
|
|
11
|
+
export interface IResendActivationCode {
|
|
12
|
+
(): Promise<IHTTPClientResponse<ActivationResponseDTO>>;
|
|
13
|
+
}
|
|
14
|
+
export interface ISetEmail {
|
|
15
|
+
(email: string, activationMode: string): Promise<IHTTPClientResponse<ActivationResponseDTO>>;
|
|
16
|
+
}
|
|
17
|
+
export interface ISetPhone {
|
|
18
|
+
(phoneNumber: string, activationMode: string): Promise<IHTTPClientResponse<ActivationResponseDTO>>;
|
|
19
|
+
}
|
|
20
|
+
export interface ISetBirthdate {
|
|
21
|
+
(date: string, activationMode: string): Promise<IHTTPClientResponse<ActivationResponseDTO>>;
|
|
22
|
+
}
|
|
23
|
+
export interface ISetProfile {
|
|
24
|
+
(data: SetProfileProps, activationMode: string): Promise<IHTTPClientResponse<ActivationResponseDTO>>;
|
|
25
|
+
}
|
|
26
|
+
export interface ISkipEmail {
|
|
27
|
+
(activationMode: string): Promise<IHTTPClientResponse<ActivationResponseDTO>>;
|
|
28
|
+
}
|
|
29
|
+
export interface ISkipEmailActivation {
|
|
30
|
+
(activationMode: string): Promise<IHTTPClientResponse<ActivationResponseDTO>>;
|
|
31
|
+
}
|
|
32
|
+
export interface ISkipProfile {
|
|
33
|
+
(activationMode: string): Promise<IHTTPClientResponse<ActivationResponseDTO>>;
|
|
34
|
+
}
|
|
35
|
+
export interface ActivationResponseDTO {
|
|
36
|
+
data: [
|
|
37
|
+
{
|
|
38
|
+
attributes: {
|
|
39
|
+
completed: boolean;
|
|
40
|
+
completed_required: boolean;
|
|
41
|
+
nextStep: string;
|
|
42
|
+
nextStepSkippable: boolean;
|
|
43
|
+
type: string;
|
|
44
|
+
};
|
|
45
|
+
id: string;
|
|
46
|
+
relationships: Record<string, unknown>;
|
|
47
|
+
type: 'activation';
|
|
48
|
+
}
|
|
49
|
+
];
|
|
50
|
+
included: [Record<string, unknown>];
|
|
51
|
+
}
|
|
52
|
+
export interface SetProfileProps {
|
|
53
|
+
firstName: string;
|
|
54
|
+
lastName: string;
|
|
55
|
+
userId?: string;
|
|
56
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { IRequestWithCancelAndData } from '../IRequestWithCancelAndData';
|
|
2
|
+
import { I_JSON_API_Response_Many } from '../I_JSON_API_ResponseDTO';
|
|
3
|
+
export interface IGetAllTiers {
|
|
4
|
+
(): IRequestWithCancelAndData<IGetAllTiersResponseDTO, I_JSON_API_Response_Many<ITiersJSONAPIDTO, ITierLevelJSONAPIDTO>>;
|
|
5
|
+
}
|
|
6
|
+
export interface IGetAllTiersResponseDTO {
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
tier_level: ITierLevelAttributes[];
|
|
10
|
+
}
|
|
11
|
+
export interface ITiersJSONAPIDTO {
|
|
12
|
+
id: string;
|
|
13
|
+
type: 'tier';
|
|
14
|
+
attributes: {
|
|
15
|
+
name: string;
|
|
16
|
+
};
|
|
17
|
+
relationships: Record<string, unknown>;
|
|
18
|
+
}
|
|
19
|
+
export interface ITierLevelAttributes {
|
|
20
|
+
id: string;
|
|
21
|
+
benefits: {
|
|
22
|
+
bonus_activation_period: number;
|
|
23
|
+
bonus_expiration_period: number;
|
|
24
|
+
bonus_percent_amount: number;
|
|
25
|
+
max_bonus_redeem_percent: number;
|
|
26
|
+
template_id: string;
|
|
27
|
+
};
|
|
28
|
+
condition: {
|
|
29
|
+
ConditionType: 'total_purchase_amount';
|
|
30
|
+
Payload: {
|
|
31
|
+
MinAmount: number;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
name: string;
|
|
35
|
+
}
|
|
36
|
+
export interface ITierLevelJSONAPIDTO {
|
|
37
|
+
id: string;
|
|
38
|
+
type: 'tier_level';
|
|
39
|
+
attributes: ITierLevelAttributes;
|
|
40
|
+
relationships: Record<string, unknown>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IRequestWithCancelAndData } from '../IRequestWithCancelAndData';
|
|
2
|
+
import { I_JSON_API_Response_Many } from '../I_JSON_API_ResponseDTO';
|
|
3
|
+
export interface IGetTiersByCard {
|
|
4
|
+
(cardNumber: string): IRequestWithCancelAndData<IGetTiersByCardResponseDTO, I_JSON_API_Response_Many<IUserTiersJSONAPIDTO, void>>;
|
|
5
|
+
}
|
|
6
|
+
export declare type IGetTiersByCardResponseDTO = IUserTiersAttributes;
|
|
7
|
+
export interface IUserTiersJSONAPIDTO {
|
|
8
|
+
id: string;
|
|
9
|
+
type: 'userTier';
|
|
10
|
+
attributes: IUserTiersAttributes;
|
|
11
|
+
relationships: Record<string, unknown>;
|
|
12
|
+
}
|
|
13
|
+
export interface IUserTiersAttributes {
|
|
14
|
+
id: string;
|
|
15
|
+
'current-levels': string;
|
|
16
|
+
'level-history': {
|
|
17
|
+
level_id: string;
|
|
18
|
+
date: string;
|
|
19
|
+
name: string;
|
|
20
|
+
}[];
|
|
21
|
+
'manual-level-hold': boolean;
|
|
22
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IRequestWithCancelAndData } from '../IRequestWithCancelAndData';
|
|
2
|
+
export interface ISetTierByCard {
|
|
3
|
+
(payload: {
|
|
4
|
+
tierID: string;
|
|
5
|
+
cardNumber: string;
|
|
6
|
+
disableAutoUpdate?: boolean;
|
|
7
|
+
}): IRequestWithCancelAndData<void, void>;
|
|
8
|
+
}
|
|
9
|
+
export interface ISetTierByCardRequestDTO {
|
|
10
|
+
data: {
|
|
11
|
+
attributes: {
|
|
12
|
+
level_id: string;
|
|
13
|
+
is_on_hold: boolean;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { IRequestWithCancelAndData } from '../IRequestWithCancelAndData';
|
|
2
|
+
import { I_JSON_API_Response_Many } from '../I_JSON_API_ResponseDTO';
|
|
3
|
+
export interface IGetTransactionsByCard {
|
|
4
|
+
(cardNumber: string): IRequestWithCancelAndData<IGetTransactionsByCardResponseDTO, I_JSON_API_Response_Many>;
|
|
5
|
+
}
|
|
6
|
+
interface Transaction {
|
|
7
|
+
activationDate: string;
|
|
8
|
+
createdAt: string;
|
|
9
|
+
bonusAmount: string;
|
|
10
|
+
clientTransactionID: string;
|
|
11
|
+
description: string;
|
|
12
|
+
expirationDate: string;
|
|
13
|
+
fullAmount: string;
|
|
14
|
+
metadata: Record<string, unknown>;
|
|
15
|
+
state: 'expired' | 'activated';
|
|
16
|
+
transactionID: string;
|
|
17
|
+
}
|
|
18
|
+
export declare type IGetTransactionsByCardResponseDTO = Transaction[];
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { IHTTPClientResponse } from '@roketus/web-toolkit';
|
|
2
|
+
export interface IGetShortUrl {
|
|
3
|
+
(url: string): Promise<IHTTPClientResponse<GetShortUrlResponseDTO>>;
|
|
4
|
+
}
|
|
5
|
+
interface GetShortUrlResponseDTO {
|
|
6
|
+
data: [
|
|
7
|
+
{
|
|
8
|
+
id: string;
|
|
9
|
+
type: LinkType;
|
|
10
|
+
attributes: {
|
|
11
|
+
short_link: string;
|
|
12
|
+
};
|
|
13
|
+
relationships: Record<string, unknown>;
|
|
14
|
+
}
|
|
15
|
+
];
|
|
16
|
+
included: [];
|
|
17
|
+
}
|
|
18
|
+
declare type LinkType = 'link';
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface IUser {
|
|
2
|
+
id: string;
|
|
3
|
+
first_name: string;
|
|
4
|
+
last_name: string;
|
|
5
|
+
middle_name?: string;
|
|
6
|
+
phone: string;
|
|
7
|
+
email: string;
|
|
8
|
+
job_title?: string;
|
|
9
|
+
shops?: string[];
|
|
10
|
+
ref_id: string;
|
|
11
|
+
ref_code: string;
|
|
12
|
+
created_at: string;
|
|
13
|
+
avatar: {
|
|
14
|
+
ID: string;
|
|
15
|
+
URISmall: string;
|
|
16
|
+
URIMedium: string;
|
|
17
|
+
URILarge: string;
|
|
18
|
+
URIExtraLarge: string;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface IUserAddress {
|
|
2
|
+
region?: string;
|
|
3
|
+
district?: string;
|
|
4
|
+
city?: string;
|
|
5
|
+
street?: string;
|
|
6
|
+
building?: string;
|
|
7
|
+
apartment?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare type TUserGender = 'male' | 'female' | 'secret' | 'other';
|
|
10
|
+
export interface IUserCreate {
|
|
11
|
+
firstName: string;
|
|
12
|
+
lastName: string;
|
|
13
|
+
middleName?: string;
|
|
14
|
+
birth?: string;
|
|
15
|
+
gender?: TUserGender;
|
|
16
|
+
phone: string;
|
|
17
|
+
email?: string;
|
|
18
|
+
jobTitle?: string;
|
|
19
|
+
shop?: string;
|
|
20
|
+
workplace?: string;
|
|
21
|
+
address?: IUserAddress;
|
|
22
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { IHTTPClientResponse } from '@roketus/web-toolkit';
|
|
2
|
+
import { ActivationResponseDTO } from '../signupInterface';
|
|
3
|
+
import { IUserCreate } from "./IUserCreate";
|
|
4
|
+
import { IUserUpdate } from './IUserUpdate';
|
|
5
|
+
export interface CreateUserRequestDTO {
|
|
6
|
+
data: {
|
|
7
|
+
attributes: IUserCreate;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export interface ICreateUser {
|
|
11
|
+
(payload: IUserCreate): Promise<IHTTPClientResponse<void>>;
|
|
12
|
+
}
|
|
13
|
+
export interface IChangeEmail {
|
|
14
|
+
(email: string): Promise<IHTTPClientResponse<void>>;
|
|
15
|
+
}
|
|
16
|
+
export interface IChangePhone {
|
|
17
|
+
(phoneNumber: string): Promise<IHTTPClientResponse<void>>;
|
|
18
|
+
}
|
|
19
|
+
export interface ProfileChangeRequestDTO {
|
|
20
|
+
data: {
|
|
21
|
+
attributes: IUserUpdate;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export interface IChangeProfileData {
|
|
25
|
+
(firstName: string, lastName: string): Promise<IHTTPClientResponse<ProfileChangeResponseDTO>>;
|
|
26
|
+
}
|
|
27
|
+
export interface IUpdateProfileByIssuer {
|
|
28
|
+
(userId: string, profileData: IUserUpdate): Promise<void>;
|
|
29
|
+
}
|
|
30
|
+
export interface IGetProfile {
|
|
31
|
+
(): Promise<IHTTPClientResponse<ProfileGetResponseDTO>>;
|
|
32
|
+
}
|
|
33
|
+
export interface IValidateNewPhoneOtp {
|
|
34
|
+
(code: number): Promise<IHTTPClientResponse<ActivationResponseDTO>>;
|
|
35
|
+
}
|
|
36
|
+
export interface ISetUserToken {
|
|
37
|
+
(token: string): void;
|
|
38
|
+
}
|
|
39
|
+
export interface ISetIssuer {
|
|
40
|
+
(issuer: string): void;
|
|
41
|
+
}
|
|
42
|
+
interface ProfileChangeResponseDTO {
|
|
43
|
+
data: [
|
|
44
|
+
{
|
|
45
|
+
id: string;
|
|
46
|
+
type: 'user';
|
|
47
|
+
attributes: {
|
|
48
|
+
createdAt: string;
|
|
49
|
+
email: string;
|
|
50
|
+
emailVerified: boolean;
|
|
51
|
+
phone: string;
|
|
52
|
+
phoneVerified: boolean;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
];
|
|
56
|
+
included: [
|
|
57
|
+
{
|
|
58
|
+
id: string;
|
|
59
|
+
type: 'activation';
|
|
60
|
+
attributes: {
|
|
61
|
+
completed: boolean;
|
|
62
|
+
completed_required: boolean;
|
|
63
|
+
nextStep: string;
|
|
64
|
+
nextStepSkippable: boolean;
|
|
65
|
+
type: string;
|
|
66
|
+
};
|
|
67
|
+
relationships: Record<string, unknown>;
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
id: string;
|
|
71
|
+
type: 'profile';
|
|
72
|
+
attributes: {
|
|
73
|
+
firstName: string;
|
|
74
|
+
lastName: string;
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
];
|
|
78
|
+
}
|
|
79
|
+
interface ProfileGetResponseDTO {
|
|
80
|
+
data: {
|
|
81
|
+
Username: string;
|
|
82
|
+
ApiKey: string;
|
|
83
|
+
};
|
|
84
|
+
type: 'data';
|
|
85
|
+
}
|
|
86
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { IHTTPClientResponse } from '@roketus/web-toolkit';
|
|
2
|
+
import { I_JSON_API_Response_Many } from '../I_JSON_API_ResponseDTO';
|
|
3
|
+
export interface ISubscribeToWebPushNotifications {
|
|
4
|
+
(subscription: PushSubscriptionJSON): Promise<unknown>;
|
|
5
|
+
}
|
|
6
|
+
export interface ISendEmailByEvent {
|
|
7
|
+
(event: string, user_id: string): Promise<IHTTPClientResponse<unknown>>;
|
|
8
|
+
}
|
|
9
|
+
export interface ISendCompanyEmailByEvent {
|
|
10
|
+
(event: string, company_id: string): Promise<IHTTPClientResponse<unknown>>;
|
|
11
|
+
}
|
|
12
|
+
export interface ISendCompanySmsByEvent {
|
|
13
|
+
(event: string, company_id: string): Promise<IHTTPClientResponse<unknown>>;
|
|
14
|
+
}
|
|
15
|
+
export interface IListEmailTemplates {
|
|
16
|
+
(): Promise<IListEmailTemplatesResponse>;
|
|
17
|
+
}
|
|
18
|
+
export interface IEmailTemplate {
|
|
19
|
+
id: string;
|
|
20
|
+
channel: string;
|
|
21
|
+
event: string;
|
|
22
|
+
name: string;
|
|
23
|
+
defaultVars: Record<string, any>;
|
|
24
|
+
requiredVar: string[];
|
|
25
|
+
template: {
|
|
26
|
+
html: string;
|
|
27
|
+
subject: string;
|
|
28
|
+
text: string;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export interface IListEmailTemplatesResponse {
|
|
32
|
+
data: IEmailTemplate[];
|
|
33
|
+
}
|
|
34
|
+
export declare type TListEmailTemplatesResponseDTO = I_JSON_API_Response_Many<IEmailTemplate>;
|