wallet 2.1.508 → 2.1.512
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/.openapi-generator/FILES +26 -5
- package/api/advertisementCreditsApi.ts +1 -1
- package/api/analyticsApi.ts +256 -16
- package/api/apis.ts +5 -1
- package/api/appleWalletSubscribersApi.ts +1 -1
- package/api/billingApi.ts +8 -8
- package/api/clubMembersPointsApi.ts +5 -5
- package/api/configurationApi.ts +5 -4
- package/api/countriesApi.ts +5 -5
- package/api/customerApi.ts +1 -1
- package/api/dashboardApi.ts +53 -54
- package/api/dynamicVouchersApi.ts +1 -1
- package/api/employeeAPIKeysApi.ts +1 -1
- package/api/employeeAccessApi.ts +1 -1
- package/api/employeesApi.ts +81 -6
- package/api/imageGridApi.ts +447 -0
- package/api/industriesApi.ts +5 -5
- package/api/infoGenesisReportsApi.ts +38 -38
- package/api/integratedTerminalsApi.ts +1 -1
- package/api/interactionsApi.ts +5 -5
- package/api/linkBookApi.ts +1 -1
- package/api/linkBookSectionApi.ts +1 -1
- package/api/loginAndLogoutApi.ts +15 -14
- package/api/membershipTiersApi.ts +1 -1
- package/api/merchantApi.ts +33 -26
- package/api/merchantCreditsApi.ts +5 -5
- package/api/merchantURLsApi.ts +1 -1
- package/api/mobileTerminalApi.ts +1 -1
- package/api/newsApi.ts +1 -1
- package/api/paymentDesignsApi.ts +1 -1
- package/api/performancesApi.ts +1 -1
- package/api/promoCodesApi.ts +1 -1
- package/api/sMSApi.ts +43 -42
- package/api/settingsApi.ts +5 -5
- package/api/staticVoucherCampaignGroupsApi.ts +1 -1
- package/api/staticVoucherCampaignsApi.ts +12 -12
- package/api/staticVouchersApi.ts +1 -1
- package/api/systemApi.ts +1 -1
- package/api/transactionLedgerApi.ts +5 -5
- package/api/utilitiesApi.ts +5 -5
- package/api/webTerminalApi.ts +1 -1
- package/api/wixTerminalApi.ts +309 -0
- package/dist/api/analyticsApi.d.ts +36 -5
- package/dist/api/analyticsApi.js +204 -5
- package/dist/api/analyticsApi.js.map +1 -1
- package/dist/api/apis.d.ts +5 -1
- package/dist/api/apis.js +5 -1
- package/dist/api/apis.js.map +1 -1
- package/dist/api/billingApi.d.ts +3 -3
- package/dist/api/billingApi.js +2 -2
- package/dist/api/billingApi.js.map +1 -1
- package/dist/api/clubMembersPointsApi.d.ts +2 -2
- package/dist/api/clubMembersPointsApi.js +1 -1
- package/dist/api/configurationApi.d.ts +2 -1
- package/dist/api/configurationApi.js +1 -1
- package/dist/api/configurationApi.js.map +1 -1
- package/dist/api/countriesApi.d.ts +2 -2
- package/dist/api/countriesApi.js +1 -1
- package/dist/api/dashboardApi.d.ts +18 -19
- package/dist/api/dashboardApi.js +17 -17
- package/dist/api/dashboardApi.js.map +1 -1
- package/dist/api/employeesApi.d.ts +12 -3
- package/dist/api/employeesApi.js +66 -2
- package/dist/api/employeesApi.js.map +1 -1
- package/dist/api/imageGridApi.d.ts +69 -0
- package/dist/api/imageGridApi.js +380 -0
- package/dist/api/imageGridApi.js.map +1 -0
- package/dist/api/industriesApi.d.ts +2 -2
- package/dist/api/industriesApi.js +1 -1
- package/dist/api/industriesApi.js.map +1 -1
- package/dist/api/infoGenesisReportsApi.d.ts +13 -13
- package/dist/api/infoGenesisReportsApi.js +12 -12
- package/dist/api/infoGenesisReportsApi.js.map +1 -1
- package/dist/api/interactionsApi.d.ts +2 -2
- package/dist/api/interactionsApi.js +1 -1
- package/dist/api/interactionsApi.js.map +1 -1
- package/dist/api/loginAndLogoutApi.d.ts +6 -5
- package/dist/api/loginAndLogoutApi.js +6 -6
- package/dist/api/loginAndLogoutApi.js.map +1 -1
- package/dist/api/merchantApi.d.ts +16 -9
- package/dist/api/merchantApi.js +8 -8
- package/dist/api/merchantApi.js.map +1 -1
- package/dist/api/merchantCreditsApi.d.ts +2 -2
- package/dist/api/merchantCreditsApi.js +1 -1
- package/dist/api/sMSApi.d.ts +18 -17
- package/dist/api/sMSApi.js +12 -12
- package/dist/api/sMSApi.js.map +1 -1
- package/dist/api/settingsApi.d.ts +2 -2
- package/dist/api/settingsApi.js +1 -1
- package/dist/api/settingsApi.js.map +1 -1
- package/dist/api/staticVoucherCampaignsApi.d.ts +5 -5
- package/dist/api/staticVoucherCampaignsApi.js +3 -3
- package/dist/api/transactionLedgerApi.d.ts +2 -2
- package/dist/api/transactionLedgerApi.js +1 -1
- package/dist/api/utilitiesApi.d.ts +2 -2
- package/dist/api/utilitiesApi.js +1 -1
- package/dist/api/utilitiesApi.js.map +1 -1
- package/dist/api/wixTerminalApi.d.ts +51 -0
- package/dist/api/wixTerminalApi.js +259 -0
- package/dist/api/wixTerminalApi.js.map +1 -0
- package/dist/model/advertisementCredit.d.ts +1 -1
- package/dist/model/advertisementCreditBroadcast.d.ts +1 -1
- package/dist/model/advertisementCreditScan.d.ts +1 -1
- package/dist/model/agreement.d.ts +1 -1
- package/dist/model/applicableTerminals.js.map +1 -1
- package/dist/model/applicableTerminalsAnyOf1.d.ts +1 -1
- package/dist/model/applicableTerminalsAnyOf1.js +1 -1
- package/dist/model/applicableTerminalsAnyOf1.js.map +1 -1
- package/dist/model/applicableTerminalsAnyOf2.d.ts +1 -1
- package/dist/model/applicableTerminalsAnyOf2.js +1 -1
- package/dist/model/applicableTerminalsAnyOf2.js.map +1 -1
- package/dist/model/applicableTerminalsAnyOf3.d.ts +1 -1
- package/dist/model/applicableTerminalsAnyOf3.js +1 -1
- package/dist/model/applicableTerminalsAnyOf3.js.map +1 -1
- package/dist/model/applicableTerminalsAnyOf4.d.ts +3 -0
- package/dist/model/applicableTerminalsAnyOf4.js +8 -0
- package/dist/model/applicableTerminalsAnyOf4.js.map +1 -0
- package/dist/model/applicableTerminalsAnyOf5.d.ts +3 -0
- package/dist/model/applicableTerminalsAnyOf5.js +8 -0
- package/dist/model/applicableTerminalsAnyOf5.js.map +1 -0
- package/dist/model/applicableTerminalsAnyOf6.d.ts +3 -0
- package/dist/model/applicableTerminalsAnyOf6.js +8 -0
- package/dist/model/applicableTerminalsAnyOf6.js.map +1 -0
- package/dist/model/clickFunnelContact.d.ts +3 -3
- package/dist/model/clickFunnelContactProfile.d.ts +5 -5
- package/dist/model/clickFunnelRegistration.d.ts +16 -0
- package/dist/model/clickFunnelRegistration.js +23 -0
- package/dist/model/clickFunnelRegistration.js.map +1 -0
- package/dist/model/dynamicVoucher.d.ts +1 -1
- package/dist/model/dynamicVoucherBroadcast.d.ts +1 -1
- package/dist/model/employeeAPIKey.d.ts +1 -1
- package/dist/model/helpDeskRequest.d.ts +1 -1
- package/dist/model/imageGrid.d.ts +22 -0
- package/dist/model/imageGrid.js +58 -0
- package/dist/model/imageGrid.js.map +1 -0
- package/dist/model/importedList.d.ts +1 -1
- package/dist/model/importedListRecipient.d.ts +1 -1
- package/dist/model/inboundSMS.d.ts +1 -1
- package/dist/model/inlineResponse200.d.ts +6 -2
- package/dist/model/inlineResponse200.js +21 -6
- package/dist/model/inlineResponse200.js.map +1 -1
- package/dist/model/inlineResponse2001.d.ts +3 -6
- package/dist/model/inlineResponse2001.js +7 -17
- package/dist/model/inlineResponse2001.js.map +1 -1
- package/dist/model/inlineResponse20010.d.ts +3 -4
- package/dist/model/inlineResponse20010.js +9 -9
- package/dist/model/inlineResponse20010.js.map +1 -1
- package/dist/model/inlineResponse20011.d.ts +14 -2
- package/dist/model/inlineResponse20011.js +66 -6
- package/dist/model/inlineResponse20011.js.map +1 -1
- package/dist/model/inlineResponse20012.d.ts +3 -13
- package/dist/model/inlineResponse20012.js +6 -51
- package/dist/model/inlineResponse20012.js.map +1 -1
- package/dist/model/inlineResponse2002.d.ts +1 -1
- package/dist/model/inlineResponse2002.js +1 -1
- package/dist/model/inlineResponse2002.js.map +1 -1
- package/dist/model/inlineResponse2003.d.ts +4 -1
- package/dist/model/inlineResponse2003.js +12 -2
- package/dist/model/inlineResponse2003.js.map +1 -1
- package/dist/model/inlineResponse2004.d.ts +3 -3
- package/dist/model/inlineResponse2004.js +6 -11
- package/dist/model/inlineResponse2004.js.map +1 -1
- package/dist/model/inlineResponse2005.d.ts +4 -3
- package/dist/model/inlineResponse2005.js +10 -5
- package/dist/model/inlineResponse2005.js.map +1 -1
- package/dist/model/inlineResponse2006.d.ts +4 -12
- package/dist/model/inlineResponse2006.js +9 -54
- package/dist/model/inlineResponse2006.js.map +1 -1
- package/dist/model/inlineResponse2007.d.ts +4 -4
- package/dist/model/inlineResponse2007.js +8 -8
- package/dist/model/inlineResponse2007.js.map +1 -1
- package/dist/model/inlineResponse2008.d.ts +4 -1
- package/dist/model/inlineResponse2008.js +12 -2
- package/dist/model/inlineResponse2008.js.map +1 -1
- package/dist/model/inlineResponse2009.d.ts +13 -4
- package/dist/model/inlineResponse2009.js +52 -7
- package/dist/model/inlineResponse2009.js.map +1 -1
- package/dist/model/ledgerEntry.d.ts +1 -1
- package/dist/model/linkBookSection.d.ts +1 -0
- package/dist/model/linkBookSection.js +5 -0
- package/dist/model/linkBookSection.js.map +1 -1
- package/dist/model/mSAnalyticsMemberCountPartitionedByDate.d.ts +15 -0
- package/dist/model/mSAnalyticsMemberCountPartitionedByDate.js +23 -0
- package/dist/model/mSAnalyticsMemberCountPartitionedByDate.js.map +1 -0
- package/dist/model/mSAnalyticsMemberPointsRedeemedPartitionedByDate.d.ts +15 -0
- package/dist/model/mSAnalyticsMemberPointsRedeemedPartitionedByDate.js +23 -0
- package/dist/model/mSAnalyticsMemberPointsRedeemedPartitionedByDate.js.map +1 -0
- package/dist/model/mSAnalyticsMemberPointsRefundedPartitionedByDate.d.ts +15 -0
- package/dist/model/mSAnalyticsMemberPointsRefundedPartitionedByDate.js +23 -0
- package/dist/model/mSAnalyticsMemberPointsRefundedPartitionedByDate.js.map +1 -0
- package/dist/model/mSAnalyticsMembershipTierAmountRedeemedPartitionedByDate.d.ts +15 -0
- package/dist/model/mSAnalyticsMembershipTierAmountRedeemedPartitionedByDate.js +23 -0
- package/dist/model/mSAnalyticsMembershipTierAmountRedeemedPartitionedByDate.js.map +1 -0
- package/dist/model/mSAnalyticsMembershipTierAmountRefundedPartitionedByDate.d.ts +15 -0
- package/dist/model/mSAnalyticsMembershipTierAmountRefundedPartitionedByDate.js +23 -0
- package/dist/model/mSAnalyticsMembershipTierAmountRefundedPartitionedByDate.js.map +1 -0
- package/dist/model/memberSearch.d.ts +4 -1
- package/dist/model/memberSearch.js +17 -2
- package/dist/model/memberSearch.js.map +1 -1
- package/dist/model/merchant.d.ts +1 -0
- package/dist/model/merchant.js +5 -0
- package/dist/model/merchant.js.map +1 -1
- package/dist/model/models.d.ts +24 -5
- package/dist/model/models.js +73 -15
- package/dist/model/models.js.map +1 -1
- package/dist/model/optInList.d.ts +1 -1
- package/dist/model/optInListSource.d.ts +1 -1
- package/dist/model/optInListSubscriber.d.ts +1 -1
- package/dist/model/outboundSMS.d.ts +2 -2
- package/dist/model/outboundSMS.js +5 -5
- package/dist/model/outboundSMS.js.map +1 -1
- package/dist/model/paymentDesign.d.ts +1 -1
- package/dist/model/paymentPrefixes.d.ts +25 -0
- package/dist/model/paymentPrefixes.js +73 -0
- package/dist/model/paymentPrefixes.js.map +1 -0
- package/dist/model/phoneNumber.d.ts +1 -1
- package/dist/model/pickPaginationRequestWithSortOptionsExcludeKeyofPaginationRequestWithSortOptionsSortKey.d.ts +17 -0
- package/dist/model/pickPaginationRequestWithSortOptionsExcludeKeyofPaginationRequestWithSortOptionsSortKey.js +33 -0
- package/dist/model/pickPaginationRequestWithSortOptionsExcludeKeyofPaginationRequestWithSortOptionsSortKey.js.map +1 -0
- package/dist/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhone.d.ts +1 -1
- package/dist/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhone.js +5 -5
- package/dist/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhone.js.map +1 -1
- package/dist/model/pickWTPaymentObjectBroadcastExcludeKeyofWTPaymentObjectBroadcastListTypeOrListID.d.ts +1 -1
- package/dist/model/portalPage.d.ts +2 -0
- package/dist/model/portalPage.js +2 -0
- package/dist/model/portalPage.js.map +1 -1
- package/dist/model/simpleSMSBroadcast.d.ts +1 -1
- package/dist/model/staticVoucher.d.ts +1 -1
- package/dist/model/staticVoucherCampaign.d.ts +1 -1
- package/dist/model/staticVoucherCampaignBroadcast.d.ts +1 -1
- package/dist/model/staticVoucherCampaignGroup.d.ts +1 -1
- package/dist/model/tcpa.d.ts +1 -1
- package/dist/model/wTAdvertisementCredit.d.ts +1 -1
- package/dist/model/wTAdvertisementCreditScan.d.ts +1 -1
- package/dist/model/wTAuthenticationCheckSessionTokenStatusResponse.d.ts +19 -0
- package/dist/model/wTAuthenticationCheckSessionTokenStatusResponse.js +24 -0
- package/dist/model/wTAuthenticationCheckSessionTokenStatusResponse.js.map +1 -0
- package/dist/model/wTAuthenticationLoginRequest.d.ts +15 -0
- package/dist/model/wTAuthenticationLoginRequest.js +23 -0
- package/dist/model/wTAuthenticationLoginRequest.js.map +1 -0
- package/dist/model/wTAuthenticationLoginResponse.d.ts +28 -0
- package/dist/model/wTAuthenticationLoginResponse.js +88 -0
- package/dist/model/wTAuthenticationLoginResponse.js.map +1 -0
- package/dist/model/wTBillingVerifyPaymentMethodResponse.d.ts +16 -0
- package/dist/model/wTBillingVerifyPaymentMethodResponse.js +23 -0
- package/dist/model/wTBillingVerifyPaymentMethodResponse.js.map +1 -0
- package/dist/model/wTCountResult.d.ts +14 -0
- package/dist/model/wTCountResult.js +18 -0
- package/dist/model/wTCountResult.js.map +1 -0
- package/dist/model/wTDynamicVoucher.d.ts +1 -1
- package/dist/model/wTDynamicVoucherRedemption.d.ts +1 -1
- package/dist/model/wTEmployeeAPIKey.d.ts +1 -1
- package/dist/model/wTEmployeeCreateMediaFile.d.ts +1 -0
- package/dist/model/wTEmployeeCreateMediaFile.js +5 -0
- package/dist/model/wTEmployeeCreateMediaFile.js.map +1 -1
- package/dist/model/wTEmployeeSendHelpDeskResponse.d.ts +1 -0
- package/dist/model/wTEmployeeSendHelpDeskResponse.js +5 -0
- package/dist/model/wTEmployeeSendHelpDeskResponse.js.map +1 -1
- package/dist/model/wTEmployeeUpdateRecords.d.ts +15 -0
- package/dist/model/wTEmployeeUpdateRecords.js +23 -0
- package/dist/model/wTEmployeeUpdateRecords.js.map +1 -0
- package/dist/model/wTImageGridCreateParams.d.ts +17 -0
- package/dist/model/wTImageGridCreateParams.js +33 -0
- package/dist/model/wTImageGridCreateParams.js.map +1 -0
- package/dist/model/wTImageGridUpdateParams.d.ts +17 -0
- package/dist/model/wTImageGridUpdateParams.js +33 -0
- package/dist/model/wTImageGridUpdateParams.js.map +1 -0
- package/dist/model/wTImportedList.d.ts +1 -1
- package/dist/model/wTLinkBookSectionCreateParams.d.ts +1 -0
- package/dist/model/wTLinkBookSectionCreateParams.js +5 -0
- package/dist/model/wTLinkBookSectionCreateParams.js.map +1 -1
- package/dist/model/wTLinkBookSectionUpdateParams.d.ts +1 -0
- package/dist/model/wTLinkBookSectionUpdateParams.js +5 -0
- package/dist/model/wTLinkBookSectionUpdateParams.js.map +1 -1
- package/dist/model/wTMembershipTier.d.ts +1 -1
- package/dist/model/wTMembershipTierWithMemberCount.d.ts +1 -1
- package/dist/model/wTMerchantUpdate.d.ts +1 -0
- package/dist/model/wTMerchantUpdate.js +5 -0
- package/dist/model/wTMerchantUpdate.js.map +1 -1
- package/dist/model/wTOptInList.d.ts +1 -1
- package/dist/model/wTPaymentDesign.d.ts +1 -1
- package/dist/model/wTSMSLimits.d.ts +15 -0
- package/dist/model/wTSMSLimits.js +23 -0
- package/dist/model/wTSMSLimits.js.map +1 -0
- package/dist/model/wTStaticVoucher.d.ts +1 -1
- package/dist/model/wTStaticVoucherCampaign.d.ts +1 -1
- package/dist/model/wTWalletConfigurationSaveWalletRecord.d.ts +1 -0
- package/dist/model/wTWalletConfigurationSaveWalletRecord.js +5 -0
- package/dist/model/wTWalletConfigurationSaveWalletRecord.js.map +1 -1
- package/dist/model/wTWalletItemRedemption.d.ts +1 -1
- package/dist/model/wTWalletObjectPrefixCounts.d.ts +17 -0
- package/dist/model/wTWalletObjectPrefixCounts.js +28 -0
- package/dist/model/wTWalletObjectPrefixCounts.js.map +1 -0
- package/dist/model/wTWalletPageView.d.ts +1 -1
- package/dist/model/wTWalletPageViewCount.d.ts +16 -0
- package/dist/model/wTWalletPageViewCount.js +28 -0
- package/dist/model/wTWalletPageViewCount.js.map +1 -0
- package/dist/model/walletConfiguration.d.ts +1 -0
- package/dist/model/walletConfiguration.js +5 -0
- package/dist/model/walletConfiguration.js.map +1 -1
- package/dist/model/walletPageView.d.ts +1 -1
- package/model/advertisementCredit.ts +2 -2
- package/model/advertisementCreditBroadcast.ts +2 -2
- package/model/advertisementCreditScan.ts +2 -2
- package/model/agreement.ts +2 -2
- package/model/alert.ts +1 -1
- package/model/announcement.ts +1 -1
- package/model/applicableTerminals.ts +4 -1
- package/model/applicableTerminalsAnyOf.ts +1 -1
- package/model/applicableTerminalsAnyOf1.ts +2 -2
- package/model/applicableTerminalsAnyOf2.ts +2 -2
- package/model/applicableTerminalsAnyOf3.ts +2 -2
- package/model/applicableTerminalsAnyOf4.ts +17 -0
- package/model/applicableTerminalsAnyOf5.ts +17 -0
- package/model/applicableTerminalsAnyOf6.ts +17 -0
- package/model/authError.ts +1 -1
- package/model/availablePhoneNumbersRequest.ts +1 -1
- package/model/clickFunnelAmount.ts +1 -1
- package/model/clickFunnelContact.ts +4 -4
- package/model/clickFunnelContactProfile.ts +6 -6
- package/model/clickFunnelEvent.ts +1 -1
- package/model/clickFunnelOriginalAmount.ts +1 -1
- package/model/clickFunnelProduct.ts +1 -1
- package/model/clickFunnelPurchase.ts +1 -1
- package/model/clickFunnelRegistration.ts +38 -0
- package/model/createStaticVoucherCampaign.ts +1 -1
- package/model/createStaticVoucherCampaignWithVoucher.ts +1 -1
- package/model/createStaticVoucherCampaignWithVoucherWithCSV.ts +1 -1
- package/model/dashboardWidget.ts +1 -1
- package/model/duplicateRowFound.ts +1 -1
- package/model/dynamicVoucher.ts +2 -2
- package/model/dynamicVoucherBroadcast.ts +2 -2
- package/model/employee.ts +1 -1
- package/model/employeeAPIKey.ts +2 -2
- package/model/employeeActivityLog.ts +1 -1
- package/model/entityTooLarge.ts +1 -1
- package/model/exportDataFile.ts +1 -1
- package/model/falsumError.ts +1 -1
- package/model/falsumField.ts +1 -1
- package/model/feature.ts +1 -1
- package/model/forbiddenRequest.ts +1 -1
- package/model/foreignKeyDoesNotExist.ts +1 -1
- package/model/helpDeskRequest.ts +2 -2
- package/model/imageGrid.ts +79 -0
- package/model/importedList.ts +2 -2
- package/model/importedListRecipient.ts +2 -2
- package/model/inboundSMS.ts +2 -2
- package/model/inlineResponse200.ts +28 -9
- package/model/inlineResponse2001.ts +11 -24
- package/model/inlineResponse20010.ts +13 -14
- package/model/inlineResponse20011.ts +80 -8
- package/model/inlineResponse20012.ts +9 -64
- package/model/inlineResponse2002.ts +3 -3
- package/model/inlineResponse2003.ts +17 -4
- package/model/inlineResponse2004.ts +10 -15
- package/model/inlineResponse2005.ts +15 -9
- package/model/inlineResponse2006.ts +14 -67
- package/model/inlineResponse2007.ts +13 -13
- package/model/inlineResponse2008.ts +17 -4
- package/model/inlineResponse2009.ts +66 -12
- package/model/internalServerError.ts +1 -1
- package/model/ledgerEntry.ts +2 -2
- package/model/linkBook.ts +1 -1
- package/model/linkBookSection.ts +7 -1
- package/model/mSAnalyticsMemberCountPartitionedByDate.ts +43 -0
- package/model/mSAnalyticsMemberPointsRedeemedPartitionedByDate.ts +43 -0
- package/model/mSAnalyticsMemberPointsRefundedPartitionedByDate.ts +43 -0
- package/model/mSAnalyticsMembershipTierAmountRedeemedPartitionedByDate.ts +43 -0
- package/model/mSAnalyticsMembershipTierAmountRefundedPartitionedByDate.ts +43 -0
- package/model/mSMemberHistory.ts +1 -1
- package/model/mSMemberHistoryPagination.ts +1 -1
- package/model/mSMemberRedemption.ts +1 -1
- package/model/mSMemberRedemptionPagination.ts +1 -1
- package/model/mSMembershipTierHistory.ts +1 -1
- package/model/mSMembershipTierHistoryPagination.ts +1 -1
- package/model/mSMembershipTierRedemption.ts +1 -1
- package/model/mSMembershipTierRedemptionPagination.ts +1 -1
- package/model/mSMerchantCreditHistory.ts +1 -1
- package/model/mSMerchantCreditHistoryPagination.ts +1 -1
- package/model/mSMerchantCreditRedemption.ts +1 -1
- package/model/mSMerchantCreditRedemptionPagination.ts +1 -1
- package/model/mediaFile.ts +1 -1
- package/model/member.ts +1 -1
- package/model/memberSearch.ts +31 -4
- package/model/merchant.ts +7 -1
- package/model/merchantCreditSearch.ts +1 -1
- package/model/merchantNotInitialized.ts +1 -1
- package/model/merchantURL.ts +1 -1
- package/model/message.ts +1 -1
- package/model/models.ts +73 -15
- package/model/moduleError.ts +1 -1
- package/model/newsArticle.ts +1 -1
- package/model/optInList.ts +2 -2
- package/model/optInListSource.ts +2 -2
- package/model/optInListSubscriber.ts +2 -2
- package/model/outboundSMS.ts +8 -8
- package/model/paginatedWTMembers.ts +1 -1
- package/model/paginatedWTMerchantCredits.ts +1 -1
- package/model/paginationRequestWithIDAndWithoutSortOptions.ts +1 -1
- package/model/paginationRequestWithSortOptions.ts +1 -1
- package/model/paymentDesign.ts +2 -2
- package/model/paymentPrefixes.ts +97 -0
- package/model/performance.ts +1 -1
- package/model/phoneNumber.ts +2 -2
- package/model/pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherSourceID.ts +1 -1
- package/model/pickMSEmployeeAPIKeyCreateParamsExcludeKeyofMSEmployeeAPIKeyCreateParamsEmployeeID.ts +1 -1
- package/model/pickMSEmployeeAPIKeyUpdateParamsExcludeKeyofMSEmployeeAPIKeyUpdateParamsId.ts +1 -1
- package/model/pickMSMemberCreationParamsExcludeKeyofMSMemberCreationParamsMemberIdentifier.ts +1 -1
- package/model/pickMSMemberExcludeKeyofMSMemberMemberIdentifier.ts +1 -1
- package/model/pickMSMerchantCreditCreationParamsExcludeKeyofMSMerchantCreditCreationParamsMemberIdentifier.ts +1 -1
- package/model/pickMSMerchantCreditExcludeKeyofMSMerchantCreditMemberIdentifier.ts +1 -1
- package/model/pickPaginationRequestWithSortOptionsExcludeKeyofPaginationRequestWithSortOptionsSortKey.ts +64 -0
- package/model/pickPaginationRequestWithoutSortOptionsExcludeKeyofPaginationRequestWithoutSortOptionsIsArchiveIncluded.ts +1 -1
- package/model/pickSSImportedListUpdateParamsExcludeKeyofSSImportedListUpdateParamsId.ts +1 -1
- package/model/pickSSMobileNumberUpdateParamsExcludeKeyofSSMobileNumberUpdateParamsId.ts +1 -1
- package/model/pickSSOptInListCreateParamsExcludeKeyofSSOptInListCreateParamsEmployeeID.ts +1 -1
- package/model/pickSSOptInListMemberCreateParamsExcludeKeyofSSOptInListMemberCreateParamsMerchantCreatedAtOrMaxSMSCount.ts +1 -1
- package/model/pickSSOptInListUpdateParamsExcludeKeyofSSOptInListUpdateParamsId.ts +1 -1
- package/model/pickSSOptInSourceUpdateParamsExcludeKeyofSSOptInSourceUpdateParamsId.ts +1 -1
- package/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhone.ts +7 -7
- package/model/pickVSAdvertisementCreditCreateParamsExcludeKeyofVSAdvertisementCreditCreateParamsEmployeeID.ts +1 -1
- package/model/pickVSAdvertisementCreditScanExcludeKeyofVSAdvertisementCreditScanRedeemedAtOrRefundedAt.ts +1 -1
- package/model/pickVSAdvertisementCreditUpdateParamsExcludeKeyofVSAdvertisementCreditUpdateParamsId.ts +1 -1
- package/model/pickVSCampaignUpdateParamsExcludeKeyofVSCampaignUpdateParamsStartDateOrExpirationDate.ts +1 -1
- package/model/pickVSDynamicVoucherExcludeKeyofVSDynamicVoucherTemporalDecreaseFrequencyType.ts +1 -1
- package/model/pickVSPaymentDesignCreateParamsExcludeKeyofVSPaymentDesignCreateParamsBackgroundImageURLOrCompanyLogoURLOrEmployeeID.ts +1 -1
- package/model/pickVSPaymentDesignUpdateParamsExcludeKeyofVSPaymentDesignUpdateParamsId.ts +1 -1
- package/model/pickVSStaticVoucherExcludeKeyofVSStaticVoucherRedeemedAtOrRefundedAtOrLastViewedAt.ts +1 -1
- package/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmail.ts +1 -1
- package/model/pickWTMemberMemberIDOrFirstNameOrLastNameOrMembershipTierIDOrPointsAccruedOrMobileNumber.ts +1 -1
- package/model/pickWTMerchantCreditMemberIDOrCreditAmountOrMobileNumber.ts +1 -1
- package/model/pickWTMerchantURLUpdateExcludeKeyofWTMerchantURLUpdateUrlID.ts +1 -1
- package/model/pickWTNewsArticleUpdateParamsExcludeKeyofWTNewsArticleUpdateParamsId.ts +1 -1
- package/model/pickWTPaymentObjectBroadcastExcludeKeyofWTPaymentObjectBroadcastListTypeOrListID.ts +2 -2
- package/model/pickWTStaticVoucherCampaignCreateParamsExcludeKeyofWTStaticVoucherCampaignCreateParamsStartDateTimeOrExpirationDateTime.ts +1 -1
- package/model/pickWTStaticVoucherCreateParamsExcludeKeyofWTStaticVoucherCreateParamsCampaignID.ts +1 -1
- package/model/plan.ts +1 -1
- package/model/portalPage.ts +3 -1
- package/model/presignedPost.ts +1 -1
- package/model/presignedPostFields.ts +1 -1
- package/model/product.ts +1 -1
- package/model/promoCode.ts +1 -1
- package/model/reachPerformanceStats.ts +1 -1
- package/model/request.ts +1 -1
- package/model/response.ts +1 -1
- package/model/role.ts +1 -1
- package/model/roleAuditLog.ts +1 -1
- package/model/sSImportedListRecipientCreateParams.ts +1 -1
- package/model/sSOptInSource.ts +1 -1
- package/model/simpleSMSBroadcast.ts +2 -2
- package/model/staticVoucher.ts +2 -2
- package/model/staticVoucherCampaign.ts +2 -2
- package/model/staticVoucherCampaignBroadcast.ts +2 -2
- package/model/staticVoucherCampaignGroup.ts +2 -2
- package/model/staticVoucherCampaignUpdate.ts +1 -1
- package/model/status.ts +1 -1
- package/model/statusAnyOf.ts +1 -1
- package/model/statusAnyOf1.ts +1 -1
- package/model/statusAnyOf2.ts +1 -1
- package/model/statusAnyOf3.ts +1 -1
- package/model/subscriptionFeature.ts +1 -1
- package/model/subscriptionPlan.ts +1 -1
- package/model/subscriptionProduct.ts +1 -1
- package/model/tcpa.ts +2 -2
- package/model/updateStaticVoucherCampaignWithVoucher.ts +1 -1
- package/model/vSCampaignGeneratedMessage.ts +1 -1
- package/model/vSCampaignGeneratedMessagePagination.ts +1 -1
- package/model/vSDynamicVoucherStatus.ts +1 -1
- package/model/wTAdvertisementCredit.ts +2 -2
- package/model/wTAdvertisementCreditCreateParams.ts +1 -1
- package/model/wTAdvertisementCreditScan.ts +2 -2
- package/model/wTAdvertisementCreditUpdateParams.ts +1 -1
- package/model/wTAuthenticationCheckSessionTokenStatusResponse.ts +36 -0
- package/model/wTAuthenticationForgotPassword.ts +1 -1
- package/model/wTAuthenticationLoginRequest.ts +37 -0
- package/model/wTAuthenticationLoginResponse.ts +115 -0
- package/model/wTAuthenticationRegister.ts +1 -1
- package/model/wTAuthenticationRequestResetPassword.ts +1 -1
- package/model/wTAuthenticationResetPassword.ts +1 -1
- package/model/wTAuthenticationSSOLoginForDiscourse.ts +1 -1
- package/model/wTBillingChangePlan.ts +1 -1
- package/model/wTBillingSavePaymentMethod.ts +1 -1
- package/model/wTBillingVerifyPaymentMethodResponse.ts +38 -0
- package/model/wTCountResult.ts +31 -0
- package/model/wTCustomerSearchByMemberID.ts +1 -1
- package/model/wTCustomerSearchByPhoneNumber.ts +1 -1
- package/model/wTDynamicVoucher.ts +2 -2
- package/model/wTDynamicVoucherCreateParams.ts +1 -1
- package/model/wTDynamicVoucherRedemption.ts +2 -2
- package/model/wTDynamicVoucherSummary.ts +1 -1
- package/model/wTDynamicVoucherUpdateParams.ts +1 -1
- package/model/wTEmployee.ts +1 -1
- package/model/wTEmployeeAPIKey.ts +2 -2
- package/model/wTEmployeeAPIKeyCreateParams.ts +1 -1
- package/model/wTEmployeeAPIKeyUpdateParams.ts +1 -1
- package/model/wTEmployeeCreate.ts +1 -1
- package/model/wTEmployeeCreateAlert.ts +1 -1
- package/model/wTEmployeeCreateMediaFile.ts +7 -1
- package/model/wTEmployeeCreateStaticVoucherCampaignGroup.ts +1 -1
- package/model/wTEmployeeFileCreate.ts +1 -1
- package/model/wTEmployeeImportRecords.ts +1 -1
- package/model/wTEmployeeNotification.ts +1 -1
- package/model/wTEmployeePeerRoles.ts +1 -1
- package/model/wTEmployeeS3FilePresign.ts +1 -1
- package/model/wTEmployeeScheduleSMSCampaignBroadcast.ts +1 -1
- package/model/wTEmployeeScheduleSimpleSMS.ts +1 -1
- package/model/wTEmployeeScheduleSimpleSMSToRecipient.ts +1 -1
- package/model/wTEmployeeSendHelpDeskResponse.ts +7 -1
- package/model/wTEmployeeUpdate.ts +1 -1
- package/model/wTEmployeeUpdateRecords.ts +37 -0
- package/model/wTFetchWalletPaymentObjectWithToken.ts +1 -1
- package/model/wTImageGridCreateParams.ts +49 -0
- package/model/wTImageGridUpdateParams.ts +49 -0
- package/model/wTImportedList.ts +2 -2
- package/model/wTInfoGenesisLookupRequestErrors.ts +1 -1
- package/model/wTInfoGenesisRecordFilterParameters.ts +1 -1
- package/model/wTInfoGenesisRoutingIDs.ts +1 -1
- package/model/wTInfoGenesisUniquePostingIDs.ts +1 -1
- package/model/wTLinkBookCreateParams.ts +1 -1
- package/model/wTLinkBookSectionCreateParams.ts +7 -1
- package/model/wTLinkBookSectionUpdateParams.ts +7 -1
- package/model/wTLinkBookUpdateParams.ts +1 -1
- package/model/wTMember.ts +1 -1
- package/model/wTMemberCreationParams.ts +1 -1
- package/model/wTMembershipTier.ts +2 -2
- package/model/wTMembershipTierCreationParams.ts +1 -1
- package/model/wTMembershipTierUpdateParams.ts +1 -1
- package/model/wTMembershipTierWithMemberCount.ts +2 -2
- package/model/wTMerchantCredit.ts +1 -1
- package/model/wTMerchantCreditCreationParams.ts +1 -1
- package/model/wTMerchantURLCreate.ts +1 -1
- package/model/wTMerchantURLUpdate.ts +1 -1
- package/model/wTMerchantUpdate.ts +7 -1
- package/model/wTMerchantUpdateBillingContact.ts +1 -1
- package/model/wTMerchantUpdatePOSIntegration.ts +1 -1
- package/model/wTNewsArticleCreateParams.ts +1 -1
- package/model/wTNewsArticleUpdateParams.ts +1 -1
- package/model/wTOptInList.ts +2 -2
- package/model/wTOptInListCreationParams.ts +1 -1
- package/model/wTPaymentDesign.ts +2 -2
- package/model/wTPaymentDesignCreateParams.ts +1 -1
- package/model/wTPaymentDesignUpdateParams.ts +1 -1
- package/model/wTPerformanceCreateParams.ts +1 -1
- package/model/wTPerformanceUpdateParams.ts +1 -1
- package/model/wTPosMachine.ts +1 -1
- package/model/wTPosMachineCreateParams.ts +1 -1
- package/model/wTPosMachineUpdateParams.ts +1 -1
- package/model/wTPromoCodeCreateParams.ts +1 -1
- package/model/wTPromoCodeUpdateParams.ts +1 -1
- package/model/wTRole.ts +1 -1
- package/model/wTSMSAcquirePhoneNumber.ts +1 -1
- package/model/wTSMSCreateAgreement.ts +1 -1
- package/model/wTSMSImportOptInListSubscribers.ts +1 -1
- package/model/wTSMSImportedListCreate.ts +1 -1
- package/model/wTSMSLimits.ts +37 -0
- package/model/wTSMSOptInListSourceCreate.ts +1 -1
- package/model/wTSMSUpdatePhoneNumberConfig.ts +1 -1
- package/model/wTSettingsSetPassword.ts +1 -1
- package/model/wTStaticVoucher.ts +2 -2
- package/model/wTStaticVoucherCampaign.ts +2 -2
- package/model/wTStaticVoucherCampaignPreviewMessages.ts +1 -1
- package/model/wTStaticVoucherCampaignPreviewMessagesByPage.ts +1 -1
- package/model/wTStaticVoucherCreateParams.ts +1 -1
- package/model/wTStaticVoucherUpdateParams.ts +1 -1
- package/model/wTSystemApprovePhoneNumber.ts +1 -1
- package/model/wTSystemRoleCreate.ts +1 -1
- package/model/wTTCPAOpt.ts +1 -1
- package/model/wTTwilioRequestAuthyCode.ts +1 -1
- package/model/wTTwilioVerifyAuthyCode.ts +1 -1
- package/model/wTWalletConfigurationSaveWalletRecord.ts +7 -1
- package/model/wTWalletItemRedemption.ts +2 -2
- package/model/wTWalletObjectPrefixCounts.ts +44 -0
- package/model/wTWalletPageView.ts +2 -2
- package/model/wTWalletPageViewCount.ts +43 -0
- package/model/wTWalletPageViewGeoPoint.ts +1 -1
- package/model/walletConfiguration.ts +7 -1
- package/model/walletPageView.ts +2 -2
- package/model/webpage.ts +1 -1
- package/package.json +1 -1
- package/tsconfig.json +1 -2
package/api/employeesApi.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* wallet-api
|
|
3
3
|
* API
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.1.
|
|
5
|
+
* The version of the OpenAPI document: 2.1.512
|
|
6
6
|
* Contact: development@wallet.inc
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -25,7 +25,7 @@ import { EmployeeActivityLog } from '../model/employeeActivityLog';
|
|
|
25
25
|
import { EntityTooLarge } from '../model/entityTooLarge';
|
|
26
26
|
import { FalsumError } from '../model/falsumError';
|
|
27
27
|
import { HelpDeskRequest } from '../model/helpDeskRequest';
|
|
28
|
-
import {
|
|
28
|
+
import { InlineResponse2001 } from '../model/inlineResponse2001';
|
|
29
29
|
import { InternalServerError } from '../model/internalServerError';
|
|
30
30
|
import { MediaFile } from '../model/mediaFile';
|
|
31
31
|
import { Message } from '../model/message';
|
|
@@ -49,6 +49,7 @@ import { WTEmployeeScheduleSimpleSMS } from '../model/wTEmployeeScheduleSimpleSM
|
|
|
49
49
|
import { WTEmployeeScheduleSimpleSMSToRecipient } from '../model/wTEmployeeScheduleSimpleSMSToRecipient';
|
|
50
50
|
import { WTEmployeeSendHelpDeskResponse } from '../model/wTEmployeeSendHelpDeskResponse';
|
|
51
51
|
import { WTEmployeeUpdate } from '../model/wTEmployeeUpdate';
|
|
52
|
+
import { WTEmployeeUpdateRecords } from '../model/wTEmployeeUpdateRecords';
|
|
52
53
|
import { Webpage } from '../model/webpage';
|
|
53
54
|
|
|
54
55
|
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
|
|
@@ -342,7 +343,7 @@ export class EmployeesApi {
|
|
|
342
343
|
* @summary Create file
|
|
343
344
|
* @param wTEmployeeFileCreate
|
|
344
345
|
*/
|
|
345
|
-
public async createFile (wTEmployeeFileCreate: WTEmployeeFileCreate, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body:
|
|
346
|
+
public async createFile (wTEmployeeFileCreate: WTEmployeeFileCreate, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2001; }> {
|
|
346
347
|
const localVarPath = this.basePath + '/v2/employee/file/create';
|
|
347
348
|
let localVarQueryParameters: any = {};
|
|
348
349
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -390,13 +391,13 @@ export class EmployeesApi {
|
|
|
390
391
|
localVarRequestOptions.form = localVarFormParams;
|
|
391
392
|
}
|
|
392
393
|
}
|
|
393
|
-
return new Promise<{ response: http.IncomingMessage; body:
|
|
394
|
+
return new Promise<{ response: http.IncomingMessage; body: InlineResponse2001; }>((resolve, reject) => {
|
|
394
395
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
395
396
|
if (error) {
|
|
396
397
|
reject(error);
|
|
397
398
|
} else {
|
|
398
399
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
399
|
-
body = ObjectSerializer.deserialize(body, "
|
|
400
|
+
body = ObjectSerializer.deserialize(body, "InlineResponse2001");
|
|
400
401
|
resolve({ response: response, body: body });
|
|
401
402
|
} else {
|
|
402
403
|
reject(new HttpError(response, body, response.statusCode));
|
|
@@ -1148,8 +1149,9 @@ export class EmployeesApi {
|
|
|
1148
1149
|
/**
|
|
1149
1150
|
*
|
|
1150
1151
|
* @summary Fetch all media files
|
|
1152
|
+
* @param folder
|
|
1151
1153
|
*/
|
|
1152
|
-
public async fetchMediaFiles (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<MediaFile>; }> {
|
|
1154
|
+
public async fetchMediaFiles (folder?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<MediaFile>; }> {
|
|
1153
1155
|
const localVarPath = this.basePath + '/v2/employee/mediaFiles/all';
|
|
1154
1156
|
let localVarQueryParameters: any = {};
|
|
1155
1157
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -1162,6 +1164,10 @@ export class EmployeesApi {
|
|
|
1162
1164
|
}
|
|
1163
1165
|
let localVarFormParams: any = {};
|
|
1164
1166
|
|
|
1167
|
+
if (folder !== undefined) {
|
|
1168
|
+
localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1165
1171
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1166
1172
|
|
|
1167
1173
|
let localVarUseFormData = false;
|
|
@@ -2849,6 +2855,75 @@ export class EmployeesApi {
|
|
|
2849
2855
|
});
|
|
2850
2856
|
});
|
|
2851
2857
|
}
|
|
2858
|
+
/**
|
|
2859
|
+
*
|
|
2860
|
+
* @summary Update club members
|
|
2861
|
+
* @param wTEmployeeUpdateRecords
|
|
2862
|
+
*/
|
|
2863
|
+
public async updateClubMembers (wTEmployeeUpdateRecords: WTEmployeeUpdateRecords, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: string; }> {
|
|
2864
|
+
const localVarPath = this.basePath + '/v2/employee/update/members';
|
|
2865
|
+
let localVarQueryParameters: any = {};
|
|
2866
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
2867
|
+
const produces = ['application/json'];
|
|
2868
|
+
// give precedence to 'application/json'
|
|
2869
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
2870
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
2871
|
+
} else {
|
|
2872
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
2873
|
+
}
|
|
2874
|
+
let localVarFormParams: any = {};
|
|
2875
|
+
|
|
2876
|
+
// verify required parameter 'wTEmployeeUpdateRecords' is not null or undefined
|
|
2877
|
+
if (wTEmployeeUpdateRecords === null || wTEmployeeUpdateRecords === undefined) {
|
|
2878
|
+
throw new Error('Required parameter wTEmployeeUpdateRecords was null or undefined when calling updateClubMembers.');
|
|
2879
|
+
}
|
|
2880
|
+
|
|
2881
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
2882
|
+
|
|
2883
|
+
let localVarUseFormData = false;
|
|
2884
|
+
|
|
2885
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
2886
|
+
method: 'PUT',
|
|
2887
|
+
qs: localVarQueryParameters,
|
|
2888
|
+
headers: localVarHeaderParams,
|
|
2889
|
+
uri: localVarPath,
|
|
2890
|
+
useQuerystring: this._useQuerystring,
|
|
2891
|
+
json: true,
|
|
2892
|
+
body: ObjectSerializer.serialize(wTEmployeeUpdateRecords, "WTEmployeeUpdateRecords")
|
|
2893
|
+
};
|
|
2894
|
+
|
|
2895
|
+
let authenticationPromise = Promise.resolve();
|
|
2896
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2897
|
+
|
|
2898
|
+
let interceptorPromise = authenticationPromise;
|
|
2899
|
+
for (const interceptor of this.interceptors) {
|
|
2900
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
2901
|
+
}
|
|
2902
|
+
|
|
2903
|
+
return interceptorPromise.then(() => {
|
|
2904
|
+
if (Object.keys(localVarFormParams).length) {
|
|
2905
|
+
if (localVarUseFormData) {
|
|
2906
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
2907
|
+
} else {
|
|
2908
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
2909
|
+
}
|
|
2910
|
+
}
|
|
2911
|
+
return new Promise<{ response: http.IncomingMessage; body: string; }>((resolve, reject) => {
|
|
2912
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2913
|
+
if (error) {
|
|
2914
|
+
reject(error);
|
|
2915
|
+
} else {
|
|
2916
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2917
|
+
body = ObjectSerializer.deserialize(body, "string");
|
|
2918
|
+
resolve({ response: response, body: body });
|
|
2919
|
+
} else {
|
|
2920
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
2921
|
+
}
|
|
2922
|
+
}
|
|
2923
|
+
});
|
|
2924
|
+
});
|
|
2925
|
+
});
|
|
2926
|
+
}
|
|
2852
2927
|
/**
|
|
2853
2928
|
*
|
|
2854
2929
|
* @summary Update peer
|
|
@@ -0,0 +1,447 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* wallet-api
|
|
3
|
+
* API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.1.512
|
|
6
|
+
* Contact: development@wallet.inc
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
import localVarRequest from 'request';
|
|
15
|
+
import http from 'http';
|
|
16
|
+
|
|
17
|
+
/* tslint:disable:no-unused-locals */
|
|
18
|
+
import { AuthError } from '../model/authError';
|
|
19
|
+
import { FalsumError } from '../model/falsumError';
|
|
20
|
+
import { ImageGrid } from '../model/imageGrid';
|
|
21
|
+
import { InternalServerError } from '../model/internalServerError';
|
|
22
|
+
import { WTImageGridCreateParams } from '../model/wTImageGridCreateParams';
|
|
23
|
+
import { WTImageGridUpdateParams } from '../model/wTImageGridUpdateParams';
|
|
24
|
+
|
|
25
|
+
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
|
|
26
|
+
import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models';
|
|
27
|
+
|
|
28
|
+
import { HttpError, RequestFile } from './apis';
|
|
29
|
+
|
|
30
|
+
let defaultBasePath = 'https://api.wall.et';
|
|
31
|
+
|
|
32
|
+
// ===============================================
|
|
33
|
+
// This file is autogenerated - Please do not edit
|
|
34
|
+
// ===============================================
|
|
35
|
+
|
|
36
|
+
export enum ImageGridApiApiKeys {
|
|
37
|
+
api_key,
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export class ImageGridApi {
|
|
41
|
+
protected _basePath = defaultBasePath;
|
|
42
|
+
protected _defaultHeaders : any = {};
|
|
43
|
+
protected _useQuerystring : boolean = false;
|
|
44
|
+
|
|
45
|
+
protected authentications = {
|
|
46
|
+
'default': <Authentication>new VoidAuth(),
|
|
47
|
+
'api_key': new ApiKeyAuth('header', 'access-token'),
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
protected interceptors: Interceptor[] = [];
|
|
51
|
+
|
|
52
|
+
constructor(basePath?: string);
|
|
53
|
+
constructor(basePathOrUsername: string, password?: string, basePath?: string) {
|
|
54
|
+
if (password) {
|
|
55
|
+
if (basePath) {
|
|
56
|
+
this.basePath = basePath;
|
|
57
|
+
}
|
|
58
|
+
} else {
|
|
59
|
+
if (basePathOrUsername) {
|
|
60
|
+
this.basePath = basePathOrUsername
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
set useQuerystring(value: boolean) {
|
|
66
|
+
this._useQuerystring = value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
set basePath(basePath: string) {
|
|
70
|
+
this._basePath = basePath;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
set defaultHeaders(defaultHeaders: any) {
|
|
74
|
+
this._defaultHeaders = defaultHeaders;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
get defaultHeaders() {
|
|
78
|
+
return this._defaultHeaders;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
get basePath() {
|
|
82
|
+
return this._basePath;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
public setDefaultAuthentication(auth: Authentication) {
|
|
86
|
+
this.authentications.default = auth;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
public setApiKey(key: ImageGridApiApiKeys, value: string) {
|
|
90
|
+
(this.authentications as any)[ImageGridApiApiKeys[key]].apiKey = value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
public addInterceptor(interceptor: Interceptor) {
|
|
94
|
+
this.interceptors.push(interceptor);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @summary Archive image
|
|
100
|
+
* @param id
|
|
101
|
+
*/
|
|
102
|
+
public async archiveImageGrid (id: any, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ImageGrid; }> {
|
|
103
|
+
const localVarPath = this.basePath + '/v2/imageGrid/{id}'
|
|
104
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
105
|
+
let localVarQueryParameters: any = {};
|
|
106
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
107
|
+
const produces = ['application/json'];
|
|
108
|
+
// give precedence to 'application/json'
|
|
109
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
110
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
111
|
+
} else {
|
|
112
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
113
|
+
}
|
|
114
|
+
let localVarFormParams: any = {};
|
|
115
|
+
|
|
116
|
+
// verify required parameter 'id' is not null or undefined
|
|
117
|
+
if (id === null || id === undefined) {
|
|
118
|
+
throw new Error('Required parameter id was null or undefined when calling archiveImageGrid.');
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
122
|
+
|
|
123
|
+
let localVarUseFormData = false;
|
|
124
|
+
|
|
125
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
126
|
+
method: 'DELETE',
|
|
127
|
+
qs: localVarQueryParameters,
|
|
128
|
+
headers: localVarHeaderParams,
|
|
129
|
+
uri: localVarPath,
|
|
130
|
+
useQuerystring: this._useQuerystring,
|
|
131
|
+
json: true,
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
let authenticationPromise = Promise.resolve();
|
|
135
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
136
|
+
|
|
137
|
+
let interceptorPromise = authenticationPromise;
|
|
138
|
+
for (const interceptor of this.interceptors) {
|
|
139
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
return interceptorPromise.then(() => {
|
|
143
|
+
if (Object.keys(localVarFormParams).length) {
|
|
144
|
+
if (localVarUseFormData) {
|
|
145
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
146
|
+
} else {
|
|
147
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
return new Promise<{ response: http.IncomingMessage; body: ImageGrid; }>((resolve, reject) => {
|
|
151
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
152
|
+
if (error) {
|
|
153
|
+
reject(error);
|
|
154
|
+
} else {
|
|
155
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
156
|
+
body = ObjectSerializer.deserialize(body, "ImageGrid");
|
|
157
|
+
resolve({ response: response, body: body });
|
|
158
|
+
} else {
|
|
159
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
});
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
*
|
|
168
|
+
* @summary Create image
|
|
169
|
+
* @param wTImageGridCreateParams
|
|
170
|
+
*/
|
|
171
|
+
public async createImageGrid (wTImageGridCreateParams: WTImageGridCreateParams, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ImageGrid; }> {
|
|
172
|
+
const localVarPath = this.basePath + '/v2/imageGrid';
|
|
173
|
+
let localVarQueryParameters: any = {};
|
|
174
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
175
|
+
const produces = ['application/json'];
|
|
176
|
+
// give precedence to 'application/json'
|
|
177
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
178
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
179
|
+
} else {
|
|
180
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
181
|
+
}
|
|
182
|
+
let localVarFormParams: any = {};
|
|
183
|
+
|
|
184
|
+
// verify required parameter 'wTImageGridCreateParams' is not null or undefined
|
|
185
|
+
if (wTImageGridCreateParams === null || wTImageGridCreateParams === undefined) {
|
|
186
|
+
throw new Error('Required parameter wTImageGridCreateParams was null or undefined when calling createImageGrid.');
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
190
|
+
|
|
191
|
+
let localVarUseFormData = false;
|
|
192
|
+
|
|
193
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
194
|
+
method: 'POST',
|
|
195
|
+
qs: localVarQueryParameters,
|
|
196
|
+
headers: localVarHeaderParams,
|
|
197
|
+
uri: localVarPath,
|
|
198
|
+
useQuerystring: this._useQuerystring,
|
|
199
|
+
json: true,
|
|
200
|
+
body: ObjectSerializer.serialize(wTImageGridCreateParams, "WTImageGridCreateParams")
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
let authenticationPromise = Promise.resolve();
|
|
204
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
205
|
+
|
|
206
|
+
let interceptorPromise = authenticationPromise;
|
|
207
|
+
for (const interceptor of this.interceptors) {
|
|
208
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
return interceptorPromise.then(() => {
|
|
212
|
+
if (Object.keys(localVarFormParams).length) {
|
|
213
|
+
if (localVarUseFormData) {
|
|
214
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
215
|
+
} else {
|
|
216
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
return new Promise<{ response: http.IncomingMessage; body: ImageGrid; }>((resolve, reject) => {
|
|
220
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
221
|
+
if (error) {
|
|
222
|
+
reject(error);
|
|
223
|
+
} else {
|
|
224
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
225
|
+
body = ObjectSerializer.deserialize(body, "ImageGrid");
|
|
226
|
+
resolve({ response: response, body: body });
|
|
227
|
+
} else {
|
|
228
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
});
|
|
232
|
+
});
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
*
|
|
237
|
+
* @summary Fetch all images
|
|
238
|
+
* @param isArchiveIncluded
|
|
239
|
+
*/
|
|
240
|
+
public async fetchAllImageGrid (isArchiveIncluded?: boolean, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: any; }> {
|
|
241
|
+
const localVarPath = this.basePath + '/v2/imageGrid/all';
|
|
242
|
+
let localVarQueryParameters: any = {};
|
|
243
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
244
|
+
const produces = ['application/json'];
|
|
245
|
+
// give precedence to 'application/json'
|
|
246
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
247
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
248
|
+
} else {
|
|
249
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
250
|
+
}
|
|
251
|
+
let localVarFormParams: any = {};
|
|
252
|
+
|
|
253
|
+
if (isArchiveIncluded !== undefined) {
|
|
254
|
+
localVarQueryParameters['isArchiveIncluded'] = ObjectSerializer.serialize(isArchiveIncluded, "boolean");
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
258
|
+
|
|
259
|
+
let localVarUseFormData = false;
|
|
260
|
+
|
|
261
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
262
|
+
method: 'GET',
|
|
263
|
+
qs: localVarQueryParameters,
|
|
264
|
+
headers: localVarHeaderParams,
|
|
265
|
+
uri: localVarPath,
|
|
266
|
+
useQuerystring: this._useQuerystring,
|
|
267
|
+
json: true,
|
|
268
|
+
};
|
|
269
|
+
|
|
270
|
+
let authenticationPromise = Promise.resolve();
|
|
271
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
272
|
+
|
|
273
|
+
let interceptorPromise = authenticationPromise;
|
|
274
|
+
for (const interceptor of this.interceptors) {
|
|
275
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
return interceptorPromise.then(() => {
|
|
279
|
+
if (Object.keys(localVarFormParams).length) {
|
|
280
|
+
if (localVarUseFormData) {
|
|
281
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
282
|
+
} else {
|
|
283
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
return new Promise<{ response: http.IncomingMessage; body: any; }>((resolve, reject) => {
|
|
287
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
288
|
+
if (error) {
|
|
289
|
+
reject(error);
|
|
290
|
+
} else {
|
|
291
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
292
|
+
body = ObjectSerializer.deserialize(body, "any");
|
|
293
|
+
resolve({ response: response, body: body });
|
|
294
|
+
} else {
|
|
295
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
});
|
|
299
|
+
});
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
*
|
|
304
|
+
* @summary Restore image
|
|
305
|
+
* @param id
|
|
306
|
+
*/
|
|
307
|
+
public async restoreImageGrid (id: any, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ImageGrid; }> {
|
|
308
|
+
const localVarPath = this.basePath + '/v2/imageGrid/{id}'
|
|
309
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
310
|
+
let localVarQueryParameters: any = {};
|
|
311
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
312
|
+
const produces = ['application/json'];
|
|
313
|
+
// give precedence to 'application/json'
|
|
314
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
315
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
316
|
+
} else {
|
|
317
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
318
|
+
}
|
|
319
|
+
let localVarFormParams: any = {};
|
|
320
|
+
|
|
321
|
+
// verify required parameter 'id' is not null or undefined
|
|
322
|
+
if (id === null || id === undefined) {
|
|
323
|
+
throw new Error('Required parameter id was null or undefined when calling restoreImageGrid.');
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
327
|
+
|
|
328
|
+
let localVarUseFormData = false;
|
|
329
|
+
|
|
330
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
331
|
+
method: 'PATCH',
|
|
332
|
+
qs: localVarQueryParameters,
|
|
333
|
+
headers: localVarHeaderParams,
|
|
334
|
+
uri: localVarPath,
|
|
335
|
+
useQuerystring: this._useQuerystring,
|
|
336
|
+
json: true,
|
|
337
|
+
};
|
|
338
|
+
|
|
339
|
+
let authenticationPromise = Promise.resolve();
|
|
340
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
341
|
+
|
|
342
|
+
let interceptorPromise = authenticationPromise;
|
|
343
|
+
for (const interceptor of this.interceptors) {
|
|
344
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
return interceptorPromise.then(() => {
|
|
348
|
+
if (Object.keys(localVarFormParams).length) {
|
|
349
|
+
if (localVarUseFormData) {
|
|
350
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
351
|
+
} else {
|
|
352
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
return new Promise<{ response: http.IncomingMessage; body: ImageGrid; }>((resolve, reject) => {
|
|
356
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
357
|
+
if (error) {
|
|
358
|
+
reject(error);
|
|
359
|
+
} else {
|
|
360
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
361
|
+
body = ObjectSerializer.deserialize(body, "ImageGrid");
|
|
362
|
+
resolve({ response: response, body: body });
|
|
363
|
+
} else {
|
|
364
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
});
|
|
368
|
+
});
|
|
369
|
+
});
|
|
370
|
+
}
|
|
371
|
+
/**
|
|
372
|
+
*
|
|
373
|
+
* @summary Update image
|
|
374
|
+
* @param id
|
|
375
|
+
* @param wTImageGridUpdateParams
|
|
376
|
+
*/
|
|
377
|
+
public async updateImageGrid (id: any, wTImageGridUpdateParams: WTImageGridUpdateParams, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ImageGrid; }> {
|
|
378
|
+
const localVarPath = this.basePath + '/v2/imageGrid/{id}'
|
|
379
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
380
|
+
let localVarQueryParameters: any = {};
|
|
381
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
382
|
+
const produces = ['application/json'];
|
|
383
|
+
// give precedence to 'application/json'
|
|
384
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
385
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
386
|
+
} else {
|
|
387
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
388
|
+
}
|
|
389
|
+
let localVarFormParams: any = {};
|
|
390
|
+
|
|
391
|
+
// verify required parameter 'id' is not null or undefined
|
|
392
|
+
if (id === null || id === undefined) {
|
|
393
|
+
throw new Error('Required parameter id was null or undefined when calling updateImageGrid.');
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
// verify required parameter 'wTImageGridUpdateParams' is not null or undefined
|
|
397
|
+
if (wTImageGridUpdateParams === null || wTImageGridUpdateParams === undefined) {
|
|
398
|
+
throw new Error('Required parameter wTImageGridUpdateParams was null or undefined when calling updateImageGrid.');
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
402
|
+
|
|
403
|
+
let localVarUseFormData = false;
|
|
404
|
+
|
|
405
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
406
|
+
method: 'PUT',
|
|
407
|
+
qs: localVarQueryParameters,
|
|
408
|
+
headers: localVarHeaderParams,
|
|
409
|
+
uri: localVarPath,
|
|
410
|
+
useQuerystring: this._useQuerystring,
|
|
411
|
+
json: true,
|
|
412
|
+
body: ObjectSerializer.serialize(wTImageGridUpdateParams, "WTImageGridUpdateParams")
|
|
413
|
+
};
|
|
414
|
+
|
|
415
|
+
let authenticationPromise = Promise.resolve();
|
|
416
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
417
|
+
|
|
418
|
+
let interceptorPromise = authenticationPromise;
|
|
419
|
+
for (const interceptor of this.interceptors) {
|
|
420
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
return interceptorPromise.then(() => {
|
|
424
|
+
if (Object.keys(localVarFormParams).length) {
|
|
425
|
+
if (localVarUseFormData) {
|
|
426
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
427
|
+
} else {
|
|
428
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
return new Promise<{ response: http.IncomingMessage; body: ImageGrid; }>((resolve, reject) => {
|
|
432
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
433
|
+
if (error) {
|
|
434
|
+
reject(error);
|
|
435
|
+
} else {
|
|
436
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
437
|
+
body = ObjectSerializer.deserialize(body, "ImageGrid");
|
|
438
|
+
resolve({ response: response, body: body });
|
|
439
|
+
} else {
|
|
440
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
});
|
|
444
|
+
});
|
|
445
|
+
});
|
|
446
|
+
}
|
|
447
|
+
}
|
package/api/industriesApi.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* wallet-api
|
|
3
3
|
* API
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.1.
|
|
5
|
+
* The version of the OpenAPI document: 2.1.512
|
|
6
6
|
* Contact: development@wallet.inc
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -15,7 +15,7 @@ import localVarRequest from 'request';
|
|
|
15
15
|
import http from 'http';
|
|
16
16
|
|
|
17
17
|
/* tslint:disable:no-unused-locals */
|
|
18
|
-
import {
|
|
18
|
+
import { InlineResponse200 } from '../model/inlineResponse200';
|
|
19
19
|
import { InternalServerError } from '../model/internalServerError';
|
|
20
20
|
|
|
21
21
|
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
|
|
@@ -94,7 +94,7 @@ export class IndustriesApi {
|
|
|
94
94
|
*
|
|
95
95
|
* @summary Fetch all industries
|
|
96
96
|
*/
|
|
97
|
-
public async fetchAllIndustries (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<
|
|
97
|
+
public async fetchAllIndustries (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<InlineResponse200>; }> {
|
|
98
98
|
const localVarPath = this.basePath + '/system/industries/all';
|
|
99
99
|
let localVarQueryParameters: any = {};
|
|
100
100
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -136,13 +136,13 @@ export class IndustriesApi {
|
|
|
136
136
|
localVarRequestOptions.form = localVarFormParams;
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
|
-
return new Promise<{ response: http.IncomingMessage; body: Array<
|
|
139
|
+
return new Promise<{ response: http.IncomingMessage; body: Array<InlineResponse200>; }>((resolve, reject) => {
|
|
140
140
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
141
141
|
if (error) {
|
|
142
142
|
reject(error);
|
|
143
143
|
} else {
|
|
144
144
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
145
|
-
body = ObjectSerializer.deserialize(body, "Array<
|
|
145
|
+
body = ObjectSerializer.deserialize(body, "Array<InlineResponse200>");
|
|
146
146
|
resolve({ response: response, body: body });
|
|
147
147
|
} else {
|
|
148
148
|
reject(new HttpError(response, body, response.statusCode));
|