wallet 1.1.4 → 2.1.503
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 +18 -3
- package/README.md +265 -39
- package/api/advertisementCreditsApi.ts +15 -15
- package/api/analyticsApi.ts +66 -66
- package/api/apis.ts +3 -1
- package/api/appleWalletSubscribersApi.ts +3 -3
- package/api/billingApi.ts +10 -10
- package/api/clubMembersPointsApi.ts +24 -25
- package/api/configurationApi.ts +10 -10
- package/api/countriesApi.ts +5 -5
- package/api/customerApi.ts +10 -10
- package/api/dashboardApi.ts +19 -19
- package/api/dynamicVouchersApi.ts +8 -8
- package/api/employeeAPIKeysApi.ts +448 -0
- package/api/employeeAccessApi.ts +8 -8
- package/api/employeesApi.ts +43 -42
- package/api/industriesApi.ts +1 -1
- package/api/infoGenesisReportsApi.ts +28 -28
- package/api/integratedTerminalsApi.ts +6 -6
- package/api/interactionsApi.ts +157 -18
- package/api/linkBookApi.ts +6 -6
- package/api/linkBookSectionApi.ts +6 -6
- package/api/loginAndLogoutApi.ts +11 -11
- package/api/membershipTiersApi.ts +23 -24
- package/api/merchantApi.ts +344 -22
- package/api/merchantCreditsApi.ts +24 -25
- package/api/merchantURLsApi.ts +8 -8
- package/api/mobileTerminalApi.ts +6 -19
- package/api/newsApi.ts +6 -6
- package/api/paymentDesignsApi.ts +7 -7
- package/api/performancesApi.ts +6 -6
- package/api/promoCodesApi.ts +6 -6
- package/api/sMSApi.ts +948 -123
- package/api/settingsApi.ts +3 -3
- package/api/staticVoucherCampaignGroupsApi.ts +2 -2
- package/api/staticVoucherCampaignsApi.ts +20 -20
- package/api/staticVouchersApi.ts +7 -7
- package/api/systemApi.ts +21 -21
- package/api/transactionLedgerApi.ts +2 -2
- package/api/utilitiesApi.ts +2 -2
- package/api/webTerminalApi.ts +4 -4
- package/dist/api/advertisementCreditsApi.d.ts +86 -0
- package/dist/api/advertisementCreditsApi.js +502 -0
- package/dist/api/advertisementCreditsApi.js.map +1 -0
- package/dist/api/analyticsApi.d.ts +547 -0
- package/dist/api/analyticsApi.js +4873 -0
- package/dist/api/analyticsApi.js.map +1 -0
- package/dist/api/apis.d.ts +86 -0
- package/dist/api/apis.js +101 -0
- package/dist/api/apis.js.map +1 -0
- package/dist/api/appleWalletSubscribersApi.d.ts +42 -0
- package/dist/api/appleWalletSubscribersApi.js +196 -0
- package/dist/api/appleWalletSubscribersApi.js.map +1 -0
- package/dist/api/billingApi.d.ts +102 -0
- package/dist/api/billingApi.js +599 -0
- package/dist/api/billingApi.js.map +1 -0
- package/dist/api/clubMembersPointsApi.d.ts +116 -0
- package/dist/api/clubMembersPointsApi.js +682 -0
- package/dist/api/clubMembersPointsApi.js.map +1 -0
- package/dist/api/configurationApi.d.ts +43 -0
- package/dist/api/configurationApi.js +190 -0
- package/dist/api/configurationApi.js.map +1 -0
- package/dist/api/countriesApi.d.ts +35 -0
- package/dist/api/countriesApi.js +129 -0
- package/dist/api/countriesApi.js.map +1 -0
- package/dist/api/customerApi.d.ts +102 -0
- package/dist/api/customerApi.js +633 -0
- package/dist/api/customerApi.js.map +1 -0
- package/dist/api/dashboardApi.d.ts +173 -0
- package/dist/api/dashboardApi.js +1302 -0
- package/dist/api/dashboardApi.js.map +1 -0
- package/dist/api/dynamicVouchersApi.d.ts +87 -0
- package/dist/api/dynamicVouchersApi.js +510 -0
- package/dist/api/dynamicVouchersApi.js.map +1 -0
- package/dist/api/employeeAPIKeysApi.d.ts +70 -0
- package/dist/api/employeeAPIKeysApi.js +380 -0
- package/dist/api/employeeAPIKeysApi.js.map +1 -0
- package/dist/api/employeeAccessApi.d.ts +36 -0
- package/dist/api/employeeAccessApi.js +133 -0
- package/dist/api/employeeAccessApi.js.map +1 -0
- package/dist/api/employeesApi.d.ts +391 -0
- package/dist/api/employeesApi.js +2558 -0
- package/dist/api/employeesApi.js.map +1 -0
- package/dist/api/industriesApi.d.ts +35 -0
- package/dist/api/industriesApi.js +129 -0
- package/dist/api/industriesApi.js.map +1 -0
- package/dist/api/infoGenesisReportsApi.d.ts +269 -0
- package/dist/api/infoGenesisReportsApi.js +1743 -0
- package/dist/api/infoGenesisReportsApi.js.map +1 -0
- package/dist/api/integratedTerminalsApi.d.ts +69 -0
- package/dist/api/integratedTerminalsApi.js +380 -0
- package/dist/api/integratedTerminalsApi.js.map +1 -0
- package/dist/api/interactionsApi.d.ts +114 -0
- package/dist/api/interactionsApi.js +698 -0
- package/dist/api/interactionsApi.js.map +1 -0
- package/dist/api/linkBookApi.d.ts +69 -0
- package/dist/api/linkBookApi.js +380 -0
- package/dist/api/linkBookApi.js.map +1 -0
- package/dist/api/linkBookSectionApi.d.ts +69 -0
- package/dist/api/linkBookSectionApi.js +380 -0
- package/dist/api/linkBookSectionApi.js.map +1 -0
- package/dist/api/loginAndLogoutApi.d.ts +52 -0
- package/dist/api/loginAndLogoutApi.js +251 -0
- package/dist/api/loginAndLogoutApi.js.map +1 -0
- package/dist/api/membershipTiersApi.d.ts +105 -0
- package/dist/api/membershipTiersApi.js +623 -0
- package/dist/api/membershipTiersApi.js.map +1 -0
- package/dist/api/merchantApi.d.ts +235 -0
- package/dist/api/merchantApi.js +1616 -0
- package/dist/api/merchantApi.js.map +1 -0
- package/dist/api/merchantCreditsApi.d.ts +116 -0
- package/dist/api/merchantCreditsApi.js +682 -0
- package/dist/api/merchantCreditsApi.js.map +1 -0
- package/dist/api/merchantURLsApi.d.ts +86 -0
- package/dist/api/merchantURLsApi.js +502 -0
- package/dist/api/merchantURLsApi.js.map +1 -0
- package/dist/api/mobileTerminalApi.d.ts +52 -0
- package/dist/api/mobileTerminalApi.js +259 -0
- package/dist/api/mobileTerminalApi.js.map +1 -0
- package/dist/api/newsApi.d.ts +69 -0
- package/dist/api/newsApi.js +380 -0
- package/dist/api/newsApi.js.map +1 -0
- package/dist/api/paymentDesignsApi.d.ts +77 -0
- package/dist/api/paymentDesignsApi.js +441 -0
- package/dist/api/paymentDesignsApi.js.map +1 -0
- package/dist/api/performancesApi.d.ts +69 -0
- package/dist/api/performancesApi.js +380 -0
- package/dist/api/performancesApi.js.map +1 -0
- package/dist/api/promoCodesApi.d.ts +69 -0
- package/dist/api/promoCodesApi.js +380 -0
- package/dist/api/promoCodesApi.js.map +1 -0
- package/dist/api/sMSApi.d.ts +340 -0
- package/dist/api/sMSApi.js +2399 -0
- package/dist/api/sMSApi.js.map +1 -0
- package/dist/api/settingsApi.d.ts +44 -0
- package/dist/api/settingsApi.js +186 -0
- package/dist/api/settingsApi.js.map +1 -0
- package/dist/api/staticVoucherCampaignGroupsApi.d.ts +34 -0
- package/dist/api/staticVoucherCampaignGroupsApi.js +133 -0
- package/dist/api/staticVoucherCampaignGroupsApi.js.map +1 -0
- package/dist/api/staticVoucherCampaignsApi.d.ts +193 -0
- package/dist/api/staticVoucherCampaignsApi.js +1269 -0
- package/dist/api/staticVoucherCampaignsApi.js.map +1 -0
- package/dist/api/staticVouchersApi.d.ts +78 -0
- package/dist/api/staticVouchersApi.js +450 -0
- package/dist/api/staticVouchersApi.js.map +1 -0
- package/dist/api/systemApi.d.ts +89 -0
- package/dist/api/systemApi.js +511 -0
- package/dist/api/systemApi.js.map +1 -0
- package/dist/api/transactionLedgerApi.d.ts +36 -0
- package/dist/api/transactionLedgerApi.js +156 -0
- package/dist/api/transactionLedgerApi.js.map +1 -0
- package/dist/api/utilitiesApi.d.ts +35 -0
- package/dist/api/utilitiesApi.js +129 -0
- package/dist/api/utilitiesApi.js.map +1 -0
- package/dist/api/webTerminalApi.d.ts +51 -0
- package/dist/api/webTerminalApi.js +259 -0
- package/dist/api/webTerminalApi.js.map +1 -0
- package/dist/api.d.ts +2 -0
- package/dist/api.js +15 -0
- package/dist/api.js.map +1 -0
- package/dist/examples/advertisementcredits.example.d.ts +1 -0
- package/dist/examples/advertisementcredits.example.js +77 -0
- package/dist/examples/advertisementcredits.example.js.map +1 -0
- package/dist/examples/clubmembers.example.d.ts +1 -0
- package/dist/examples/clubmembers.example.js +71 -0
- package/dist/examples/clubmembers.example.js.map +1 -0
- package/dist/examples/constants.d.ts +6 -0
- package/dist/examples/constants.js +10 -0
- package/dist/examples/constants.js.map +1 -0
- package/dist/examples/linkbook.example.d.ts +1 -0
- package/dist/examples/linkbook.example.js +70 -0
- package/dist/examples/linkbook.example.js.map +1 -0
- package/dist/examples/membershiptiers.example.d.ts +1 -0
- package/dist/examples/membershiptiers.example.js +70 -0
- package/dist/examples/membershiptiers.example.js.map +1 -0
- package/dist/examples/merchantcredits.example.d.ts +1 -0
- package/dist/examples/merchantcredits.example.js +68 -0
- package/dist/examples/merchantcredits.example.js.map +1 -0
- package/dist/examples/merchanturls.example.d.ts +1 -0
- package/dist/examples/merchanturls.example.js +67 -0
- package/dist/examples/merchanturls.example.js.map +1 -0
- package/dist/examples/news.example.d.ts +1 -0
- package/dist/examples/news.example.js +70 -0
- package/dist/examples/news.example.js.map +1 -0
- package/dist/examples/paymentdesigns.example.d.ts +1 -0
- package/dist/examples/paymentdesigns.example.js +76 -0
- package/dist/examples/paymentdesigns.example.js.map +1 -0
- package/dist/examples/performances.example.d.ts +1 -0
- package/dist/examples/performances.example.js +72 -0
- package/dist/examples/performances.example.js.map +1 -0
- package/dist/examples/promocodes.example.d.ts +1 -0
- package/dist/examples/promocodes.example.js +72 -0
- package/dist/examples/promocodes.example.js.map +1 -0
- package/dist/model/advertisementCredit.d.ts +26 -0
- package/dist/model/advertisementCredit.js +78 -0
- package/dist/model/advertisementCredit.js.map +1 -0
- package/dist/model/advertisementCreditBroadcast.d.ts +37 -0
- package/dist/model/advertisementCreditBroadcast.js +118 -0
- package/dist/model/advertisementCreditBroadcast.js.map +1 -0
- package/dist/model/advertisementCreditScan.d.ts +37 -0
- package/dist/model/advertisementCreditScan.js +128 -0
- package/dist/model/advertisementCreditScan.js.map +1 -0
- package/dist/model/agreement.d.ts +31 -0
- package/dist/model/agreement.js +103 -0
- package/dist/model/agreement.js.map +1 -0
- package/dist/model/alert.d.ts +22 -0
- package/dist/model/alert.js +58 -0
- package/dist/model/alert.js.map +1 -0
- package/dist/model/announcement.d.ts +20 -0
- package/dist/model/announcement.js +48 -0
- package/dist/model/announcement.js.map +1 -0
- package/dist/model/applicableTerminals.d.ts +13 -0
- package/dist/model/applicableTerminals.js +12 -0
- package/dist/model/applicableTerminals.js.map +1 -0
- package/dist/model/applicableTerminalsAnyOf.d.ts +3 -0
- package/dist/model/applicableTerminalsAnyOf.js +8 -0
- package/dist/model/applicableTerminalsAnyOf.js.map +1 -0
- package/dist/model/applicableTerminalsAnyOf1.d.ts +3 -0
- package/dist/model/applicableTerminalsAnyOf1.js +8 -0
- package/dist/model/applicableTerminalsAnyOf1.js.map +1 -0
- package/dist/model/applicableTerminalsAnyOf2.d.ts +3 -0
- package/dist/model/applicableTerminalsAnyOf2.js +8 -0
- package/dist/model/applicableTerminalsAnyOf2.js.map +1 -0
- package/dist/model/applicableTerminalsAnyOf3.d.ts +3 -0
- package/dist/model/applicableTerminalsAnyOf3.js +8 -0
- package/dist/model/applicableTerminalsAnyOf3.js.map +1 -0
- package/dist/model/authError.d.ts +18 -0
- package/dist/model/authError.js +38 -0
- package/dist/model/authError.js.map +1 -0
- package/dist/model/availablePhoneNumbersRequest.d.ts +15 -0
- package/dist/model/availablePhoneNumbersRequest.js +23 -0
- package/dist/model/availablePhoneNumbersRequest.js.map +1 -0
- package/dist/model/clickFunnelAmount.d.ts +15 -0
- package/dist/model/clickFunnelAmount.js +23 -0
- package/dist/model/clickFunnelAmount.js.map +1 -0
- package/dist/model/clickFunnelContact.d.ts +51 -0
- package/dist/model/clickFunnelContact.js +198 -0
- package/dist/model/clickFunnelContact.js.map +1 -0
- package/dist/model/clickFunnelContactProfile.d.ts +48 -0
- package/dist/model/clickFunnelContactProfile.js +188 -0
- package/dist/model/clickFunnelContactProfile.js.map +1 -0
- package/dist/model/clickFunnelEvent.d.ts +16 -0
- package/dist/model/clickFunnelEvent.js +23 -0
- package/dist/model/clickFunnelEvent.js.map +1 -0
- package/dist/model/clickFunnelOriginalAmount.d.ts +15 -0
- package/dist/model/clickFunnelOriginalAmount.js +23 -0
- package/dist/model/clickFunnelOriginalAmount.js.map +1 -0
- package/dist/model/clickFunnelProduct.d.ts +42 -0
- package/dist/model/clickFunnelProduct.js +153 -0
- package/dist/model/clickFunnelProduct.js.map +1 -0
- package/dist/model/clickFunnelPurchase.d.ts +41 -0
- package/dist/model/clickFunnelPurchase.js +138 -0
- package/dist/model/clickFunnelPurchase.js.map +1 -0
- package/dist/model/createStaticVoucherCampaign.d.ts +27 -0
- package/dist/model/createStaticVoucherCampaign.js +83 -0
- package/dist/model/createStaticVoucherCampaign.js.map +1 -0
- package/dist/model/createStaticVoucherCampaignWithVoucher.d.ts +27 -0
- package/dist/model/createStaticVoucherCampaignWithVoucher.js +83 -0
- package/dist/model/createStaticVoucherCampaignWithVoucher.js.map +1 -0
- package/dist/model/createStaticVoucherCampaignWithVoucherWithCSV.d.ts +27 -0
- package/dist/model/createStaticVoucherCampaignWithVoucherWithCSV.js +83 -0
- package/dist/model/createStaticVoucherCampaignWithVoucherWithCSV.js.map +1 -0
- package/dist/model/dashboardWidget.d.ts +28 -0
- package/dist/model/dashboardWidget.js +88 -0
- package/dist/model/dashboardWidget.js.map +1 -0
- package/dist/model/duplicateRowFound.d.ts +18 -0
- package/dist/model/duplicateRowFound.js +38 -0
- package/dist/model/duplicateRowFound.js.map +1 -0
- package/dist/model/dynamicVoucher.d.ts +47 -0
- package/dist/model/dynamicVoucher.js +178 -0
- package/dist/model/dynamicVoucher.js.map +1 -0
- package/dist/model/dynamicVoucherBroadcast.d.ts +37 -0
- package/dist/model/dynamicVoucherBroadcast.js +118 -0
- package/dist/model/dynamicVoucherBroadcast.js.map +1 -0
- package/dist/model/employee.d.ts +27 -0
- package/dist/model/employee.js +83 -0
- package/dist/model/employee.js.map +1 -0
- package/dist/model/employeeAPIKey.d.ts +22 -0
- package/dist/model/employeeAPIKey.js +58 -0
- package/dist/model/employeeAPIKey.js.map +1 -0
- package/dist/model/employeeActivityLog.d.ts +20 -0
- package/dist/model/employeeActivityLog.js +48 -0
- package/dist/model/employeeActivityLog.js.map +1 -0
- package/dist/model/employeeAlert.d.ts +22 -0
- package/dist/model/employeeAlert.js +58 -0
- package/dist/model/employeeAlert.js.map +1 -0
- package/dist/model/entityTooLarge.d.ts +18 -0
- package/dist/model/entityTooLarge.js +38 -0
- package/dist/model/entityTooLarge.js.map +1 -0
- package/dist/model/exportDataFile.d.ts +23 -0
- package/dist/model/exportDataFile.js +63 -0
- package/dist/model/exportDataFile.js.map +1 -0
- package/dist/model/falsumError.d.ts +16 -0
- package/dist/model/falsumError.js +23 -0
- package/dist/model/falsumError.js.map +1 -0
- package/dist/model/falsumField.d.ts +16 -0
- package/dist/model/falsumField.js +28 -0
- package/dist/model/falsumField.js.map +1 -0
- package/dist/model/feature.d.ts +22 -0
- package/dist/model/feature.js +58 -0
- package/dist/model/feature.js.map +1 -0
- package/dist/model/forbiddenRequest.d.ts +18 -0
- package/dist/model/forbiddenRequest.js +38 -0
- package/dist/model/forbiddenRequest.js.map +1 -0
- package/dist/model/foreignKeyDoesNotExist.d.ts +18 -0
- package/dist/model/foreignKeyDoesNotExist.js +38 -0
- package/dist/model/foreignKeyDoesNotExist.js.map +1 -0
- package/dist/model/helpDeskRequest.d.ts +23 -0
- package/dist/model/helpDeskRequest.js +63 -0
- package/dist/model/helpDeskRequest.js.map +1 -0
- package/dist/model/importedList.d.ts +21 -0
- package/dist/model/importedList.js +53 -0
- package/dist/model/importedList.js.map +1 -0
- package/dist/model/importedListRecipient.d.ts +21 -0
- package/dist/model/importedListRecipient.js +53 -0
- package/dist/model/importedListRecipient.js.map +1 -0
- package/dist/model/inboundSMS.d.ts +47 -0
- package/dist/model/inboundSMS.js +183 -0
- package/dist/model/inboundSMS.js.map +1 -0
- package/dist/model/inlineObject.d.ts +14 -0
- package/dist/model/inlineObject.js +18 -0
- package/dist/model/inlineObject.js.map +1 -0
- package/dist/model/inlineObject1.d.ts +14 -0
- package/dist/model/inlineObject1.js +18 -0
- package/dist/model/inlineObject1.js.map +1 -0
- package/dist/model/inlineObject10.d.ts +15 -0
- package/dist/model/inlineObject10.js +23 -0
- package/dist/model/inlineObject10.js.map +1 -0
- package/dist/model/inlineObject11.d.ts +15 -0
- package/dist/model/inlineObject11.js +23 -0
- package/dist/model/inlineObject11.js.map +1 -0
- package/dist/model/inlineObject12.d.ts +15 -0
- package/dist/model/inlineObject12.js +23 -0
- package/dist/model/inlineObject12.js.map +1 -0
- package/dist/model/inlineObject13.d.ts +15 -0
- package/dist/model/inlineObject13.js +23 -0
- package/dist/model/inlineObject13.js.map +1 -0
- package/dist/model/inlineObject14.d.ts +15 -0
- package/dist/model/inlineObject14.js +23 -0
- package/dist/model/inlineObject14.js.map +1 -0
- package/dist/model/inlineObject15.d.ts +20 -0
- package/dist/model/inlineObject15.js +48 -0
- package/dist/model/inlineObject15.js.map +1 -0
- package/dist/model/inlineObject16.d.ts +19 -0
- package/dist/model/inlineObject16.js +43 -0
- package/dist/model/inlineObject16.js.map +1 -0
- package/dist/model/inlineObject17.d.ts +18 -0
- package/dist/model/inlineObject17.js +38 -0
- package/dist/model/inlineObject17.js.map +1 -0
- package/dist/model/inlineObject18.d.ts +19 -0
- package/dist/model/inlineObject18.js +43 -0
- package/dist/model/inlineObject18.js.map +1 -0
- package/dist/model/inlineObject19.d.ts +18 -0
- package/dist/model/inlineObject19.js +38 -0
- package/dist/model/inlineObject19.js.map +1 -0
- package/dist/model/inlineObject2.d.ts +14 -0
- package/dist/model/inlineObject2.js +18 -0
- package/dist/model/inlineObject2.js.map +1 -0
- package/dist/model/inlineObject20.d.ts +19 -0
- package/dist/model/inlineObject20.js +43 -0
- package/dist/model/inlineObject20.js.map +1 -0
- package/dist/model/inlineObject21.d.ts +21 -0
- package/dist/model/inlineObject21.js +53 -0
- package/dist/model/inlineObject21.js.map +1 -0
- package/dist/model/inlineObject22.d.ts +14 -0
- package/dist/model/inlineObject22.js +18 -0
- package/dist/model/inlineObject22.js.map +1 -0
- package/dist/model/inlineObject23.d.ts +14 -0
- package/dist/model/inlineObject23.js +18 -0
- package/dist/model/inlineObject23.js.map +1 -0
- package/dist/model/inlineObject24.d.ts +16 -0
- package/dist/model/inlineObject24.js +28 -0
- package/dist/model/inlineObject24.js.map +1 -0
- package/dist/model/inlineObject25.d.ts +18 -0
- package/dist/model/inlineObject25.js +38 -0
- package/dist/model/inlineObject25.js.map +1 -0
- package/dist/model/inlineObject26.d.ts +14 -0
- package/dist/model/inlineObject26.js +18 -0
- package/dist/model/inlineObject26.js.map +1 -0
- package/dist/model/inlineObject27.d.ts +14 -0
- package/dist/model/inlineObject27.js +18 -0
- package/dist/model/inlineObject27.js.map +1 -0
- package/dist/model/inlineObject28.d.ts +16 -0
- package/dist/model/inlineObject28.js +28 -0
- package/dist/model/inlineObject28.js.map +1 -0
- package/dist/model/inlineObject29.d.ts +17 -0
- package/dist/model/inlineObject29.js +33 -0
- package/dist/model/inlineObject29.js.map +1 -0
- package/dist/model/inlineObject3.d.ts +14 -0
- package/dist/model/inlineObject3.js +18 -0
- package/dist/model/inlineObject3.js.map +1 -0
- package/dist/model/inlineObject30.d.ts +16 -0
- package/dist/model/inlineObject30.js +28 -0
- package/dist/model/inlineObject30.js.map +1 -0
- package/dist/model/inlineObject31.d.ts +14 -0
- package/dist/model/inlineObject31.js +18 -0
- package/dist/model/inlineObject31.js.map +1 -0
- package/dist/model/inlineObject32.d.ts +14 -0
- package/dist/model/inlineObject32.js +18 -0
- package/dist/model/inlineObject32.js.map +1 -0
- package/dist/model/inlineObject33.d.ts +14 -0
- package/dist/model/inlineObject33.js +18 -0
- package/dist/model/inlineObject33.js.map +1 -0
- package/dist/model/inlineObject34.d.ts +16 -0
- package/dist/model/inlineObject34.js +28 -0
- package/dist/model/inlineObject34.js.map +1 -0
- package/dist/model/inlineObject35.d.ts +16 -0
- package/dist/model/inlineObject35.js +28 -0
- package/dist/model/inlineObject35.js.map +1 -0
- package/dist/model/inlineObject36.d.ts +16 -0
- package/dist/model/inlineObject36.js +28 -0
- package/dist/model/inlineObject36.js.map +1 -0
- package/dist/model/inlineObject37.d.ts +16 -0
- package/dist/model/inlineObject37.js +28 -0
- package/dist/model/inlineObject37.js.map +1 -0
- package/dist/model/inlineObject38.d.ts +16 -0
- package/dist/model/inlineObject38.js +28 -0
- package/dist/model/inlineObject38.js.map +1 -0
- package/dist/model/inlineObject39.d.ts +16 -0
- package/dist/model/inlineObject39.js +28 -0
- package/dist/model/inlineObject39.js.map +1 -0
- package/dist/model/inlineObject4.d.ts +15 -0
- package/dist/model/inlineObject4.js +23 -0
- package/dist/model/inlineObject4.js.map +1 -0
- package/dist/model/inlineObject40.d.ts +16 -0
- package/dist/model/inlineObject40.js +28 -0
- package/dist/model/inlineObject40.js.map +1 -0
- package/dist/model/inlineObject41.d.ts +16 -0
- package/dist/model/inlineObject41.js +28 -0
- package/dist/model/inlineObject41.js.map +1 -0
- package/dist/model/inlineObject42.d.ts +16 -0
- package/dist/model/inlineObject42.js +28 -0
- package/dist/model/inlineObject42.js.map +1 -0
- package/dist/model/inlineObject43.d.ts +16 -0
- package/dist/model/inlineObject43.js +28 -0
- package/dist/model/inlineObject43.js.map +1 -0
- package/dist/model/inlineObject44.d.ts +16 -0
- package/dist/model/inlineObject44.js +28 -0
- package/dist/model/inlineObject44.js.map +1 -0
- package/dist/model/inlineObject45.d.ts +16 -0
- package/dist/model/inlineObject45.js +28 -0
- package/dist/model/inlineObject45.js.map +1 -0
- package/dist/model/inlineObject46.d.ts +16 -0
- package/dist/model/inlineObject46.js +28 -0
- package/dist/model/inlineObject46.js.map +1 -0
- package/dist/model/inlineObject47.d.ts +16 -0
- package/dist/model/inlineObject47.js +28 -0
- package/dist/model/inlineObject47.js.map +1 -0
- package/dist/model/inlineObject48.d.ts +16 -0
- package/dist/model/inlineObject48.js +28 -0
- package/dist/model/inlineObject48.js.map +1 -0
- package/dist/model/inlineObject49.d.ts +16 -0
- package/dist/model/inlineObject49.js +28 -0
- package/dist/model/inlineObject49.js.map +1 -0
- package/dist/model/inlineObject5.d.ts +14 -0
- package/dist/model/inlineObject5.js +18 -0
- package/dist/model/inlineObject5.js.map +1 -0
- package/dist/model/inlineObject50.d.ts +16 -0
- package/dist/model/inlineObject50.js +28 -0
- package/dist/model/inlineObject50.js.map +1 -0
- package/dist/model/inlineObject51.d.ts +25 -0
- package/dist/model/inlineObject51.js +73 -0
- package/dist/model/inlineObject51.js.map +1 -0
- package/dist/model/inlineObject52.d.ts +14 -0
- package/dist/model/inlineObject52.js +18 -0
- package/dist/model/inlineObject52.js.map +1 -0
- package/dist/model/inlineObject53.d.ts +25 -0
- package/dist/model/inlineObject53.js +73 -0
- package/dist/model/inlineObject53.js.map +1 -0
- package/dist/model/inlineObject54.d.ts +25 -0
- package/dist/model/inlineObject54.js +73 -0
- package/dist/model/inlineObject54.js.map +1 -0
- package/dist/model/inlineObject55.d.ts +24 -0
- package/dist/model/inlineObject55.js +68 -0
- package/dist/model/inlineObject55.js.map +1 -0
- package/dist/model/inlineObject56.d.ts +15 -0
- package/dist/model/inlineObject56.js +23 -0
- package/dist/model/inlineObject56.js.map +1 -0
- package/dist/model/inlineObject57.d.ts +15 -0
- package/dist/model/inlineObject57.js +23 -0
- package/dist/model/inlineObject57.js.map +1 -0
- package/dist/model/inlineObject58.d.ts +16 -0
- package/dist/model/inlineObject58.js +28 -0
- package/dist/model/inlineObject58.js.map +1 -0
- package/dist/model/inlineObject59.d.ts +16 -0
- package/dist/model/inlineObject59.js +28 -0
- package/dist/model/inlineObject59.js.map +1 -0
- package/dist/model/inlineObject6.d.ts +14 -0
- package/dist/model/inlineObject6.js +18 -0
- package/dist/model/inlineObject6.js.map +1 -0
- package/dist/model/inlineObject60.d.ts +16 -0
- package/dist/model/inlineObject60.js +28 -0
- package/dist/model/inlineObject60.js.map +1 -0
- package/dist/model/inlineObject61.d.ts +15 -0
- package/dist/model/inlineObject61.js +23 -0
- package/dist/model/inlineObject61.js.map +1 -0
- package/dist/model/inlineObject62.d.ts +15 -0
- package/dist/model/inlineObject62.js +23 -0
- package/dist/model/inlineObject62.js.map +1 -0
- package/dist/model/inlineObject63.d.ts +15 -0
- package/dist/model/inlineObject63.js +23 -0
- package/dist/model/inlineObject63.js.map +1 -0
- package/dist/model/inlineObject64.d.ts +45 -0
- package/dist/model/inlineObject64.js +173 -0
- package/dist/model/inlineObject64.js.map +1 -0
- package/dist/model/inlineObject65.d.ts +17 -0
- package/dist/model/inlineObject65.js +33 -0
- package/dist/model/inlineObject65.js.map +1 -0
- package/dist/model/inlineObject66.d.ts +17 -0
- package/dist/model/inlineObject66.js +33 -0
- package/dist/model/inlineObject66.js.map +1 -0
- package/dist/model/inlineObject67.d.ts +15 -0
- package/dist/model/inlineObject67.js +23 -0
- package/dist/model/inlineObject67.js.map +1 -0
- package/dist/model/inlineObject68.d.ts +29 -0
- package/dist/model/inlineObject68.js +93 -0
- package/dist/model/inlineObject68.js.map +1 -0
- package/dist/model/inlineObject69.d.ts +29 -0
- package/dist/model/inlineObject69.js +93 -0
- package/dist/model/inlineObject69.js.map +1 -0
- package/dist/model/inlineObject7.d.ts +14 -0
- package/dist/model/inlineObject7.js +18 -0
- package/dist/model/inlineObject7.js.map +1 -0
- package/dist/model/inlineObject8.d.ts +16 -0
- package/dist/model/inlineObject8.js +28 -0
- package/dist/model/inlineObject8.js.map +1 -0
- package/dist/model/inlineObject9.d.ts +15 -0
- package/dist/model/inlineObject9.js +23 -0
- package/dist/model/inlineObject9.js.map +1 -0
- package/dist/model/inlineResponse200.d.ts +15 -0
- package/dist/model/inlineResponse200.js +23 -0
- package/dist/model/inlineResponse200.js.map +1 -0
- package/dist/model/inlineResponse2001.d.ts +19 -0
- package/dist/model/inlineResponse2001.js +38 -0
- package/dist/model/inlineResponse2001.js.map +1 -0
- package/dist/model/inlineResponse20010.d.ts +17 -0
- package/dist/model/inlineResponse20010.js +28 -0
- package/dist/model/inlineResponse20010.js.map +1 -0
- package/dist/model/inlineResponse20011.d.ts +15 -0
- package/dist/model/inlineResponse20011.js +23 -0
- package/dist/model/inlineResponse20011.js.map +1 -0
- package/dist/model/inlineResponse20012.d.ts +26 -0
- package/dist/model/inlineResponse20012.js +73 -0
- package/dist/model/inlineResponse20012.js.map +1 -0
- package/dist/model/inlineResponse20013.d.ts +27 -0
- package/dist/model/inlineResponse20013.js +83 -0
- package/dist/model/inlineResponse20013.js.map +1 -0
- package/dist/model/inlineResponse20014.d.ts +16 -0
- package/dist/model/inlineResponse20014.js +28 -0
- package/dist/model/inlineResponse20014.js.map +1 -0
- package/dist/model/inlineResponse2002.d.ts +14 -0
- package/dist/model/inlineResponse2002.js +18 -0
- package/dist/model/inlineResponse2002.js.map +1 -0
- package/dist/model/inlineResponse2003.d.ts +14 -0
- package/dist/model/inlineResponse2003.js +18 -0
- package/dist/model/inlineResponse2003.js.map +1 -0
- package/dist/model/inlineResponse2004.d.ts +16 -0
- package/dist/model/inlineResponse2004.js +28 -0
- package/dist/model/inlineResponse2004.js.map +1 -0
- package/dist/model/inlineResponse2005.d.ts +16 -0
- package/dist/model/inlineResponse2005.js +23 -0
- package/dist/model/inlineResponse2005.js.map +1 -0
- package/dist/model/inlineResponse2006.d.ts +25 -0
- package/dist/model/inlineResponse2006.js +73 -0
- package/dist/model/inlineResponse2006.js.map +1 -0
- package/dist/model/inlineResponse2007.d.ts +17 -0
- package/dist/model/inlineResponse2007.js +28 -0
- package/dist/model/inlineResponse2007.js.map +1 -0
- package/dist/model/inlineResponse2008.d.ts +14 -0
- package/dist/model/inlineResponse2008.js +18 -0
- package/dist/model/inlineResponse2008.js.map +1 -0
- package/dist/model/inlineResponse2009.d.ts +17 -0
- package/dist/model/inlineResponse2009.js +28 -0
- package/dist/model/inlineResponse2009.js.map +1 -0
- package/dist/model/internalServerError.d.ts +18 -0
- package/dist/model/internalServerError.js +38 -0
- package/dist/model/internalServerError.js.map +1 -0
- package/dist/model/ledgerEntry.d.ts +39 -0
- package/dist/model/ledgerEntry.js +138 -0
- package/dist/model/ledgerEntry.js.map +1 -0
- package/dist/model/linkBook.d.ts +23 -0
- package/dist/model/linkBook.js +63 -0
- package/dist/model/linkBook.js.map +1 -0
- package/dist/model/linkBookSection.d.ts +19 -0
- package/dist/model/linkBookSection.js +43 -0
- package/dist/model/linkBookSection.js.map +1 -0
- package/dist/model/mSMemberHistory.d.ts +24 -0
- package/dist/model/mSMemberHistory.js +68 -0
- package/dist/model/mSMemberHistory.js.map +1 -0
- package/dist/model/mSMemberHistoryPagination.d.ts +17 -0
- package/dist/model/mSMemberHistoryPagination.js +28 -0
- package/dist/model/mSMemberHistoryPagination.js.map +1 -0
- package/dist/model/mSMemberRedemption.d.ts +23 -0
- package/dist/model/mSMemberRedemption.js +63 -0
- package/dist/model/mSMemberRedemption.js.map +1 -0
- package/dist/model/mSMemberRedemptionPagination.d.ts +17 -0
- package/dist/model/mSMemberRedemptionPagination.js +28 -0
- package/dist/model/mSMemberRedemptionPagination.js.map +1 -0
- package/dist/model/mSMembershipTierHistory.d.ts +23 -0
- package/dist/model/mSMembershipTierHistory.js +63 -0
- package/dist/model/mSMembershipTierHistory.js.map +1 -0
- package/dist/model/mSMembershipTierHistoryPagination.d.ts +17 -0
- package/dist/model/mSMembershipTierHistoryPagination.js +28 -0
- package/dist/model/mSMembershipTierHistoryPagination.js.map +1 -0
- package/dist/model/mSMembershipTierRedemption.d.ts +24 -0
- package/dist/model/mSMembershipTierRedemption.js +68 -0
- package/dist/model/mSMembershipTierRedemption.js.map +1 -0
- package/dist/model/mSMembershipTierRedemptionPagination.d.ts +17 -0
- package/dist/model/mSMembershipTierRedemptionPagination.js +28 -0
- package/dist/model/mSMembershipTierRedemptionPagination.js.map +1 -0
- package/dist/model/mSMerchantCreditHistory.d.ts +21 -0
- package/dist/model/mSMerchantCreditHistory.js +53 -0
- package/dist/model/mSMerchantCreditHistory.js.map +1 -0
- package/dist/model/mSMerchantCreditHistoryPagination.d.ts +17 -0
- package/dist/model/mSMerchantCreditHistoryPagination.js +28 -0
- package/dist/model/mSMerchantCreditHistoryPagination.js.map +1 -0
- package/dist/model/mSMerchantCreditRedemption.d.ts +23 -0
- package/dist/model/mSMerchantCreditRedemption.js +63 -0
- package/dist/model/mSMerchantCreditRedemption.js.map +1 -0
- package/dist/model/mSMerchantCreditRedemptionPagination.d.ts +17 -0
- package/dist/model/mSMerchantCreditRedemptionPagination.js +28 -0
- package/dist/model/mSMerchantCreditRedemptionPagination.js.map +1 -0
- package/dist/model/mediaFile.d.ts +23 -0
- package/dist/model/mediaFile.js +63 -0
- package/dist/model/mediaFile.js.map +1 -0
- package/dist/model/member.d.ts +25 -0
- package/dist/model/member.js +73 -0
- package/dist/model/member.js.map +1 -0
- package/dist/model/memberSearch.d.ts +17 -0
- package/dist/model/memberSearch.js +33 -0
- package/dist/model/memberSearch.js.map +1 -0
- package/dist/model/merchant.d.ts +32 -0
- package/dist/model/merchant.js +108 -0
- package/dist/model/merchant.js.map +1 -0
- package/dist/model/merchantCreditSearch.d.ts +17 -0
- package/dist/model/merchantCreditSearch.js +33 -0
- package/dist/model/merchantCreditSearch.js.map +1 -0
- package/dist/model/merchantNotInitialized.d.ts +18 -0
- package/dist/model/merchantNotInitialized.js +38 -0
- package/dist/model/merchantNotInitialized.js.map +1 -0
- package/dist/model/merchantURL.d.ts +20 -0
- package/dist/model/merchantURL.js +48 -0
- package/dist/model/merchantURL.js.map +1 -0
- package/dist/model/message.d.ts +22 -0
- package/dist/model/message.js +53 -0
- package/dist/model/message.js.map +1 -0
- package/dist/model/models.d.ts +324 -0
- package/dist/model/models.js +1050 -0
- package/dist/model/models.js.map +1 -0
- package/dist/model/moduleError.d.ts +34 -0
- package/dist/model/moduleError.js +118 -0
- package/dist/model/moduleError.js.map +1 -0
- package/dist/model/newsArticle.d.ts +23 -0
- package/dist/model/newsArticle.js +63 -0
- package/dist/model/newsArticle.js.map +1 -0
- package/dist/model/optInList.d.ts +29 -0
- package/dist/model/optInList.js +93 -0
- package/dist/model/optInList.js.map +1 -0
- package/dist/model/optInListSource.d.ts +21 -0
- package/dist/model/optInListSource.js +53 -0
- package/dist/model/optInListSource.js.map +1 -0
- package/dist/model/optInListSubscriber.d.ts +27 -0
- package/dist/model/optInListSubscriber.js +78 -0
- package/dist/model/optInListSubscriber.js.map +1 -0
- package/dist/model/outboundSMS.d.ts +35 -0
- package/dist/model/outboundSMS.js +123 -0
- package/dist/model/outboundSMS.js.map +1 -0
- package/dist/model/paginatedWTMembers.d.ts +17 -0
- package/dist/model/paginatedWTMembers.js +28 -0
- package/dist/model/paginatedWTMembers.js.map +1 -0
- package/dist/model/paginatedWTMerchantCredits.d.ts +17 -0
- package/dist/model/paginatedWTMerchantCredits.js +28 -0
- package/dist/model/paginatedWTMerchantCredits.js.map +1 -0
- package/dist/model/paginationRequestWithIDAndWithoutSortOptions.d.ts +16 -0
- package/dist/model/paginationRequestWithIDAndWithoutSortOptions.js +28 -0
- package/dist/model/paginationRequestWithIDAndWithoutSortOptions.js.map +1 -0
- package/dist/model/paginationRequestWithSortOptions.d.ts +23 -0
- package/dist/model/paginationRequestWithSortOptions.js +44 -0
- package/dist/model/paginationRequestWithSortOptions.js.map +1 -0
- package/dist/model/paymentDesign.d.ts +32 -0
- package/dist/model/paymentDesign.js +108 -0
- package/dist/model/paymentDesign.js.map +1 -0
- package/dist/model/performance.d.ts +26 -0
- package/dist/model/performance.js +78 -0
- package/dist/model/performance.js.map +1 -0
- package/dist/model/phoneNumber.d.ts +35 -0
- package/dist/model/phoneNumber.js +123 -0
- package/dist/model/phoneNumber.js.map +1 -0
- package/dist/model/pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherSourceID.d.ts +26 -0
- package/dist/model/pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherSourceID.js +78 -0
- package/dist/model/pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherSourceID.js.map +1 -0
- package/dist/model/pickMSEmployeeAPIKeyCreateParamsExcludeKeyofMSEmployeeAPIKeyCreateParamsEmployeeID.d.ts +15 -0
- package/dist/model/pickMSEmployeeAPIKeyCreateParamsExcludeKeyofMSEmployeeAPIKeyCreateParamsEmployeeID.js +23 -0
- package/dist/model/pickMSEmployeeAPIKeyCreateParamsExcludeKeyofMSEmployeeAPIKeyCreateParamsEmployeeID.js.map +1 -0
- package/dist/model/pickMSEmployeeAPIKeyUpdateParamsExcludeKeyofMSEmployeeAPIKeyUpdateParamsId.d.ts +15 -0
- package/dist/model/pickMSEmployeeAPIKeyUpdateParamsExcludeKeyofMSEmployeeAPIKeyUpdateParamsId.js +23 -0
- package/dist/model/pickMSEmployeeAPIKeyUpdateParamsExcludeKeyofMSEmployeeAPIKeyUpdateParamsId.js.map +1 -0
- package/dist/model/pickMSMemberCreationParamsExcludeKeyofMSMemberCreationParamsMemberIdentifier.d.ts +18 -0
- package/dist/model/pickMSMemberCreationParamsExcludeKeyofMSMemberCreationParamsMemberIdentifier.js +38 -0
- package/dist/model/pickMSMemberCreationParamsExcludeKeyofMSMemberCreationParamsMemberIdentifier.js.map +1 -0
- package/dist/model/pickMSMemberExcludeKeyofMSMemberMemberIdentifier.d.ts +23 -0
- package/dist/model/pickMSMemberExcludeKeyofMSMemberMemberIdentifier.js +63 -0
- package/dist/model/pickMSMemberExcludeKeyofMSMemberMemberIdentifier.js.map +1 -0
- package/dist/model/pickMSMerchantCreditCreationParamsExcludeKeyofMSMerchantCreditCreationParamsMemberIdentifier.d.ts +15 -0
- package/dist/model/pickMSMerchantCreditCreationParamsExcludeKeyofMSMerchantCreditCreationParamsMemberIdentifier.js +23 -0
- package/dist/model/pickMSMerchantCreditCreationParamsExcludeKeyofMSMerchantCreditCreationParamsMemberIdentifier.js.map +1 -0
- package/dist/model/pickMSMerchantCreditExcludeKeyofMSMerchantCreditMemberIdentifier.d.ts +20 -0
- package/dist/model/pickMSMerchantCreditExcludeKeyofMSMerchantCreditMemberIdentifier.js +48 -0
- package/dist/model/pickMSMerchantCreditExcludeKeyofMSMerchantCreditMemberIdentifier.js.map +1 -0
- package/dist/model/pickPaginationRequestWithoutSortOptionsExcludeKeyofPaginationRequestWithoutSortOptionsIsArchiveIncluded.d.ts +15 -0
- package/dist/model/pickPaginationRequestWithoutSortOptionsExcludeKeyofPaginationRequestWithoutSortOptionsIsArchiveIncluded.js +23 -0
- package/dist/model/pickPaginationRequestWithoutSortOptionsExcludeKeyofPaginationRequestWithoutSortOptionsIsArchiveIncluded.js.map +1 -0
- package/dist/model/pickSSImportedListUpdateParamsExcludeKeyofSSImportedListUpdateParamsId.d.ts +17 -0
- package/dist/model/pickSSImportedListUpdateParamsExcludeKeyofSSImportedListUpdateParamsId.js +33 -0
- package/dist/model/pickSSImportedListUpdateParamsExcludeKeyofSSImportedListUpdateParamsId.js.map +1 -0
- package/dist/model/pickSSMobileNumberUpdateParamsExcludeKeyofSSMobileNumberUpdateParamsId.d.ts +25 -0
- package/dist/model/pickSSMobileNumberUpdateParamsExcludeKeyofSSMobileNumberUpdateParamsId.js +73 -0
- package/dist/model/pickSSMobileNumberUpdateParamsExcludeKeyofSSMobileNumberUpdateParamsId.js.map +1 -0
- package/dist/model/pickSSOptInListCreateParamsExcludeKeyofSSOptInListCreateParamsEmployeeID.d.ts +24 -0
- package/dist/model/pickSSOptInListCreateParamsExcludeKeyofSSOptInListCreateParamsEmployeeID.js +68 -0
- package/dist/model/pickSSOptInListCreateParamsExcludeKeyofSSOptInListCreateParamsEmployeeID.js.map +1 -0
- package/dist/model/pickSSOptInListMemberCreateParamsExcludeKeyofSSOptInListMemberCreateParamsMerchantCreatedAtOrMaxSMSCount.d.ts +19 -0
- package/dist/model/pickSSOptInListMemberCreateParamsExcludeKeyofSSOptInListMemberCreateParamsMerchantCreatedAtOrMaxSMSCount.js +43 -0
- package/dist/model/pickSSOptInListMemberCreateParamsExcludeKeyofSSOptInListMemberCreateParamsMerchantCreatedAtOrMaxSMSCount.js.map +1 -0
- package/dist/model/pickSSOptInListUpdateParamsExcludeKeyofSSOptInListUpdateParamsId.d.ts +25 -0
- package/dist/model/pickSSOptInListUpdateParamsExcludeKeyofSSOptInListUpdateParamsId.js +73 -0
- package/dist/model/pickSSOptInListUpdateParamsExcludeKeyofSSOptInListUpdateParamsId.js.map +1 -0
- package/dist/model/pickSSOptInSourceUpdateParamsExcludeKeyofSSOptInSourceUpdateParamsId.d.ts +16 -0
- package/dist/model/pickSSOptInSourceUpdateParamsExcludeKeyofSSOptInSourceUpdateParamsId.js +28 -0
- package/dist/model/pickSSOptInSourceUpdateParamsExcludeKeyofSSOptInSourceUpdateParamsId.js.map +1 -0
- package/dist/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhone.d.ts +34 -0
- package/dist/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhone.js +118 -0
- package/dist/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhone.js.map +1 -0
- package/dist/model/pickVSAdvertisementCreditCreateParamsExcludeKeyofVSAdvertisementCreditCreateParamsEmployeeID.d.ts +18 -0
- package/dist/model/pickVSAdvertisementCreditCreateParamsExcludeKeyofVSAdvertisementCreditCreateParamsEmployeeID.js +38 -0
- package/dist/model/pickVSAdvertisementCreditCreateParamsExcludeKeyofVSAdvertisementCreditCreateParamsEmployeeID.js.map +1 -0
- package/dist/model/pickVSAdvertisementCreditScanExcludeKeyofVSAdvertisementCreditScanRedeemedAtOrRefundedAt.d.ts +31 -0
- package/dist/model/pickVSAdvertisementCreditScanExcludeKeyofVSAdvertisementCreditScanRedeemedAtOrRefundedAt.js +98 -0
- package/dist/model/pickVSAdvertisementCreditScanExcludeKeyofVSAdvertisementCreditScanRedeemedAtOrRefundedAt.js.map +1 -0
- package/dist/model/pickVSAdvertisementCreditUpdateParamsExcludeKeyofVSAdvertisementCreditUpdateParamsId.d.ts +18 -0
- package/dist/model/pickVSAdvertisementCreditUpdateParamsExcludeKeyofVSAdvertisementCreditUpdateParamsId.js +38 -0
- package/dist/model/pickVSAdvertisementCreditUpdateParamsExcludeKeyofVSAdvertisementCreditUpdateParamsId.js.map +1 -0
- package/dist/model/pickVSCampaignUpdateParamsExcludeKeyofVSCampaignUpdateParamsStartDateOrExpirationDate.d.ts +26 -0
- package/dist/model/pickVSCampaignUpdateParamsExcludeKeyofVSCampaignUpdateParamsStartDateOrExpirationDate.js +78 -0
- package/dist/model/pickVSCampaignUpdateParamsExcludeKeyofVSCampaignUpdateParamsStartDateOrExpirationDate.js.map +1 -0
- package/dist/model/pickVSDynamicVoucherExcludeKeyofVSDynamicVoucherTemporalDecreaseFrequencyType.d.ts +32 -0
- package/dist/model/pickVSDynamicVoucherExcludeKeyofVSDynamicVoucherTemporalDecreaseFrequencyType.js +108 -0
- package/dist/model/pickVSDynamicVoucherExcludeKeyofVSDynamicVoucherTemporalDecreaseFrequencyType.js.map +1 -0
- package/dist/model/pickVSPaymentDesignCreateParamsExcludeKeyofVSPaymentDesignCreateParamsBackgroundImageURLOrCompanyLogoURLOrEmployeeID.d.ts +24 -0
- package/dist/model/pickVSPaymentDesignCreateParamsExcludeKeyofVSPaymentDesignCreateParamsBackgroundImageURLOrCompanyLogoURLOrEmployeeID.js +68 -0
- package/dist/model/pickVSPaymentDesignCreateParamsExcludeKeyofVSPaymentDesignCreateParamsBackgroundImageURLOrCompanyLogoURLOrEmployeeID.js.map +1 -0
- package/dist/model/pickVSPaymentDesignUpdateParamsExcludeKeyofVSPaymentDesignUpdateParamsId.d.ts +26 -0
- package/dist/model/pickVSPaymentDesignUpdateParamsExcludeKeyofVSPaymentDesignUpdateParamsId.js +78 -0
- package/dist/model/pickVSPaymentDesignUpdateParamsExcludeKeyofVSPaymentDesignUpdateParamsId.js.map +1 -0
- package/dist/model/pickVSStaticVoucherExcludeKeyofVSStaticVoucherRedeemedAtOrRefundedAtOrLastViewedAt.d.ts +36 -0
- package/dist/model/pickVSStaticVoucherExcludeKeyofVSStaticVoucherRedeemedAtOrRefundedAtOrLastViewedAt.js +123 -0
- package/dist/model/pickVSStaticVoucherExcludeKeyofVSStaticVoucherRedeemedAtOrRefundedAtOrLastViewedAt.js.map +1 -0
- package/dist/model/pickWTAdvertisementCreditCreateParamsExcludeKeyofWTAdvertisementCreditCreateParamsEmployeeID.d.ts +18 -0
- package/dist/model/pickWTAdvertisementCreditCreateParamsExcludeKeyofWTAdvertisementCreditCreateParamsEmployeeID.js +38 -0
- package/dist/model/pickWTAdvertisementCreditCreateParamsExcludeKeyofWTAdvertisementCreditCreateParamsEmployeeID.js.map +1 -0
- package/dist/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmail.d.ts +18 -0
- package/dist/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmail.js +38 -0
- package/dist/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmail.js.map +1 -0
- package/dist/model/pickWTMemberMemberIDOrFirstNameOrLastNameOrMembershipTierIDOrPointsAccruedOrMobileNumber.d.ts +19 -0
- package/dist/model/pickWTMemberMemberIDOrFirstNameOrLastNameOrMembershipTierIDOrPointsAccruedOrMobileNumber.js +43 -0
- package/dist/model/pickWTMemberMemberIDOrFirstNameOrLastNameOrMembershipTierIDOrPointsAccruedOrMobileNumber.js.map +1 -0
- package/dist/model/pickWTMerchantCreditMemberIDOrCreditAmountOrMobileNumber.d.ts +16 -0
- package/dist/model/pickWTMerchantCreditMemberIDOrCreditAmountOrMobileNumber.js +28 -0
- package/dist/model/pickWTMerchantCreditMemberIDOrCreditAmountOrMobileNumber.js.map +1 -0
- package/dist/model/pickWTMerchantURLUpdateExcludeKeyofWTMerchantURLUpdateUrlID.d.ts +15 -0
- package/dist/model/pickWTMerchantURLUpdateExcludeKeyofWTMerchantURLUpdateUrlID.js +23 -0
- package/dist/model/pickWTMerchantURLUpdateExcludeKeyofWTMerchantURLUpdateUrlID.js.map +1 -0
- package/dist/model/pickWTNewsArticleUpdateParamsExcludeKeyofWTNewsArticleUpdateParamsId.d.ts +18 -0
- package/dist/model/pickWTNewsArticleUpdateParamsExcludeKeyofWTNewsArticleUpdateParamsId.js +38 -0
- package/dist/model/pickWTNewsArticleUpdateParamsExcludeKeyofWTNewsArticleUpdateParamsId.js.map +1 -0
- package/dist/model/pickWTPaymentObjectBroadcastExcludeKeyofWTPaymentObjectBroadcastListTypeOrListID.d.ts +33 -0
- package/dist/model/pickWTPaymentObjectBroadcastExcludeKeyofWTPaymentObjectBroadcastListTypeOrListID.js +103 -0
- package/dist/model/pickWTPaymentObjectBroadcastExcludeKeyofWTPaymentObjectBroadcastListTypeOrListID.js.map +1 -0
- package/dist/model/pickWTStaticVoucherCampaignCreateParamsExcludeKeyofWTStaticVoucherCampaignCreateParamsStartDateTimeOrExpirationDateTime.d.ts +27 -0
- package/dist/model/pickWTStaticVoucherCampaignCreateParamsExcludeKeyofWTStaticVoucherCampaignCreateParamsStartDateTimeOrExpirationDateTime.js +83 -0
- package/dist/model/pickWTStaticVoucherCampaignCreateParamsExcludeKeyofWTStaticVoucherCampaignCreateParamsStartDateTimeOrExpirationDateTime.js.map +1 -0
- package/dist/model/pickWTStaticVoucherCreateParamsExcludeKeyofWTStaticVoucherCreateParamsCampaignID.d.ts +16 -0
- package/dist/model/pickWTStaticVoucherCreateParamsExcludeKeyofWTStaticVoucherCreateParamsCampaignID.js +28 -0
- package/dist/model/pickWTStaticVoucherCreateParamsExcludeKeyofWTStaticVoucherCreateParamsCampaignID.js.map +1 -0
- package/dist/model/plan.d.ts +20 -0
- package/dist/model/plan.js +43 -0
- package/dist/model/plan.js.map +1 -0
- package/dist/model/portalPage.d.ts +52 -0
- package/dist/model/portalPage.js +57 -0
- package/dist/model/portalPage.js.map +1 -0
- package/dist/model/presignedPost.d.ts +16 -0
- package/dist/model/presignedPost.js +23 -0
- package/dist/model/presignedPost.js.map +1 -0
- package/dist/model/presignedPostFields.d.ts +11 -0
- package/dist/model/presignedPostFields.js +23 -0
- package/dist/model/presignedPostFields.js.map +1 -0
- package/dist/model/product.d.ts +22 -0
- package/dist/model/product.js +53 -0
- package/dist/model/product.js.map +1 -0
- package/dist/model/promoCode.d.ts +26 -0
- package/dist/model/promoCode.js +78 -0
- package/dist/model/promoCode.js.map +1 -0
- package/dist/model/reachPerformanceStats.d.ts +24 -0
- package/dist/model/reachPerformanceStats.js +68 -0
- package/dist/model/reachPerformanceStats.js.map +1 -0
- package/dist/model/request.d.ts +67 -0
- package/dist/model/request.js +283 -0
- package/dist/model/request.js.map +1 -0
- package/dist/model/response.d.ts +20 -0
- package/dist/model/response.js +48 -0
- package/dist/model/response.js.map +1 -0
- package/dist/model/role.d.ts +30 -0
- package/dist/model/role.js +88 -0
- package/dist/model/role.js.map +1 -0
- package/dist/model/roleAuditLog.d.ts +25 -0
- package/dist/model/roleAuditLog.js +73 -0
- package/dist/model/roleAuditLog.js.map +1 -0
- package/dist/model/sSImportedListRecipientCreateParams.d.ts +15 -0
- package/dist/model/sSImportedListRecipientCreateParams.js +23 -0
- package/dist/model/sSImportedListRecipientCreateParams.js.map +1 -0
- package/dist/model/sSOptInSource.d.ts +21 -0
- package/dist/model/sSOptInSource.js +53 -0
- package/dist/model/sSOptInSource.js.map +1 -0
- package/dist/model/simpleSMSBroadcast.d.ts +35 -0
- package/dist/model/simpleSMSBroadcast.js +113 -0
- package/dist/model/simpleSMSBroadcast.js.map +1 -0
- package/dist/model/staticVoucher.d.ts +46 -0
- package/dist/model/staticVoucher.js +173 -0
- package/dist/model/staticVoucher.js.map +1 -0
- package/dist/model/staticVoucherCampaign.d.ts +38 -0
- package/dist/model/staticVoucherCampaign.js +138 -0
- package/dist/model/staticVoucherCampaign.js.map +1 -0
- package/dist/model/staticVoucherCampaignBroadcast.d.ts +35 -0
- package/dist/model/staticVoucherCampaignBroadcast.js +108 -0
- package/dist/model/staticVoucherCampaignBroadcast.js.map +1 -0
- package/dist/model/staticVoucherCampaignGroup.d.ts +23 -0
- package/dist/model/staticVoucherCampaignGroup.js +63 -0
- package/dist/model/staticVoucherCampaignGroup.js.map +1 -0
- package/dist/model/staticVoucherCampaignUpdate.d.ts +23 -0
- package/dist/model/staticVoucherCampaignUpdate.js +63 -0
- package/dist/model/staticVoucherCampaignUpdate.js.map +1 -0
- package/dist/model/status.d.ts +13 -0
- package/dist/model/status.js +12 -0
- package/dist/model/status.js.map +1 -0
- package/dist/model/statusAnyOf.d.ts +3 -0
- package/dist/model/statusAnyOf.js +8 -0
- package/dist/model/statusAnyOf.js.map +1 -0
- package/dist/model/statusAnyOf1.d.ts +3 -0
- package/dist/model/statusAnyOf1.js +8 -0
- package/dist/model/statusAnyOf1.js.map +1 -0
- package/dist/model/statusAnyOf2.d.ts +3 -0
- package/dist/model/statusAnyOf2.js +8 -0
- package/dist/model/statusAnyOf2.js.map +1 -0
- package/dist/model/statusAnyOf3.d.ts +3 -0
- package/dist/model/statusAnyOf3.js +8 -0
- package/dist/model/statusAnyOf3.js.map +1 -0
- package/dist/model/subscriptionFeature.d.ts +22 -0
- package/dist/model/subscriptionFeature.js +58 -0
- package/dist/model/subscriptionFeature.js.map +1 -0
- package/dist/model/subscriptionPlan.d.ts +22 -0
- package/dist/model/subscriptionPlan.js +48 -0
- package/dist/model/subscriptionPlan.js.map +1 -0
- package/dist/model/subscriptionProduct.d.ts +24 -0
- package/dist/model/subscriptionProduct.js +58 -0
- package/dist/model/subscriptionProduct.js.map +1 -0
- package/dist/model/tcpa.d.ts +20 -0
- package/dist/model/tcpa.js +48 -0
- package/dist/model/tcpa.js.map +1 -0
- package/dist/model/updateStaticVoucherCampaignWithVoucher.d.ts +27 -0
- package/dist/model/updateStaticVoucherCampaignWithVoucher.js +83 -0
- package/dist/model/updateStaticVoucherCampaignWithVoucher.js.map +1 -0
- package/dist/model/vSCampaignGeneratedMessage.d.ts +16 -0
- package/dist/model/vSCampaignGeneratedMessage.js +28 -0
- package/dist/model/vSCampaignGeneratedMessage.js.map +1 -0
- package/dist/model/vSCampaignGeneratedMessagePagination.d.ts +17 -0
- package/dist/model/vSCampaignGeneratedMessagePagination.js +28 -0
- package/dist/model/vSCampaignGeneratedMessagePagination.js.map +1 -0
- package/dist/model/vSDynamicVoucherStatus.d.ts +13 -0
- package/dist/model/vSDynamicVoucherStatus.js +12 -0
- package/dist/model/vSDynamicVoucherStatus.js.map +1 -0
- package/dist/model/wTAdvertisementCredit.d.ts +26 -0
- package/dist/model/wTAdvertisementCredit.js +78 -0
- package/dist/model/wTAdvertisementCredit.js.map +1 -0
- package/dist/model/wTAdvertisementCreditCreateParams.d.ts +18 -0
- package/dist/model/wTAdvertisementCreditCreateParams.js +38 -0
- package/dist/model/wTAdvertisementCreditCreateParams.js.map +1 -0
- package/dist/model/wTAdvertisementCreditScan.d.ts +37 -0
- package/dist/model/wTAdvertisementCreditScan.js +128 -0
- package/dist/model/wTAdvertisementCreditScan.js.map +1 -0
- package/dist/model/wTAdvertisementCreditUpdateParams.d.ts +18 -0
- package/dist/model/wTAdvertisementCreditUpdateParams.js +38 -0
- package/dist/model/wTAdvertisementCreditUpdateParams.js.map +1 -0
- package/dist/model/wTDynamicVoucher.d.ts +47 -0
- package/dist/model/wTDynamicVoucher.js +178 -0
- package/dist/model/wTDynamicVoucher.js.map +1 -0
- package/dist/model/wTDynamicVoucherCreateParams.d.ts +26 -0
- package/dist/model/wTDynamicVoucherCreateParams.js +78 -0
- package/dist/model/wTDynamicVoucherCreateParams.js.map +1 -0
- package/dist/model/wTDynamicVoucherRedemption.d.ts +36 -0
- package/dist/model/wTDynamicVoucherRedemption.js +123 -0
- package/dist/model/wTDynamicVoucherRedemption.js.map +1 -0
- package/dist/model/wTDynamicVoucherSummary.d.ts +37 -0
- package/dist/model/wTDynamicVoucherSummary.js +133 -0
- package/dist/model/wTDynamicVoucherSummary.js.map +1 -0
- package/dist/model/wTDynamicVoucherUpdateParams.d.ts +26 -0
- package/dist/model/wTDynamicVoucherUpdateParams.js +78 -0
- package/dist/model/wTDynamicVoucherUpdateParams.js.map +1 -0
- package/dist/model/wTEmployee.d.ts +27 -0
- package/dist/model/wTEmployee.js +83 -0
- package/dist/model/wTEmployee.js.map +1 -0
- package/dist/model/wTEmployeeAPIKey.d.ts +22 -0
- package/dist/model/wTEmployeeAPIKey.js +58 -0
- package/dist/model/wTEmployeeAPIKey.js.map +1 -0
- package/dist/model/wTEmployeeAPIKeyCreateParams.d.ts +15 -0
- package/dist/model/wTEmployeeAPIKeyCreateParams.js +23 -0
- package/dist/model/wTEmployeeAPIKeyCreateParams.js.map +1 -0
- package/dist/model/wTEmployeeAPIKeyUpdateParams.d.ts +15 -0
- package/dist/model/wTEmployeeAPIKeyUpdateParams.js +23 -0
- package/dist/model/wTEmployeeAPIKeyUpdateParams.js.map +1 -0
- package/dist/model/wTEmployeeCreate.d.ts +19 -0
- package/dist/model/wTEmployeeCreate.js +43 -0
- package/dist/model/wTEmployeeCreate.js.map +1 -0
- package/dist/model/wTEmployeeNotification.d.ts +17 -0
- package/dist/model/wTEmployeeNotification.js +33 -0
- package/dist/model/wTEmployeeNotification.js.map +1 -0
- package/dist/model/wTEmployeeUpdate.d.ts +18 -0
- package/dist/model/wTEmployeeUpdate.js +38 -0
- package/dist/model/wTEmployeeUpdate.js.map +1 -0
- package/dist/model/wTImportedList.d.ts +21 -0
- package/dist/model/wTImportedList.js +53 -0
- package/dist/model/wTImportedList.js.map +1 -0
- package/dist/model/wTLinkBookCreateParams.d.ts +18 -0
- package/dist/model/wTLinkBookCreateParams.js +38 -0
- package/dist/model/wTLinkBookCreateParams.js.map +1 -0
- package/dist/model/wTLinkBookSectionCreateParams.d.ts +14 -0
- package/dist/model/wTLinkBookSectionCreateParams.js +18 -0
- package/dist/model/wTLinkBookSectionCreateParams.js.map +1 -0
- package/dist/model/wTLinkBookSectionUpdateParams.d.ts +14 -0
- package/dist/model/wTLinkBookSectionUpdateParams.js +18 -0
- package/dist/model/wTLinkBookSectionUpdateParams.js.map +1 -0
- package/dist/model/wTLinkBookUpdateParams.d.ts +18 -0
- package/dist/model/wTLinkBookUpdateParams.js +38 -0
- package/dist/model/wTLinkBookUpdateParams.js.map +1 -0
- package/dist/model/wTMember.d.ts +25 -0
- package/dist/model/wTMember.js +73 -0
- package/dist/model/wTMember.js.map +1 -0
- package/dist/model/wTMemberCreationParams.d.ts +19 -0
- package/dist/model/wTMemberCreationParams.js +43 -0
- package/dist/model/wTMemberCreationParams.js.map +1 -0
- package/dist/model/wTMembershipTier.d.ts +23 -0
- package/dist/model/wTMembershipTier.js +63 -0
- package/dist/model/wTMembershipTier.js.map +1 -0
- package/dist/model/wTMembershipTierCreationParams.d.ts +18 -0
- package/dist/model/wTMembershipTierCreationParams.js +38 -0
- package/dist/model/wTMembershipTierCreationParams.js.map +1 -0
- package/dist/model/wTMembershipTierUpdateParams.d.ts +18 -0
- package/dist/model/wTMembershipTierUpdateParams.js +38 -0
- package/dist/model/wTMembershipTierUpdateParams.js.map +1 -0
- package/dist/model/wTMembershipTierWithMemberCount.d.ts +24 -0
- package/dist/model/wTMembershipTierWithMemberCount.js +68 -0
- package/dist/model/wTMembershipTierWithMemberCount.js.map +1 -0
- package/dist/model/wTMerchantCredit.d.ts +23 -0
- package/dist/model/wTMerchantCredit.js +63 -0
- package/dist/model/wTMerchantCredit.js.map +1 -0
- package/dist/model/wTMerchantCreditCreationParams.d.ts +16 -0
- package/dist/model/wTMerchantCreditCreationParams.js +28 -0
- package/dist/model/wTMerchantCreditCreationParams.js.map +1 -0
- package/dist/model/wTMerchantURLCreate.d.ts +15 -0
- package/dist/model/wTMerchantURLCreate.js +23 -0
- package/dist/model/wTMerchantURLCreate.js.map +1 -0
- package/dist/model/wTMerchantURLUpdate.d.ts +15 -0
- package/dist/model/wTMerchantURLUpdate.js +23 -0
- package/dist/model/wTMerchantURLUpdate.js.map +1 -0
- package/dist/model/wTNewsArticleCreateParams.d.ts +18 -0
- package/dist/model/wTNewsArticleCreateParams.js +38 -0
- package/dist/model/wTNewsArticleCreateParams.js.map +1 -0
- package/dist/model/wTNewsArticleUpdateParams.d.ts +18 -0
- package/dist/model/wTNewsArticleUpdateParams.js +38 -0
- package/dist/model/wTNewsArticleUpdateParams.js.map +1 -0
- package/dist/model/wTOptInList.d.ts +29 -0
- package/dist/model/wTOptInList.js +93 -0
- package/dist/model/wTOptInList.js.map +1 -0
- package/dist/model/wTOptInListCreationParams.d.ts +24 -0
- package/dist/model/wTOptInListCreationParams.js +68 -0
- package/dist/model/wTOptInListCreationParams.js.map +1 -0
- package/dist/model/wTPaymentDesign.d.ts +32 -0
- package/dist/model/wTPaymentDesign.js +108 -0
- package/dist/model/wTPaymentDesign.js.map +1 -0
- package/dist/model/wTPaymentDesignCreateParams.d.ts +28 -0
- package/dist/model/wTPaymentDesignCreateParams.js +88 -0
- package/dist/model/wTPaymentDesignCreateParams.js.map +1 -0
- package/dist/model/wTPaymentDesignUpdateParams.d.ts +28 -0
- package/dist/model/wTPaymentDesignUpdateParams.js +88 -0
- package/dist/model/wTPaymentDesignUpdateParams.js.map +1 -0
- package/dist/model/wTPerformanceCreateParams.d.ts +21 -0
- package/dist/model/wTPerformanceCreateParams.js +53 -0
- package/dist/model/wTPerformanceCreateParams.js.map +1 -0
- package/dist/model/wTPerformanceUpdateParams.d.ts +21 -0
- package/dist/model/wTPerformanceUpdateParams.js +53 -0
- package/dist/model/wTPerformanceUpdateParams.js.map +1 -0
- package/dist/model/wTPosMachine.d.ts +23 -0
- package/dist/model/wTPosMachine.js +63 -0
- package/dist/model/wTPosMachine.js.map +1 -0
- package/dist/model/wTPosMachineCreateParams.d.ts +18 -0
- package/dist/model/wTPosMachineCreateParams.js +38 -0
- package/dist/model/wTPosMachineCreateParams.js.map +1 -0
- package/dist/model/wTPosMachineUpdateParams.d.ts +18 -0
- package/dist/model/wTPosMachineUpdateParams.js +38 -0
- package/dist/model/wTPosMachineUpdateParams.js.map +1 -0
- package/dist/model/wTPromoCodeCreateParams.d.ts +21 -0
- package/dist/model/wTPromoCodeCreateParams.js +53 -0
- package/dist/model/wTPromoCodeCreateParams.js.map +1 -0
- package/dist/model/wTPromoCodeUpdateParams.d.ts +21 -0
- package/dist/model/wTPromoCodeUpdateParams.js +53 -0
- package/dist/model/wTPromoCodeUpdateParams.js.map +1 -0
- package/dist/model/wTRole.d.ts +29 -0
- package/dist/model/wTRole.js +88 -0
- package/dist/model/wTRole.js.map +1 -0
- package/dist/model/wTStaticVoucher.d.ts +46 -0
- package/dist/model/wTStaticVoucher.js +173 -0
- package/dist/model/wTStaticVoucher.js.map +1 -0
- package/dist/model/wTStaticVoucherCampaign.d.ts +38 -0
- package/dist/model/wTStaticVoucherCampaign.js +138 -0
- package/dist/model/wTStaticVoucherCampaign.js.map +1 -0
- package/dist/model/wTStaticVoucherCreateParams.d.ts +17 -0
- package/dist/model/wTStaticVoucherCreateParams.js +33 -0
- package/dist/model/wTStaticVoucherCreateParams.js.map +1 -0
- package/dist/model/wTStaticVoucherUpdateParams.d.ts +16 -0
- package/dist/model/wTStaticVoucherUpdateParams.js +28 -0
- package/dist/model/wTStaticVoucherUpdateParams.js.map +1 -0
- package/dist/model/wTWalletPageView.d.ts +51 -0
- package/dist/model/wTWalletPageView.js +198 -0
- package/dist/model/wTWalletPageView.js.map +1 -0
- package/dist/model/wTWalletPageViewGeoPoint.d.ts +15 -0
- package/dist/model/wTWalletPageViewGeoPoint.js +23 -0
- package/dist/model/wTWalletPageViewGeoPoint.js.map +1 -0
- package/dist/model/walletConfiguration.d.ts +50 -0
- package/dist/model/walletConfiguration.js +198 -0
- package/dist/model/walletConfiguration.js.map +1 -0
- package/dist/model/walletPageView.d.ts +51 -0
- package/dist/model/walletPageView.js +198 -0
- package/dist/model/walletPageView.js.map +1 -0
- package/dist/model/webpage.d.ts +23 -0
- package/dist/model/webpage.js +63 -0
- package/dist/model/webpage.js.map +1 -0
- package/examples/advertisementcredits.example.ts +17 -9
- package/examples/clubmembers.example.ts +8 -5
- package/examples/constants.ts +6 -0
- package/examples/linkbook.example.ts +8 -5
- package/examples/membershiptiers.example.ts +8 -5
- package/examples/merchantcredits.example.ts +52 -0
- package/examples/merchanturls.example.ts +8 -5
- package/examples/news.example.ts +8 -5
- package/examples/paymentdesigns.example.ts +7 -4
- package/examples/performances.example.ts +58 -0
- package/examples/promocodes.example.ts +56 -0
- package/model/advertisementCredit.ts +1 -1
- package/model/advertisementCreditBroadcast.ts +1 -1
- package/model/advertisementCreditScan.ts +1 -1
- package/model/agreement.ts +1 -1
- package/model/alert.ts +1 -1
- package/model/announcement.ts +1 -1
- package/model/applicableTerminals.ts +1 -1
- package/model/applicableTerminalsAnyOf.ts +1 -1
- package/model/applicableTerminalsAnyOf1.ts +1 -1
- package/model/applicableTerminalsAnyOf2.ts +1 -1
- package/model/applicableTerminalsAnyOf3.ts +1 -1
- package/model/authError.ts +1 -1
- package/model/availablePhoneNumbersRequest.ts +1 -1
- package/model/clickFunnelAmount.ts +1 -1
- package/model/clickFunnelContact.ts +1 -1
- package/model/clickFunnelContactProfile.ts +1 -1
- 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/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 +1 -1
- package/model/dynamicVoucherBroadcast.ts +1 -1
- package/model/employee.ts +1 -1
- package/model/employeeAPIKey.ts +82 -0
- package/model/employeeActivityLog.ts +1 -1
- package/model/employeeAlert.ts +1 -1
- package/model/entityTooLarge.ts +55 -0
- 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 +1 -1
- package/model/importedList.ts +1 -1
- package/model/importedListRecipient.ts +1 -1
- package/model/inboundSMS.ts +229 -0
- package/model/inlineObject.ts +1 -1
- package/model/inlineObject1.ts +1 -1
- package/model/inlineObject10.ts +1 -1
- package/model/inlineObject11.ts +1 -1
- package/model/inlineObject12.ts +1 -1
- package/model/inlineObject13.ts +1 -1
- package/model/inlineObject14.ts +1 -1
- package/model/inlineObject15.ts +1 -1
- package/model/inlineObject16.ts +1 -1
- package/model/inlineObject17.ts +1 -1
- package/model/inlineObject18.ts +1 -1
- package/model/inlineObject19.ts +1 -1
- package/model/inlineObject2.ts +1 -1
- package/model/inlineObject20.ts +1 -1
- package/model/inlineObject21.ts +1 -1
- package/model/inlineObject22.ts +1 -1
- package/model/inlineObject23.ts +1 -1
- package/model/inlineObject24.ts +1 -1
- package/model/inlineObject25.ts +1 -1
- package/model/inlineObject26.ts +1 -1
- package/model/inlineObject27.ts +1 -1
- package/model/inlineObject28.ts +1 -1
- package/model/inlineObject29.ts +1 -1
- package/model/inlineObject3.ts +1 -1
- package/model/inlineObject30.ts +1 -1
- package/model/inlineObject31.ts +1 -1
- package/model/inlineObject32.ts +1 -1
- package/model/inlineObject33.ts +1 -1
- package/model/inlineObject34.ts +1 -1
- package/model/inlineObject35.ts +1 -1
- package/model/inlineObject36.ts +1 -1
- package/model/inlineObject37.ts +1 -1
- package/model/inlineObject38.ts +1 -1
- package/model/inlineObject39.ts +1 -1
- package/model/inlineObject4.ts +1 -1
- package/model/inlineObject40.ts +1 -1
- package/model/inlineObject41.ts +1 -1
- package/model/inlineObject42.ts +1 -1
- package/model/inlineObject43.ts +1 -1
- package/model/inlineObject44.ts +1 -1
- package/model/inlineObject45.ts +1 -1
- package/model/inlineObject46.ts +1 -1
- package/model/inlineObject47.ts +1 -1
- package/model/inlineObject48.ts +1 -1
- package/model/inlineObject49.ts +1 -1
- package/model/inlineObject5.ts +1 -1
- package/model/inlineObject50.ts +1 -1
- package/model/inlineObject51.ts +1 -1
- package/model/inlineObject52.ts +1 -1
- package/model/inlineObject53.ts +1 -1
- package/model/inlineObject54.ts +1 -1
- package/model/inlineObject55.ts +1 -1
- package/model/inlineObject56.ts +8 -8
- package/model/inlineObject57.ts +1 -1
- package/model/inlineObject58.ts +13 -7
- package/model/inlineObject59.ts +11 -11
- package/model/inlineObject6.ts +1 -1
- package/model/inlineObject60.ts +1 -1
- package/model/inlineObject61.ts +7 -13
- package/model/inlineObject62.ts +8 -8
- package/model/inlineObject63.ts +1 -1
- package/model/inlineObject64.ts +188 -8
- package/model/inlineObject65.ts +13 -169
- package/model/inlineObject66.ts +1 -1
- package/model/inlineObject67.ts +7 -19
- package/model/inlineObject68.ts +88 -4
- package/model/inlineObject69.ts +1 -1
- package/model/inlineObject7.ts +1 -1
- package/model/inlineObject8.ts +1 -1
- package/model/inlineObject9.ts +1 -1
- package/model/inlineResponse200.ts +1 -1
- package/model/inlineResponse2001.ts +1 -1
- package/model/inlineResponse20010.ts +14 -79
- package/model/inlineResponse20011.ts +9 -15
- package/model/inlineResponse20012.ts +98 -0
- package/model/inlineResponse20013.ts +109 -0
- package/model/inlineResponse20014.ts +43 -0
- package/model/inlineResponse2002.ts +1 -1
- package/model/inlineResponse2003.ts +1 -1
- package/model/inlineResponse2004.ts +1 -1
- package/model/inlineResponse2005.ts +1 -1
- package/model/inlineResponse2006.ts +1 -1
- package/model/inlineResponse2007.ts +1 -1
- package/model/inlineResponse2008.ts +1 -1
- package/model/inlineResponse2009.ts +12 -66
- package/model/internalServerError.ts +1 -1
- package/model/ledgerEntry.ts +1 -1
- package/model/linkBook.ts +1 -1
- package/model/linkBookSection.ts +4 -4
- 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 +1 -1
- 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 +51 -9
- package/model/moduleError.ts +1 -7
- package/model/newsArticle.ts +1 -1
- package/model/optInList.ts +1 -1
- package/model/optInListSource.ts +1 -1
- package/model/optInListSubscriber.ts +1 -1
- package/model/outboundSMS.ts +13 -13
- package/model/paginatedWTMembers.ts +1 -1
- package/model/paginatedWTMerchantCredits.ts +1 -1
- package/model/paginationRequestWithIDAndWithoutSortOptions.ts +49 -0
- package/model/paginationRequestWithSortOptions.ts +1 -1
- package/model/paymentDesign.ts +1 -1
- package/model/performance.ts +10 -1
- package/model/phoneNumber.ts +1 -1
- package/model/pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherSourceID.ts +1 -1
- package/model/pickMSEmployeeAPIKeyCreateParamsExcludeKeyofMSEmployeeAPIKeyCreateParamsEmployeeID.ts +40 -0
- package/model/pickMSEmployeeAPIKeyUpdateParamsExcludeKeyofMSEmployeeAPIKeyUpdateParamsId.ts +40 -0
- 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/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 +64 -0
- package/model/pickSSOptInListUpdateParamsExcludeKeyofSSOptInListUpdateParamsId.ts +1 -1
- package/model/pickSSOptInSourceUpdateParamsExcludeKeyofSSOptInSourceUpdateParamsId.ts +1 -1
- package/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhone.ts +13 -13
- package/model/pickVSAdvertisementCreditCreateParamsExcludeKeyofVSAdvertisementCreditCreateParamsEmployeeID.ts +58 -0
- 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/pickWTAdvertisementCreditCreateParamsExcludeKeyofWTAdvertisementCreditCreateParamsEmployeeID.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 +1 -1
- package/model/pickWTStaticVoucherCampaignCreateParamsExcludeKeyofWTStaticVoucherCampaignCreateParamsStartDateTimeOrExpirationDateTime.ts +1 -1
- package/model/pickWTStaticVoucherCreateParamsExcludeKeyofWTStaticVoucherCreateParamsCampaignID.ts +1 -1
- package/model/plan.ts +1 -1
- package/model/portalPage.ts +2 -3
- package/model/presignedPost.ts +1 -1
- package/model/presignedPostFields.ts +1 -1
- package/model/product.ts +1 -1
- package/model/promoCode.ts +7 -1
- package/model/reachPerformanceStats.ts +55 -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 +37 -0
- package/model/sSOptInSource.ts +1 -1
- package/model/simpleSMSBroadcast.ts +1 -1
- package/model/staticVoucher.ts +1 -1
- package/model/staticVoucherCampaign.ts +1 -1
- package/model/staticVoucherCampaignBroadcast.ts +1 -1
- package/model/staticVoucherCampaignGroup.ts +1 -1
- 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 +1 -1
- 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 +1 -1
- package/model/wTAdvertisementCreditCreateParams.ts +55 -0
- package/model/wTAdvertisementCreditScan.ts +1 -1
- package/model/wTAdvertisementCreditUpdateParams.ts +1 -1
- package/model/wTDynamicVoucher.ts +1 -1
- package/model/wTDynamicVoucherCreateParams.ts +1 -1
- package/model/wTDynamicVoucherRedemption.ts +1 -1
- package/model/wTDynamicVoucherSummary.ts +1 -1
- package/model/wTDynamicVoucherUpdateParams.ts +1 -1
- package/model/wTEmployee.ts +1 -1
- package/model/wTEmployeeAPIKey.ts +82 -0
- package/model/wTEmployeeAPIKeyCreateParams.ts +37 -0
- package/model/wTEmployeeAPIKeyUpdateParams.ts +37 -0
- package/model/wTEmployeeCreate.ts +1 -1
- package/model/wTEmployeeNotification.ts +49 -0
- package/model/wTEmployeeUpdate.ts +1 -1
- package/model/wTImportedList.ts +1 -1
- package/model/wTLinkBookCreateParams.ts +1 -1
- package/model/wTLinkBookSectionCreateParams.ts +4 -4
- package/model/wTLinkBookSectionUpdateParams.ts +4 -4
- package/model/wTLinkBookUpdateParams.ts +1 -1
- package/model/wTMember.ts +1 -1
- package/model/wTMemberCreationParams.ts +1 -1
- package/model/wTMembershipTier.ts +1 -1
- package/model/wTMembershipTierCreationParams.ts +1 -1
- package/model/wTMembershipTierUpdateParams.ts +1 -1
- package/model/wTMembershipTierWithMemberCount.ts +1 -1
- 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/wTNewsArticleCreateParams.ts +1 -1
- package/model/wTNewsArticleUpdateParams.ts +1 -1
- package/model/wTOptInList.ts +1 -1
- package/model/wTOptInListCreationParams.ts +1 -1
- package/model/wTPaymentDesign.ts +1 -1
- package/model/wTPaymentDesignCreateParams.ts +1 -1
- package/model/wTPaymentDesignUpdateParams.ts +1 -1
- package/model/wTPerformanceCreateParams.ts +10 -1
- package/model/wTPerformanceUpdateParams.ts +10 -1
- package/model/wTPosMachine.ts +1 -1
- package/model/wTPosMachineCreateParams.ts +1 -1
- package/model/wTPosMachineUpdateParams.ts +1 -1
- package/model/wTPromoCodeCreateParams.ts +7 -1
- package/model/wTPromoCodeUpdateParams.ts +7 -1
- package/model/wTRole.ts +1 -1
- package/model/wTStaticVoucher.ts +1 -1
- package/model/wTStaticVoucherCampaign.ts +1 -1
- package/model/wTStaticVoucherCreateParams.ts +1 -1
- package/model/wTStaticVoucherUpdateParams.ts +1 -1
- package/model/wTWalletPageView.ts +1 -1
- package/model/wTWalletPageViewGeoPoint.ts +1 -1
- package/model/walletConfiguration.ts +250 -0
- package/model/walletPageView.ts +1 -1
- package/model/webpage.ts +1 -1
- package/package.json +1 -29
- package/readme-generator.py +23 -1
|
@@ -0,0 +1,2558 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.EmployeesApi = exports.EmployeesApiApiKeys = void 0;
|
|
16
|
+
const request_1 = __importDefault(require("request"));
|
|
17
|
+
const models_1 = require("../model/models");
|
|
18
|
+
const models_2 = require("../model/models");
|
|
19
|
+
const apis_1 = require("./apis");
|
|
20
|
+
let defaultBasePath = 'https://api.wall.et';
|
|
21
|
+
var EmployeesApiApiKeys;
|
|
22
|
+
(function (EmployeesApiApiKeys) {
|
|
23
|
+
EmployeesApiApiKeys[EmployeesApiApiKeys["api_key"] = 0] = "api_key";
|
|
24
|
+
})(EmployeesApiApiKeys = exports.EmployeesApiApiKeys || (exports.EmployeesApiApiKeys = {}));
|
|
25
|
+
class EmployeesApi {
|
|
26
|
+
constructor(basePathOrUsername, password, basePath) {
|
|
27
|
+
this._basePath = defaultBasePath;
|
|
28
|
+
this._defaultHeaders = {};
|
|
29
|
+
this._useQuerystring = false;
|
|
30
|
+
this.authentications = {
|
|
31
|
+
'default': new models_1.VoidAuth(),
|
|
32
|
+
'api_key': new models_2.ApiKeyAuth('header', 'access-token'),
|
|
33
|
+
};
|
|
34
|
+
this.interceptors = [];
|
|
35
|
+
if (password) {
|
|
36
|
+
if (basePath) {
|
|
37
|
+
this.basePath = basePath;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
if (basePathOrUsername) {
|
|
42
|
+
this.basePath = basePathOrUsername;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
set useQuerystring(value) {
|
|
47
|
+
this._useQuerystring = value;
|
|
48
|
+
}
|
|
49
|
+
set basePath(basePath) {
|
|
50
|
+
this._basePath = basePath;
|
|
51
|
+
}
|
|
52
|
+
set defaultHeaders(defaultHeaders) {
|
|
53
|
+
this._defaultHeaders = defaultHeaders;
|
|
54
|
+
}
|
|
55
|
+
get defaultHeaders() {
|
|
56
|
+
return this._defaultHeaders;
|
|
57
|
+
}
|
|
58
|
+
get basePath() {
|
|
59
|
+
return this._basePath;
|
|
60
|
+
}
|
|
61
|
+
setDefaultAuthentication(auth) {
|
|
62
|
+
this.authentications.default = auth;
|
|
63
|
+
}
|
|
64
|
+
setApiKey(key, value) {
|
|
65
|
+
this.authentications[EmployeesApiApiKeys[key]].apiKey = value;
|
|
66
|
+
}
|
|
67
|
+
addInterceptor(interceptor) {
|
|
68
|
+
this.interceptors.push(interceptor);
|
|
69
|
+
}
|
|
70
|
+
addPeerToRoles(userID, inlineObject6, options = { headers: {} }) {
|
|
71
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
72
|
+
const localVarPath = this.basePath + '/v2/employee/roles/peer/{userID}'
|
|
73
|
+
.replace('{' + 'userID' + '}', encodeURIComponent(String(userID)));
|
|
74
|
+
let localVarQueryParameters = {};
|
|
75
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
76
|
+
const produces = ['application/json'];
|
|
77
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
78
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
82
|
+
}
|
|
83
|
+
let localVarFormParams = {};
|
|
84
|
+
if (userID === null || userID === undefined) {
|
|
85
|
+
throw new Error('Required parameter userID was null or undefined when calling addPeerToRoles.');
|
|
86
|
+
}
|
|
87
|
+
if (inlineObject6 === null || inlineObject6 === undefined) {
|
|
88
|
+
throw new Error('Required parameter inlineObject6 was null or undefined when calling addPeerToRoles.');
|
|
89
|
+
}
|
|
90
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
91
|
+
let localVarUseFormData = false;
|
|
92
|
+
let localVarRequestOptions = {
|
|
93
|
+
method: 'POST',
|
|
94
|
+
qs: localVarQueryParameters,
|
|
95
|
+
headers: localVarHeaderParams,
|
|
96
|
+
uri: localVarPath,
|
|
97
|
+
useQuerystring: this._useQuerystring,
|
|
98
|
+
json: true,
|
|
99
|
+
body: models_1.ObjectSerializer.serialize(inlineObject6, "InlineObject6")
|
|
100
|
+
};
|
|
101
|
+
let authenticationPromise = Promise.resolve();
|
|
102
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
103
|
+
let interceptorPromise = authenticationPromise;
|
|
104
|
+
for (const interceptor of this.interceptors) {
|
|
105
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
106
|
+
}
|
|
107
|
+
return interceptorPromise.then(() => {
|
|
108
|
+
if (Object.keys(localVarFormParams).length) {
|
|
109
|
+
if (localVarUseFormData) {
|
|
110
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
111
|
+
}
|
|
112
|
+
else {
|
|
113
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
return new Promise((resolve, reject) => {
|
|
117
|
+
request_1.default(localVarRequestOptions, (error, response, body) => {
|
|
118
|
+
if (error) {
|
|
119
|
+
reject(error);
|
|
120
|
+
}
|
|
121
|
+
else {
|
|
122
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
123
|
+
body = models_1.ObjectSerializer.deserialize(body, "string");
|
|
124
|
+
resolve({ response: response, body: body });
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
});
|
|
132
|
+
});
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
createAlert(inlineObject12, options = { headers: {} }) {
|
|
136
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
137
|
+
const localVarPath = this.basePath + '/v2/employee/alert';
|
|
138
|
+
let localVarQueryParameters = {};
|
|
139
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
140
|
+
const produces = ['application/json'];
|
|
141
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
142
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
143
|
+
}
|
|
144
|
+
else {
|
|
145
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
146
|
+
}
|
|
147
|
+
let localVarFormParams = {};
|
|
148
|
+
if (inlineObject12 === null || inlineObject12 === undefined) {
|
|
149
|
+
throw new Error('Required parameter inlineObject12 was null or undefined when calling createAlert.');
|
|
150
|
+
}
|
|
151
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
152
|
+
let localVarUseFormData = false;
|
|
153
|
+
let localVarRequestOptions = {
|
|
154
|
+
method: 'POST',
|
|
155
|
+
qs: localVarQueryParameters,
|
|
156
|
+
headers: localVarHeaderParams,
|
|
157
|
+
uri: localVarPath,
|
|
158
|
+
useQuerystring: this._useQuerystring,
|
|
159
|
+
json: true,
|
|
160
|
+
body: models_1.ObjectSerializer.serialize(inlineObject12, "InlineObject12")
|
|
161
|
+
};
|
|
162
|
+
let authenticationPromise = Promise.resolve();
|
|
163
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
164
|
+
let interceptorPromise = authenticationPromise;
|
|
165
|
+
for (const interceptor of this.interceptors) {
|
|
166
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
167
|
+
}
|
|
168
|
+
return interceptorPromise.then(() => {
|
|
169
|
+
if (Object.keys(localVarFormParams).length) {
|
|
170
|
+
if (localVarUseFormData) {
|
|
171
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
172
|
+
}
|
|
173
|
+
else {
|
|
174
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
return new Promise((resolve, reject) => {
|
|
178
|
+
request_1.default(localVarRequestOptions, (error, response, body) => {
|
|
179
|
+
if (error) {
|
|
180
|
+
reject(error);
|
|
181
|
+
}
|
|
182
|
+
else {
|
|
183
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
184
|
+
body = models_1.ObjectSerializer.deserialize(body, "Alert");
|
|
185
|
+
resolve({ response: response, body: body });
|
|
186
|
+
}
|
|
187
|
+
else {
|
|
188
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
});
|
|
193
|
+
});
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
createEmployeePeer(wTEmployeeCreate, options = { headers: {} }) {
|
|
197
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
198
|
+
const localVarPath = this.basePath + '/v2/employee/peer';
|
|
199
|
+
let localVarQueryParameters = {};
|
|
200
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
201
|
+
const produces = ['application/json'];
|
|
202
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
203
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
204
|
+
}
|
|
205
|
+
else {
|
|
206
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
207
|
+
}
|
|
208
|
+
let localVarFormParams = {};
|
|
209
|
+
if (wTEmployeeCreate === null || wTEmployeeCreate === undefined) {
|
|
210
|
+
throw new Error('Required parameter wTEmployeeCreate was null or undefined when calling createEmployeePeer.');
|
|
211
|
+
}
|
|
212
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
213
|
+
let localVarUseFormData = false;
|
|
214
|
+
let localVarRequestOptions = {
|
|
215
|
+
method: 'POST',
|
|
216
|
+
qs: localVarQueryParameters,
|
|
217
|
+
headers: localVarHeaderParams,
|
|
218
|
+
uri: localVarPath,
|
|
219
|
+
useQuerystring: this._useQuerystring,
|
|
220
|
+
json: true,
|
|
221
|
+
body: models_1.ObjectSerializer.serialize(wTEmployeeCreate, "WTEmployeeCreate")
|
|
222
|
+
};
|
|
223
|
+
let authenticationPromise = Promise.resolve();
|
|
224
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
225
|
+
let interceptorPromise = authenticationPromise;
|
|
226
|
+
for (const interceptor of this.interceptors) {
|
|
227
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
228
|
+
}
|
|
229
|
+
return interceptorPromise.then(() => {
|
|
230
|
+
if (Object.keys(localVarFormParams).length) {
|
|
231
|
+
if (localVarUseFormData) {
|
|
232
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
233
|
+
}
|
|
234
|
+
else {
|
|
235
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
return new Promise((resolve, reject) => {
|
|
239
|
+
request_1.default(localVarRequestOptions, (error, response, body) => {
|
|
240
|
+
if (error) {
|
|
241
|
+
reject(error);
|
|
242
|
+
}
|
|
243
|
+
else {
|
|
244
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
245
|
+
body = models_1.ObjectSerializer.deserialize(body, "Employee");
|
|
246
|
+
resolve({ response: response, body: body });
|
|
247
|
+
}
|
|
248
|
+
else {
|
|
249
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
});
|
|
253
|
+
});
|
|
254
|
+
});
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
createFile(inlineObject9, options = { headers: {} }) {
|
|
258
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
259
|
+
const localVarPath = this.basePath + '/v2/employee/file/create';
|
|
260
|
+
let localVarQueryParameters = {};
|
|
261
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
262
|
+
const produces = ['application/json'];
|
|
263
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
264
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
265
|
+
}
|
|
266
|
+
else {
|
|
267
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
268
|
+
}
|
|
269
|
+
let localVarFormParams = {};
|
|
270
|
+
if (inlineObject9 === null || inlineObject9 === undefined) {
|
|
271
|
+
throw new Error('Required parameter inlineObject9 was null or undefined when calling createFile.');
|
|
272
|
+
}
|
|
273
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
274
|
+
let localVarUseFormData = false;
|
|
275
|
+
let localVarRequestOptions = {
|
|
276
|
+
method: 'POST',
|
|
277
|
+
qs: localVarQueryParameters,
|
|
278
|
+
headers: localVarHeaderParams,
|
|
279
|
+
uri: localVarPath,
|
|
280
|
+
useQuerystring: this._useQuerystring,
|
|
281
|
+
json: true,
|
|
282
|
+
body: models_1.ObjectSerializer.serialize(inlineObject9, "InlineObject9")
|
|
283
|
+
};
|
|
284
|
+
let authenticationPromise = Promise.resolve();
|
|
285
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
286
|
+
let interceptorPromise = authenticationPromise;
|
|
287
|
+
for (const interceptor of this.interceptors) {
|
|
288
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
289
|
+
}
|
|
290
|
+
return interceptorPromise.then(() => {
|
|
291
|
+
if (Object.keys(localVarFormParams).length) {
|
|
292
|
+
if (localVarUseFormData) {
|
|
293
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
294
|
+
}
|
|
295
|
+
else {
|
|
296
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
return new Promise((resolve, reject) => {
|
|
300
|
+
request_1.default(localVarRequestOptions, (error, response, body) => {
|
|
301
|
+
if (error) {
|
|
302
|
+
reject(error);
|
|
303
|
+
}
|
|
304
|
+
else {
|
|
305
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
306
|
+
body = models_1.ObjectSerializer.deserialize(body, "InlineResponse2004");
|
|
307
|
+
resolve({ response: response, body: body });
|
|
308
|
+
}
|
|
309
|
+
else {
|
|
310
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
});
|
|
314
|
+
});
|
|
315
|
+
});
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
createMediaFile(inlineObject14, options = { headers: {} }) {
|
|
319
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
320
|
+
const localVarPath = this.basePath + '/v2/employee/mediaFile';
|
|
321
|
+
let localVarQueryParameters = {};
|
|
322
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
323
|
+
const produces = ['application/json'];
|
|
324
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
325
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
326
|
+
}
|
|
327
|
+
else {
|
|
328
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
329
|
+
}
|
|
330
|
+
let localVarFormParams = {};
|
|
331
|
+
if (inlineObject14 === null || inlineObject14 === undefined) {
|
|
332
|
+
throw new Error('Required parameter inlineObject14 was null or undefined when calling createMediaFile.');
|
|
333
|
+
}
|
|
334
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
335
|
+
let localVarUseFormData = false;
|
|
336
|
+
let localVarRequestOptions = {
|
|
337
|
+
method: 'POST',
|
|
338
|
+
qs: localVarQueryParameters,
|
|
339
|
+
headers: localVarHeaderParams,
|
|
340
|
+
uri: localVarPath,
|
|
341
|
+
useQuerystring: this._useQuerystring,
|
|
342
|
+
json: true,
|
|
343
|
+
body: models_1.ObjectSerializer.serialize(inlineObject14, "InlineObject14")
|
|
344
|
+
};
|
|
345
|
+
let authenticationPromise = Promise.resolve();
|
|
346
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
347
|
+
let interceptorPromise = authenticationPromise;
|
|
348
|
+
for (const interceptor of this.interceptors) {
|
|
349
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
350
|
+
}
|
|
351
|
+
return interceptorPromise.then(() => {
|
|
352
|
+
if (Object.keys(localVarFormParams).length) {
|
|
353
|
+
if (localVarUseFormData) {
|
|
354
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
355
|
+
}
|
|
356
|
+
else {
|
|
357
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
return new Promise((resolve, reject) => {
|
|
361
|
+
request_1.default(localVarRequestOptions, (error, response, body) => {
|
|
362
|
+
if (error) {
|
|
363
|
+
reject(error);
|
|
364
|
+
}
|
|
365
|
+
else {
|
|
366
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
367
|
+
body = models_1.ObjectSerializer.deserialize(body, "MediaFile");
|
|
368
|
+
resolve({ response: response, body: body });
|
|
369
|
+
}
|
|
370
|
+
else {
|
|
371
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
});
|
|
375
|
+
});
|
|
376
|
+
});
|
|
377
|
+
});
|
|
378
|
+
}
|
|
379
|
+
createStaticVoucherCampaignsGroup(inlineObject7, options = { headers: {} }) {
|
|
380
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
381
|
+
const localVarPath = this.basePath + '/v2/employee/staticVoucherCampaignsGroup';
|
|
382
|
+
let localVarQueryParameters = {};
|
|
383
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
384
|
+
const produces = ['application/json'];
|
|
385
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
386
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
387
|
+
}
|
|
388
|
+
else {
|
|
389
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
390
|
+
}
|
|
391
|
+
let localVarFormParams = {};
|
|
392
|
+
if (inlineObject7 === null || inlineObject7 === undefined) {
|
|
393
|
+
throw new Error('Required parameter inlineObject7 was null or undefined when calling createStaticVoucherCampaignsGroup.');
|
|
394
|
+
}
|
|
395
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
396
|
+
let localVarUseFormData = false;
|
|
397
|
+
let localVarRequestOptions = {
|
|
398
|
+
method: 'POST',
|
|
399
|
+
qs: localVarQueryParameters,
|
|
400
|
+
headers: localVarHeaderParams,
|
|
401
|
+
uri: localVarPath,
|
|
402
|
+
useQuerystring: this._useQuerystring,
|
|
403
|
+
json: true,
|
|
404
|
+
body: models_1.ObjectSerializer.serialize(inlineObject7, "InlineObject7")
|
|
405
|
+
};
|
|
406
|
+
let authenticationPromise = Promise.resolve();
|
|
407
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
408
|
+
let interceptorPromise = authenticationPromise;
|
|
409
|
+
for (const interceptor of this.interceptors) {
|
|
410
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
411
|
+
}
|
|
412
|
+
return interceptorPromise.then(() => {
|
|
413
|
+
if (Object.keys(localVarFormParams).length) {
|
|
414
|
+
if (localVarUseFormData) {
|
|
415
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
416
|
+
}
|
|
417
|
+
else {
|
|
418
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
return new Promise((resolve, reject) => {
|
|
422
|
+
request_1.default(localVarRequestOptions, (error, response, body) => {
|
|
423
|
+
if (error) {
|
|
424
|
+
reject(error);
|
|
425
|
+
}
|
|
426
|
+
else {
|
|
427
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
428
|
+
body = models_1.ObjectSerializer.deserialize(body, "StaticVoucherCampaignGroup");
|
|
429
|
+
resolve({ response: response, body: body });
|
|
430
|
+
}
|
|
431
|
+
else {
|
|
432
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
});
|
|
436
|
+
});
|
|
437
|
+
});
|
|
438
|
+
});
|
|
439
|
+
}
|
|
440
|
+
deleteMediaFile(mediaFileID, options = { headers: {} }) {
|
|
441
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
442
|
+
const localVarPath = this.basePath + '/v2/employee/mediaFile/{mediaFileID}'
|
|
443
|
+
.replace('{' + 'mediaFileID' + '}', encodeURIComponent(String(mediaFileID)));
|
|
444
|
+
let localVarQueryParameters = {};
|
|
445
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
446
|
+
const produces = ['application/json'];
|
|
447
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
448
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
449
|
+
}
|
|
450
|
+
else {
|
|
451
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
452
|
+
}
|
|
453
|
+
let localVarFormParams = {};
|
|
454
|
+
if (mediaFileID === null || mediaFileID === undefined) {
|
|
455
|
+
throw new Error('Required parameter mediaFileID was null or undefined when calling deleteMediaFile.');
|
|
456
|
+
}
|
|
457
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
458
|
+
let localVarUseFormData = false;
|
|
459
|
+
let localVarRequestOptions = {
|
|
460
|
+
method: 'DELETE',
|
|
461
|
+
qs: localVarQueryParameters,
|
|
462
|
+
headers: localVarHeaderParams,
|
|
463
|
+
uri: localVarPath,
|
|
464
|
+
useQuerystring: this._useQuerystring,
|
|
465
|
+
json: true,
|
|
466
|
+
};
|
|
467
|
+
let authenticationPromise = Promise.resolve();
|
|
468
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
469
|
+
let interceptorPromise = authenticationPromise;
|
|
470
|
+
for (const interceptor of this.interceptors) {
|
|
471
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
472
|
+
}
|
|
473
|
+
return interceptorPromise.then(() => {
|
|
474
|
+
if (Object.keys(localVarFormParams).length) {
|
|
475
|
+
if (localVarUseFormData) {
|
|
476
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
477
|
+
}
|
|
478
|
+
else {
|
|
479
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
return new Promise((resolve, reject) => {
|
|
483
|
+
request_1.default(localVarRequestOptions, (error, response, body) => {
|
|
484
|
+
if (error) {
|
|
485
|
+
reject(error);
|
|
486
|
+
}
|
|
487
|
+
else {
|
|
488
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
489
|
+
body = models_1.ObjectSerializer.deserialize(body, "MediaFile");
|
|
490
|
+
resolve({ response: response, body: body });
|
|
491
|
+
}
|
|
492
|
+
else {
|
|
493
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
});
|
|
497
|
+
});
|
|
498
|
+
});
|
|
499
|
+
});
|
|
500
|
+
}
|
|
501
|
+
downloadFile(fileID, options = { headers: {} }) {
|
|
502
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
503
|
+
const localVarPath = this.basePath + '/v2/employee/file/download/{fileID}'
|
|
504
|
+
.replace('{' + 'fileID' + '}', encodeURIComponent(String(fileID)));
|
|
505
|
+
let localVarQueryParameters = {};
|
|
506
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
507
|
+
const produces = ['application/json'];
|
|
508
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
509
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
510
|
+
}
|
|
511
|
+
else {
|
|
512
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
513
|
+
}
|
|
514
|
+
let localVarFormParams = {};
|
|
515
|
+
if (fileID === null || fileID === undefined) {
|
|
516
|
+
throw new Error('Required parameter fileID was null or undefined when calling downloadFile.');
|
|
517
|
+
}
|
|
518
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
519
|
+
let localVarUseFormData = false;
|
|
520
|
+
let localVarRequestOptions = {
|
|
521
|
+
method: 'GET',
|
|
522
|
+
qs: localVarQueryParameters,
|
|
523
|
+
headers: localVarHeaderParams,
|
|
524
|
+
uri: localVarPath,
|
|
525
|
+
useQuerystring: this._useQuerystring,
|
|
526
|
+
json: true,
|
|
527
|
+
};
|
|
528
|
+
let authenticationPromise = Promise.resolve();
|
|
529
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
530
|
+
let interceptorPromise = authenticationPromise;
|
|
531
|
+
for (const interceptor of this.interceptors) {
|
|
532
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
533
|
+
}
|
|
534
|
+
return interceptorPromise.then(() => {
|
|
535
|
+
if (Object.keys(localVarFormParams).length) {
|
|
536
|
+
if (localVarUseFormData) {
|
|
537
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
538
|
+
}
|
|
539
|
+
else {
|
|
540
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
return new Promise((resolve, reject) => {
|
|
544
|
+
request_1.default(localVarRequestOptions, (error, response, body) => {
|
|
545
|
+
if (error) {
|
|
546
|
+
reject(error);
|
|
547
|
+
}
|
|
548
|
+
else {
|
|
549
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
550
|
+
body = models_1.ObjectSerializer.deserialize(body, "string");
|
|
551
|
+
resolve({ response: response, body: body });
|
|
552
|
+
}
|
|
553
|
+
else {
|
|
554
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
});
|
|
558
|
+
});
|
|
559
|
+
});
|
|
560
|
+
});
|
|
561
|
+
}
|
|
562
|
+
exportClubMembers(options = { headers: {} }) {
|
|
563
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
564
|
+
const localVarPath = this.basePath + '/v2/employee/export/members';
|
|
565
|
+
let localVarQueryParameters = {};
|
|
566
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
567
|
+
const produces = ['application/json'];
|
|
568
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
569
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
570
|
+
}
|
|
571
|
+
else {
|
|
572
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
573
|
+
}
|
|
574
|
+
let localVarFormParams = {};
|
|
575
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
576
|
+
let localVarUseFormData = false;
|
|
577
|
+
let localVarRequestOptions = {
|
|
578
|
+
method: 'PUT',
|
|
579
|
+
qs: localVarQueryParameters,
|
|
580
|
+
headers: localVarHeaderParams,
|
|
581
|
+
uri: localVarPath,
|
|
582
|
+
useQuerystring: this._useQuerystring,
|
|
583
|
+
json: true,
|
|
584
|
+
};
|
|
585
|
+
let authenticationPromise = Promise.resolve();
|
|
586
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
587
|
+
let interceptorPromise = authenticationPromise;
|
|
588
|
+
for (const interceptor of this.interceptors) {
|
|
589
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
590
|
+
}
|
|
591
|
+
return interceptorPromise.then(() => {
|
|
592
|
+
if (Object.keys(localVarFormParams).length) {
|
|
593
|
+
if (localVarUseFormData) {
|
|
594
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
595
|
+
}
|
|
596
|
+
else {
|
|
597
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
return new Promise((resolve, reject) => {
|
|
601
|
+
request_1.default(localVarRequestOptions, (error, response, body) => {
|
|
602
|
+
if (error) {
|
|
603
|
+
reject(error);
|
|
604
|
+
}
|
|
605
|
+
else {
|
|
606
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
607
|
+
body = models_1.ObjectSerializer.deserialize(body, "string");
|
|
608
|
+
resolve({ response: response, body: body });
|
|
609
|
+
}
|
|
610
|
+
else {
|
|
611
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
});
|
|
615
|
+
});
|
|
616
|
+
});
|
|
617
|
+
});
|
|
618
|
+
}
|
|
619
|
+
exportMerchantCredits(options = { headers: {} }) {
|
|
620
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
621
|
+
const localVarPath = this.basePath + '/v2/employee/export/merchantCredits';
|
|
622
|
+
let localVarQueryParameters = {};
|
|
623
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
624
|
+
const produces = ['application/json'];
|
|
625
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
626
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
627
|
+
}
|
|
628
|
+
else {
|
|
629
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
630
|
+
}
|
|
631
|
+
let localVarFormParams = {};
|
|
632
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
633
|
+
let localVarUseFormData = false;
|
|
634
|
+
let localVarRequestOptions = {
|
|
635
|
+
method: 'PUT',
|
|
636
|
+
qs: localVarQueryParameters,
|
|
637
|
+
headers: localVarHeaderParams,
|
|
638
|
+
uri: localVarPath,
|
|
639
|
+
useQuerystring: this._useQuerystring,
|
|
640
|
+
json: true,
|
|
641
|
+
};
|
|
642
|
+
let authenticationPromise = Promise.resolve();
|
|
643
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
644
|
+
let interceptorPromise = authenticationPromise;
|
|
645
|
+
for (const interceptor of this.interceptors) {
|
|
646
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
647
|
+
}
|
|
648
|
+
return interceptorPromise.then(() => {
|
|
649
|
+
if (Object.keys(localVarFormParams).length) {
|
|
650
|
+
if (localVarUseFormData) {
|
|
651
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
652
|
+
}
|
|
653
|
+
else {
|
|
654
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
return new Promise((resolve, reject) => {
|
|
658
|
+
request_1.default(localVarRequestOptions, (error, response, body) => {
|
|
659
|
+
if (error) {
|
|
660
|
+
reject(error);
|
|
661
|
+
}
|
|
662
|
+
else {
|
|
663
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
664
|
+
body = models_1.ObjectSerializer.deserialize(body, "string");
|
|
665
|
+
resolve({ response: response, body: body });
|
|
666
|
+
}
|
|
667
|
+
else {
|
|
668
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
});
|
|
672
|
+
});
|
|
673
|
+
});
|
|
674
|
+
});
|
|
675
|
+
}
|
|
676
|
+
exportStaticVoucherCampaign(campaignID, options = { headers: {} }) {
|
|
677
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
678
|
+
const localVarPath = this.basePath + '/v2/employee/export/staticVoucherCampaign/{campaignID}'
|
|
679
|
+
.replace('{' + 'campaignID' + '}', encodeURIComponent(String(campaignID)));
|
|
680
|
+
let localVarQueryParameters = {};
|
|
681
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
682
|
+
const produces = ['application/json'];
|
|
683
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
684
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
685
|
+
}
|
|
686
|
+
else {
|
|
687
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
688
|
+
}
|
|
689
|
+
let localVarFormParams = {};
|
|
690
|
+
if (campaignID === null || campaignID === undefined) {
|
|
691
|
+
throw new Error('Required parameter campaignID was null or undefined when calling exportStaticVoucherCampaign.');
|
|
692
|
+
}
|
|
693
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
694
|
+
let localVarUseFormData = false;
|
|
695
|
+
let localVarRequestOptions = {
|
|
696
|
+
method: 'PUT',
|
|
697
|
+
qs: localVarQueryParameters,
|
|
698
|
+
headers: localVarHeaderParams,
|
|
699
|
+
uri: localVarPath,
|
|
700
|
+
useQuerystring: this._useQuerystring,
|
|
701
|
+
json: true,
|
|
702
|
+
};
|
|
703
|
+
let authenticationPromise = Promise.resolve();
|
|
704
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
705
|
+
let interceptorPromise = authenticationPromise;
|
|
706
|
+
for (const interceptor of this.interceptors) {
|
|
707
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
708
|
+
}
|
|
709
|
+
return interceptorPromise.then(() => {
|
|
710
|
+
if (Object.keys(localVarFormParams).length) {
|
|
711
|
+
if (localVarUseFormData) {
|
|
712
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
713
|
+
}
|
|
714
|
+
else {
|
|
715
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
return new Promise((resolve, reject) => {
|
|
719
|
+
request_1.default(localVarRequestOptions, (error, response, body) => {
|
|
720
|
+
if (error) {
|
|
721
|
+
reject(error);
|
|
722
|
+
}
|
|
723
|
+
else {
|
|
724
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
725
|
+
body = models_1.ObjectSerializer.deserialize(body, "string");
|
|
726
|
+
resolve({ response: response, body: body });
|
|
727
|
+
}
|
|
728
|
+
else {
|
|
729
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
});
|
|
733
|
+
});
|
|
734
|
+
});
|
|
735
|
+
});
|
|
736
|
+
}
|
|
737
|
+
failedImport(fileID, options = { headers: {} }) {
|
|
738
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
739
|
+
const localVarPath = this.basePath + '/v2/employee/file/imports/failed/{fileID}'
|
|
740
|
+
.replace('{' + 'fileID' + '}', encodeURIComponent(String(fileID)));
|
|
741
|
+
let localVarQueryParameters = {};
|
|
742
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
743
|
+
const produces = ['application/json'];
|
|
744
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
745
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
746
|
+
}
|
|
747
|
+
else {
|
|
748
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
749
|
+
}
|
|
750
|
+
let localVarFormParams = {};
|
|
751
|
+
if (fileID === null || fileID === undefined) {
|
|
752
|
+
throw new Error('Required parameter fileID was null or undefined when calling failedImport.');
|
|
753
|
+
}
|
|
754
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
755
|
+
let localVarUseFormData = false;
|
|
756
|
+
let localVarRequestOptions = {
|
|
757
|
+
method: 'GET',
|
|
758
|
+
qs: localVarQueryParameters,
|
|
759
|
+
headers: localVarHeaderParams,
|
|
760
|
+
uri: localVarPath,
|
|
761
|
+
useQuerystring: this._useQuerystring,
|
|
762
|
+
json: true,
|
|
763
|
+
};
|
|
764
|
+
let authenticationPromise = Promise.resolve();
|
|
765
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
766
|
+
let interceptorPromise = authenticationPromise;
|
|
767
|
+
for (const interceptor of this.interceptors) {
|
|
768
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
769
|
+
}
|
|
770
|
+
return interceptorPromise.then(() => {
|
|
771
|
+
if (Object.keys(localVarFormParams).length) {
|
|
772
|
+
if (localVarUseFormData) {
|
|
773
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
774
|
+
}
|
|
775
|
+
else {
|
|
776
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
return new Promise((resolve, reject) => {
|
|
780
|
+
request_1.default(localVarRequestOptions, (error, response, body) => {
|
|
781
|
+
if (error) {
|
|
782
|
+
reject(error);
|
|
783
|
+
}
|
|
784
|
+
else {
|
|
785
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
786
|
+
body = models_1.ObjectSerializer.deserialize(body, "string");
|
|
787
|
+
resolve({ response: response, body: body });
|
|
788
|
+
}
|
|
789
|
+
else {
|
|
790
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
});
|
|
794
|
+
});
|
|
795
|
+
});
|
|
796
|
+
});
|
|
797
|
+
}
|
|
798
|
+
fetchDynamicVouchers(isArchiveIncluded, options = { headers: {} }) {
|
|
799
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
800
|
+
const localVarPath = this.basePath + '/v2/employee/dynamicVouchers/all';
|
|
801
|
+
let localVarQueryParameters = {};
|
|
802
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
803
|
+
const produces = ['application/json'];
|
|
804
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
805
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
806
|
+
}
|
|
807
|
+
else {
|
|
808
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
809
|
+
}
|
|
810
|
+
let localVarFormParams = {};
|
|
811
|
+
if (isArchiveIncluded !== undefined) {
|
|
812
|
+
localVarQueryParameters['isArchiveIncluded'] = models_1.ObjectSerializer.serialize(isArchiveIncluded, "boolean");
|
|
813
|
+
}
|
|
814
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
815
|
+
let localVarUseFormData = false;
|
|
816
|
+
let localVarRequestOptions = {
|
|
817
|
+
method: 'GET',
|
|
818
|
+
qs: localVarQueryParameters,
|
|
819
|
+
headers: localVarHeaderParams,
|
|
820
|
+
uri: localVarPath,
|
|
821
|
+
useQuerystring: this._useQuerystring,
|
|
822
|
+
json: true,
|
|
823
|
+
};
|
|
824
|
+
let authenticationPromise = Promise.resolve();
|
|
825
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
826
|
+
let interceptorPromise = authenticationPromise;
|
|
827
|
+
for (const interceptor of this.interceptors) {
|
|
828
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
829
|
+
}
|
|
830
|
+
return interceptorPromise.then(() => {
|
|
831
|
+
if (Object.keys(localVarFormParams).length) {
|
|
832
|
+
if (localVarUseFormData) {
|
|
833
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
834
|
+
}
|
|
835
|
+
else {
|
|
836
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
return new Promise((resolve, reject) => {
|
|
840
|
+
request_1.default(localVarRequestOptions, (error, response, body) => {
|
|
841
|
+
if (error) {
|
|
842
|
+
reject(error);
|
|
843
|
+
}
|
|
844
|
+
else {
|
|
845
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
846
|
+
body = models_1.ObjectSerializer.deserialize(body, "Array<DynamicVoucher>");
|
|
847
|
+
resolve({ response: response, body: body });
|
|
848
|
+
}
|
|
849
|
+
else {
|
|
850
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
});
|
|
854
|
+
});
|
|
855
|
+
});
|
|
856
|
+
});
|
|
857
|
+
}
|
|
858
|
+
fetchEmployeeStaticVoucherCampaignGroups(options = { headers: {} }) {
|
|
859
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
860
|
+
const localVarPath = this.basePath + '/v2/employee/staticVoucherCampaignGroups/all';
|
|
861
|
+
let localVarQueryParameters = {};
|
|
862
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
863
|
+
const produces = ['application/json'];
|
|
864
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
865
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
866
|
+
}
|
|
867
|
+
else {
|
|
868
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
869
|
+
}
|
|
870
|
+
let localVarFormParams = {};
|
|
871
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
872
|
+
let localVarUseFormData = false;
|
|
873
|
+
let localVarRequestOptions = {
|
|
874
|
+
method: 'GET',
|
|
875
|
+
qs: localVarQueryParameters,
|
|
876
|
+
headers: localVarHeaderParams,
|
|
877
|
+
uri: localVarPath,
|
|
878
|
+
useQuerystring: this._useQuerystring,
|
|
879
|
+
json: true,
|
|
880
|
+
};
|
|
881
|
+
let authenticationPromise = Promise.resolve();
|
|
882
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
883
|
+
let interceptorPromise = authenticationPromise;
|
|
884
|
+
for (const interceptor of this.interceptors) {
|
|
885
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
886
|
+
}
|
|
887
|
+
return interceptorPromise.then(() => {
|
|
888
|
+
if (Object.keys(localVarFormParams).length) {
|
|
889
|
+
if (localVarUseFormData) {
|
|
890
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
891
|
+
}
|
|
892
|
+
else {
|
|
893
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
return new Promise((resolve, reject) => {
|
|
897
|
+
request_1.default(localVarRequestOptions, (error, response, body) => {
|
|
898
|
+
if (error) {
|
|
899
|
+
reject(error);
|
|
900
|
+
}
|
|
901
|
+
else {
|
|
902
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
903
|
+
body = models_1.ObjectSerializer.deserialize(body, "Array<StaticVoucherCampaignGroup>");
|
|
904
|
+
resolve({ response: response, body: body });
|
|
905
|
+
}
|
|
906
|
+
else {
|
|
907
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
});
|
|
911
|
+
});
|
|
912
|
+
});
|
|
913
|
+
});
|
|
914
|
+
}
|
|
915
|
+
fetchEmployeeStaticVoucherCampaigns(isArchiveIncluded, sourceID, options = { headers: {} }) {
|
|
916
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
917
|
+
const localVarPath = this.basePath + '/v2/employee/staticVoucherCampaigns/all';
|
|
918
|
+
let localVarQueryParameters = {};
|
|
919
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
920
|
+
const produces = ['application/json'];
|
|
921
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
922
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
923
|
+
}
|
|
924
|
+
else {
|
|
925
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
926
|
+
}
|
|
927
|
+
let localVarFormParams = {};
|
|
928
|
+
if (isArchiveIncluded !== undefined) {
|
|
929
|
+
localVarQueryParameters['isArchiveIncluded'] = models_1.ObjectSerializer.serialize(isArchiveIncluded, "boolean");
|
|
930
|
+
}
|
|
931
|
+
if (sourceID !== undefined) {
|
|
932
|
+
localVarQueryParameters['sourceID'] = models_1.ObjectSerializer.serialize(sourceID, "number");
|
|
933
|
+
}
|
|
934
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
935
|
+
let localVarUseFormData = false;
|
|
936
|
+
let localVarRequestOptions = {
|
|
937
|
+
method: 'GET',
|
|
938
|
+
qs: localVarQueryParameters,
|
|
939
|
+
headers: localVarHeaderParams,
|
|
940
|
+
uri: localVarPath,
|
|
941
|
+
useQuerystring: this._useQuerystring,
|
|
942
|
+
json: true,
|
|
943
|
+
};
|
|
944
|
+
let authenticationPromise = Promise.resolve();
|
|
945
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
946
|
+
let interceptorPromise = authenticationPromise;
|
|
947
|
+
for (const interceptor of this.interceptors) {
|
|
948
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
949
|
+
}
|
|
950
|
+
return interceptorPromise.then(() => {
|
|
951
|
+
if (Object.keys(localVarFormParams).length) {
|
|
952
|
+
if (localVarUseFormData) {
|
|
953
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
954
|
+
}
|
|
955
|
+
else {
|
|
956
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
return new Promise((resolve, reject) => {
|
|
960
|
+
request_1.default(localVarRequestOptions, (error, response, body) => {
|
|
961
|
+
if (error) {
|
|
962
|
+
reject(error);
|
|
963
|
+
}
|
|
964
|
+
else {
|
|
965
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
966
|
+
body = models_1.ObjectSerializer.deserialize(body, "Array<StaticVoucherCampaign>");
|
|
967
|
+
resolve({ response: response, body: body });
|
|
968
|
+
}
|
|
969
|
+
else {
|
|
970
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
});
|
|
974
|
+
});
|
|
975
|
+
});
|
|
976
|
+
});
|
|
977
|
+
}
|
|
978
|
+
fetchMediaFiles(options = { headers: {} }) {
|
|
979
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
980
|
+
const localVarPath = this.basePath + '/v2/employee/mediaFiles/all';
|
|
981
|
+
let localVarQueryParameters = {};
|
|
982
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
983
|
+
const produces = ['application/json'];
|
|
984
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
985
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
986
|
+
}
|
|
987
|
+
else {
|
|
988
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
989
|
+
}
|
|
990
|
+
let localVarFormParams = {};
|
|
991
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
992
|
+
let localVarUseFormData = false;
|
|
993
|
+
let localVarRequestOptions = {
|
|
994
|
+
method: 'GET',
|
|
995
|
+
qs: localVarQueryParameters,
|
|
996
|
+
headers: localVarHeaderParams,
|
|
997
|
+
uri: localVarPath,
|
|
998
|
+
useQuerystring: this._useQuerystring,
|
|
999
|
+
json: true,
|
|
1000
|
+
};
|
|
1001
|
+
let authenticationPromise = Promise.resolve();
|
|
1002
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1003
|
+
let interceptorPromise = authenticationPromise;
|
|
1004
|
+
for (const interceptor of this.interceptors) {
|
|
1005
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1006
|
+
}
|
|
1007
|
+
return interceptorPromise.then(() => {
|
|
1008
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1009
|
+
if (localVarUseFormData) {
|
|
1010
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1011
|
+
}
|
|
1012
|
+
else {
|
|
1013
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
return new Promise((resolve, reject) => {
|
|
1017
|
+
request_1.default(localVarRequestOptions, (error, response, body) => {
|
|
1018
|
+
if (error) {
|
|
1019
|
+
reject(error);
|
|
1020
|
+
}
|
|
1021
|
+
else {
|
|
1022
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1023
|
+
body = models_1.ObjectSerializer.deserialize(body, "Array<MediaFile>");
|
|
1024
|
+
resolve({ response: response, body: body });
|
|
1025
|
+
}
|
|
1026
|
+
else {
|
|
1027
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1030
|
+
});
|
|
1031
|
+
});
|
|
1032
|
+
});
|
|
1033
|
+
});
|
|
1034
|
+
}
|
|
1035
|
+
fetchMerchant(options = { headers: {} }) {
|
|
1036
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1037
|
+
const localVarPath = this.basePath + '/v2/employee/merchant';
|
|
1038
|
+
let localVarQueryParameters = {};
|
|
1039
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1040
|
+
const produces = ['application/json'];
|
|
1041
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1042
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1043
|
+
}
|
|
1044
|
+
else {
|
|
1045
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1046
|
+
}
|
|
1047
|
+
let localVarFormParams = {};
|
|
1048
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
1049
|
+
let localVarUseFormData = false;
|
|
1050
|
+
let localVarRequestOptions = {
|
|
1051
|
+
method: 'GET',
|
|
1052
|
+
qs: localVarQueryParameters,
|
|
1053
|
+
headers: localVarHeaderParams,
|
|
1054
|
+
uri: localVarPath,
|
|
1055
|
+
useQuerystring: this._useQuerystring,
|
|
1056
|
+
json: true,
|
|
1057
|
+
};
|
|
1058
|
+
let authenticationPromise = Promise.resolve();
|
|
1059
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1060
|
+
let interceptorPromise = authenticationPromise;
|
|
1061
|
+
for (const interceptor of this.interceptors) {
|
|
1062
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1063
|
+
}
|
|
1064
|
+
return interceptorPromise.then(() => {
|
|
1065
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1066
|
+
if (localVarUseFormData) {
|
|
1067
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1068
|
+
}
|
|
1069
|
+
else {
|
|
1070
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
return new Promise((resolve, reject) => {
|
|
1074
|
+
request_1.default(localVarRequestOptions, (error, response, body) => {
|
|
1075
|
+
if (error) {
|
|
1076
|
+
reject(error);
|
|
1077
|
+
}
|
|
1078
|
+
else {
|
|
1079
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1080
|
+
body = models_1.ObjectSerializer.deserialize(body, "any");
|
|
1081
|
+
resolve({ response: response, body: body });
|
|
1082
|
+
}
|
|
1083
|
+
else {
|
|
1084
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1085
|
+
}
|
|
1086
|
+
}
|
|
1087
|
+
});
|
|
1088
|
+
});
|
|
1089
|
+
});
|
|
1090
|
+
});
|
|
1091
|
+
}
|
|
1092
|
+
fetchMessages(options = { headers: {} }) {
|
|
1093
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1094
|
+
const localVarPath = this.basePath + '/v2/employee/messages/all';
|
|
1095
|
+
let localVarQueryParameters = {};
|
|
1096
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1097
|
+
const produces = ['application/json'];
|
|
1098
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1099
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1100
|
+
}
|
|
1101
|
+
else {
|
|
1102
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1103
|
+
}
|
|
1104
|
+
let localVarFormParams = {};
|
|
1105
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
1106
|
+
let localVarUseFormData = false;
|
|
1107
|
+
let localVarRequestOptions = {
|
|
1108
|
+
method: 'GET',
|
|
1109
|
+
qs: localVarQueryParameters,
|
|
1110
|
+
headers: localVarHeaderParams,
|
|
1111
|
+
uri: localVarPath,
|
|
1112
|
+
useQuerystring: this._useQuerystring,
|
|
1113
|
+
json: true,
|
|
1114
|
+
};
|
|
1115
|
+
let authenticationPromise = Promise.resolve();
|
|
1116
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1117
|
+
let interceptorPromise = authenticationPromise;
|
|
1118
|
+
for (const interceptor of this.interceptors) {
|
|
1119
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1120
|
+
}
|
|
1121
|
+
return interceptorPromise.then(() => {
|
|
1122
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1123
|
+
if (localVarUseFormData) {
|
|
1124
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1125
|
+
}
|
|
1126
|
+
else {
|
|
1127
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
return new Promise((resolve, reject) => {
|
|
1131
|
+
request_1.default(localVarRequestOptions, (error, response, body) => {
|
|
1132
|
+
if (error) {
|
|
1133
|
+
reject(error);
|
|
1134
|
+
}
|
|
1135
|
+
else {
|
|
1136
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1137
|
+
body = models_1.ObjectSerializer.deserialize(body, "Array<Message>");
|
|
1138
|
+
resolve({ response: response, body: body });
|
|
1139
|
+
}
|
|
1140
|
+
else {
|
|
1141
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1144
|
+
});
|
|
1145
|
+
});
|
|
1146
|
+
});
|
|
1147
|
+
});
|
|
1148
|
+
}
|
|
1149
|
+
fetchOptInListSource(sourceID, options = { headers: {} }) {
|
|
1150
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1151
|
+
const localVarPath = this.basePath + '/v2/employee/optInListSource/{sourceID}'
|
|
1152
|
+
.replace('{' + 'sourceID' + '}', encodeURIComponent(String(sourceID)));
|
|
1153
|
+
let localVarQueryParameters = {};
|
|
1154
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1155
|
+
const produces = ['application/json'];
|
|
1156
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1157
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1158
|
+
}
|
|
1159
|
+
else {
|
|
1160
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1161
|
+
}
|
|
1162
|
+
let localVarFormParams = {};
|
|
1163
|
+
if (sourceID === null || sourceID === undefined) {
|
|
1164
|
+
throw new Error('Required parameter sourceID was null or undefined when calling fetchOptInListSource.');
|
|
1165
|
+
}
|
|
1166
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
1167
|
+
let localVarUseFormData = false;
|
|
1168
|
+
let localVarRequestOptions = {
|
|
1169
|
+
method: 'GET',
|
|
1170
|
+
qs: localVarQueryParameters,
|
|
1171
|
+
headers: localVarHeaderParams,
|
|
1172
|
+
uri: localVarPath,
|
|
1173
|
+
useQuerystring: this._useQuerystring,
|
|
1174
|
+
json: true,
|
|
1175
|
+
};
|
|
1176
|
+
let authenticationPromise = Promise.resolve();
|
|
1177
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1178
|
+
let interceptorPromise = authenticationPromise;
|
|
1179
|
+
for (const interceptor of this.interceptors) {
|
|
1180
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1181
|
+
}
|
|
1182
|
+
return interceptorPromise.then(() => {
|
|
1183
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1184
|
+
if (localVarUseFormData) {
|
|
1185
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1186
|
+
}
|
|
1187
|
+
else {
|
|
1188
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1189
|
+
}
|
|
1190
|
+
}
|
|
1191
|
+
return new Promise((resolve, reject) => {
|
|
1192
|
+
request_1.default(localVarRequestOptions, (error, response, body) => {
|
|
1193
|
+
if (error) {
|
|
1194
|
+
reject(error);
|
|
1195
|
+
}
|
|
1196
|
+
else {
|
|
1197
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1198
|
+
body = models_1.ObjectSerializer.deserialize(body, "OptInListSource");
|
|
1199
|
+
resolve({ response: response, body: body });
|
|
1200
|
+
}
|
|
1201
|
+
else {
|
|
1202
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1203
|
+
}
|
|
1204
|
+
}
|
|
1205
|
+
});
|
|
1206
|
+
});
|
|
1207
|
+
});
|
|
1208
|
+
});
|
|
1209
|
+
}
|
|
1210
|
+
fetchOptInListSources(options = { headers: {} }) {
|
|
1211
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1212
|
+
const localVarPath = this.basePath + '/v2/employee/optInListSources/all';
|
|
1213
|
+
let localVarQueryParameters = {};
|
|
1214
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1215
|
+
const produces = ['application/json'];
|
|
1216
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1217
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1218
|
+
}
|
|
1219
|
+
else {
|
|
1220
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1221
|
+
}
|
|
1222
|
+
let localVarFormParams = {};
|
|
1223
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
1224
|
+
let localVarUseFormData = false;
|
|
1225
|
+
let localVarRequestOptions = {
|
|
1226
|
+
method: 'GET',
|
|
1227
|
+
qs: localVarQueryParameters,
|
|
1228
|
+
headers: localVarHeaderParams,
|
|
1229
|
+
uri: localVarPath,
|
|
1230
|
+
useQuerystring: this._useQuerystring,
|
|
1231
|
+
json: true,
|
|
1232
|
+
};
|
|
1233
|
+
let authenticationPromise = Promise.resolve();
|
|
1234
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1235
|
+
let interceptorPromise = authenticationPromise;
|
|
1236
|
+
for (const interceptor of this.interceptors) {
|
|
1237
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1238
|
+
}
|
|
1239
|
+
return interceptorPromise.then(() => {
|
|
1240
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1241
|
+
if (localVarUseFormData) {
|
|
1242
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1243
|
+
}
|
|
1244
|
+
else {
|
|
1245
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1248
|
+
return new Promise((resolve, reject) => {
|
|
1249
|
+
request_1.default(localVarRequestOptions, (error, response, body) => {
|
|
1250
|
+
if (error) {
|
|
1251
|
+
reject(error);
|
|
1252
|
+
}
|
|
1253
|
+
else {
|
|
1254
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1255
|
+
body = models_1.ObjectSerializer.deserialize(body, "Array<OptInListSource>");
|
|
1256
|
+
resolve({ response: response, body: body });
|
|
1257
|
+
}
|
|
1258
|
+
else {
|
|
1259
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1260
|
+
}
|
|
1261
|
+
}
|
|
1262
|
+
});
|
|
1263
|
+
});
|
|
1264
|
+
});
|
|
1265
|
+
});
|
|
1266
|
+
}
|
|
1267
|
+
fetchPeerActivity(employeeID, options = { headers: {} }) {
|
|
1268
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1269
|
+
const localVarPath = this.basePath + '/v2/employee/peer/activity/{employeeID}'
|
|
1270
|
+
.replace('{' + 'employeeID' + '}', encodeURIComponent(String(employeeID)));
|
|
1271
|
+
let localVarQueryParameters = {};
|
|
1272
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1273
|
+
const produces = ['application/json'];
|
|
1274
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1275
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1276
|
+
}
|
|
1277
|
+
else {
|
|
1278
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1279
|
+
}
|
|
1280
|
+
let localVarFormParams = {};
|
|
1281
|
+
if (employeeID === null || employeeID === undefined) {
|
|
1282
|
+
throw new Error('Required parameter employeeID was null or undefined when calling fetchPeerActivity.');
|
|
1283
|
+
}
|
|
1284
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
1285
|
+
let localVarUseFormData = false;
|
|
1286
|
+
let localVarRequestOptions = {
|
|
1287
|
+
method: 'GET',
|
|
1288
|
+
qs: localVarQueryParameters,
|
|
1289
|
+
headers: localVarHeaderParams,
|
|
1290
|
+
uri: localVarPath,
|
|
1291
|
+
useQuerystring: this._useQuerystring,
|
|
1292
|
+
json: true,
|
|
1293
|
+
};
|
|
1294
|
+
let authenticationPromise = Promise.resolve();
|
|
1295
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1296
|
+
let interceptorPromise = authenticationPromise;
|
|
1297
|
+
for (const interceptor of this.interceptors) {
|
|
1298
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1299
|
+
}
|
|
1300
|
+
return interceptorPromise.then(() => {
|
|
1301
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1302
|
+
if (localVarUseFormData) {
|
|
1303
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1304
|
+
}
|
|
1305
|
+
else {
|
|
1306
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1309
|
+
return new Promise((resolve, reject) => {
|
|
1310
|
+
request_1.default(localVarRequestOptions, (error, response, body) => {
|
|
1311
|
+
if (error) {
|
|
1312
|
+
reject(error);
|
|
1313
|
+
}
|
|
1314
|
+
else {
|
|
1315
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1316
|
+
body = models_1.ObjectSerializer.deserialize(body, "Array<EmployeeActivityLog>");
|
|
1317
|
+
resolve({ response: response, body: body });
|
|
1318
|
+
}
|
|
1319
|
+
else {
|
|
1320
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1321
|
+
}
|
|
1322
|
+
}
|
|
1323
|
+
});
|
|
1324
|
+
});
|
|
1325
|
+
});
|
|
1326
|
+
});
|
|
1327
|
+
}
|
|
1328
|
+
fetchPeersPermissions(userID, options = { headers: {} }) {
|
|
1329
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1330
|
+
const localVarPath = this.basePath + '/v2/employee/peer/permissions/{userID}'
|
|
1331
|
+
.replace('{' + 'userID' + '}', encodeURIComponent(String(userID)));
|
|
1332
|
+
let localVarQueryParameters = {};
|
|
1333
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1334
|
+
const produces = ['application/json'];
|
|
1335
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1336
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1337
|
+
}
|
|
1338
|
+
else {
|
|
1339
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1340
|
+
}
|
|
1341
|
+
let localVarFormParams = {};
|
|
1342
|
+
if (userID === null || userID === undefined) {
|
|
1343
|
+
throw new Error('Required parameter userID was null or undefined when calling fetchPeersPermissions.');
|
|
1344
|
+
}
|
|
1345
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
1346
|
+
let localVarUseFormData = false;
|
|
1347
|
+
let localVarRequestOptions = {
|
|
1348
|
+
method: 'GET',
|
|
1349
|
+
qs: localVarQueryParameters,
|
|
1350
|
+
headers: localVarHeaderParams,
|
|
1351
|
+
uri: localVarPath,
|
|
1352
|
+
useQuerystring: this._useQuerystring,
|
|
1353
|
+
json: true,
|
|
1354
|
+
};
|
|
1355
|
+
let authenticationPromise = Promise.resolve();
|
|
1356
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1357
|
+
let interceptorPromise = authenticationPromise;
|
|
1358
|
+
for (const interceptor of this.interceptors) {
|
|
1359
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1360
|
+
}
|
|
1361
|
+
return interceptorPromise.then(() => {
|
|
1362
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1363
|
+
if (localVarUseFormData) {
|
|
1364
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1365
|
+
}
|
|
1366
|
+
else {
|
|
1367
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1368
|
+
}
|
|
1369
|
+
}
|
|
1370
|
+
return new Promise((resolve, reject) => {
|
|
1371
|
+
request_1.default(localVarRequestOptions, (error, response, body) => {
|
|
1372
|
+
if (error) {
|
|
1373
|
+
reject(error);
|
|
1374
|
+
}
|
|
1375
|
+
else {
|
|
1376
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1377
|
+
body = models_1.ObjectSerializer.deserialize(body, "Array<any>");
|
|
1378
|
+
resolve({ response: response, body: body });
|
|
1379
|
+
}
|
|
1380
|
+
else {
|
|
1381
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1382
|
+
}
|
|
1383
|
+
}
|
|
1384
|
+
});
|
|
1385
|
+
});
|
|
1386
|
+
});
|
|
1387
|
+
});
|
|
1388
|
+
}
|
|
1389
|
+
importClubMembers(inlineObject10, options = { headers: {} }) {
|
|
1390
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1391
|
+
const localVarPath = this.basePath + '/v2/employee/import/members';
|
|
1392
|
+
let localVarQueryParameters = {};
|
|
1393
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1394
|
+
const produces = ['application/json'];
|
|
1395
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1396
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1397
|
+
}
|
|
1398
|
+
else {
|
|
1399
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1400
|
+
}
|
|
1401
|
+
let localVarFormParams = {};
|
|
1402
|
+
if (inlineObject10 === null || inlineObject10 === undefined) {
|
|
1403
|
+
throw new Error('Required parameter inlineObject10 was null or undefined when calling importClubMembers.');
|
|
1404
|
+
}
|
|
1405
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
1406
|
+
let localVarUseFormData = false;
|
|
1407
|
+
let localVarRequestOptions = {
|
|
1408
|
+
method: 'POST',
|
|
1409
|
+
qs: localVarQueryParameters,
|
|
1410
|
+
headers: localVarHeaderParams,
|
|
1411
|
+
uri: localVarPath,
|
|
1412
|
+
useQuerystring: this._useQuerystring,
|
|
1413
|
+
json: true,
|
|
1414
|
+
body: models_1.ObjectSerializer.serialize(inlineObject10, "InlineObject10")
|
|
1415
|
+
};
|
|
1416
|
+
let authenticationPromise = Promise.resolve();
|
|
1417
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1418
|
+
let interceptorPromise = authenticationPromise;
|
|
1419
|
+
for (const interceptor of this.interceptors) {
|
|
1420
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1421
|
+
}
|
|
1422
|
+
return interceptorPromise.then(() => {
|
|
1423
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1424
|
+
if (localVarUseFormData) {
|
|
1425
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1426
|
+
}
|
|
1427
|
+
else {
|
|
1428
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1429
|
+
}
|
|
1430
|
+
}
|
|
1431
|
+
return new Promise((resolve, reject) => {
|
|
1432
|
+
request_1.default(localVarRequestOptions, (error, response, body) => {
|
|
1433
|
+
if (error) {
|
|
1434
|
+
reject(error);
|
|
1435
|
+
}
|
|
1436
|
+
else {
|
|
1437
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1438
|
+
body = models_1.ObjectSerializer.deserialize(body, "string");
|
|
1439
|
+
resolve({ response: response, body: body });
|
|
1440
|
+
}
|
|
1441
|
+
else {
|
|
1442
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1443
|
+
}
|
|
1444
|
+
}
|
|
1445
|
+
});
|
|
1446
|
+
});
|
|
1447
|
+
});
|
|
1448
|
+
});
|
|
1449
|
+
}
|
|
1450
|
+
importMerchantCredits(inlineObject11, options = { headers: {} }) {
|
|
1451
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1452
|
+
const localVarPath = this.basePath + '/v2/employee/import/merchantCredits';
|
|
1453
|
+
let localVarQueryParameters = {};
|
|
1454
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1455
|
+
const produces = ['application/json'];
|
|
1456
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1457
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1458
|
+
}
|
|
1459
|
+
else {
|
|
1460
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1461
|
+
}
|
|
1462
|
+
let localVarFormParams = {};
|
|
1463
|
+
if (inlineObject11 === null || inlineObject11 === undefined) {
|
|
1464
|
+
throw new Error('Required parameter inlineObject11 was null or undefined when calling importMerchantCredits.');
|
|
1465
|
+
}
|
|
1466
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
1467
|
+
let localVarUseFormData = false;
|
|
1468
|
+
let localVarRequestOptions = {
|
|
1469
|
+
method: 'POST',
|
|
1470
|
+
qs: localVarQueryParameters,
|
|
1471
|
+
headers: localVarHeaderParams,
|
|
1472
|
+
uri: localVarPath,
|
|
1473
|
+
useQuerystring: this._useQuerystring,
|
|
1474
|
+
json: true,
|
|
1475
|
+
body: models_1.ObjectSerializer.serialize(inlineObject11, "InlineObject11")
|
|
1476
|
+
};
|
|
1477
|
+
let authenticationPromise = Promise.resolve();
|
|
1478
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1479
|
+
let interceptorPromise = authenticationPromise;
|
|
1480
|
+
for (const interceptor of this.interceptors) {
|
|
1481
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1482
|
+
}
|
|
1483
|
+
return interceptorPromise.then(() => {
|
|
1484
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1485
|
+
if (localVarUseFormData) {
|
|
1486
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1487
|
+
}
|
|
1488
|
+
else {
|
|
1489
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1490
|
+
}
|
|
1491
|
+
}
|
|
1492
|
+
return new Promise((resolve, reject) => {
|
|
1493
|
+
request_1.default(localVarRequestOptions, (error, response, body) => {
|
|
1494
|
+
if (error) {
|
|
1495
|
+
reject(error);
|
|
1496
|
+
}
|
|
1497
|
+
else {
|
|
1498
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1499
|
+
body = models_1.ObjectSerializer.deserialize(body, "string");
|
|
1500
|
+
resolve({ response: response, body: body });
|
|
1501
|
+
}
|
|
1502
|
+
else {
|
|
1503
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1504
|
+
}
|
|
1505
|
+
}
|
|
1506
|
+
});
|
|
1507
|
+
});
|
|
1508
|
+
});
|
|
1509
|
+
});
|
|
1510
|
+
}
|
|
1511
|
+
loadWebpagesOfEmployee(options = { headers: {} }) {
|
|
1512
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1513
|
+
const localVarPath = this.basePath + '/v2/employee/webpages/all';
|
|
1514
|
+
let localVarQueryParameters = {};
|
|
1515
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1516
|
+
const produces = ['application/json'];
|
|
1517
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1518
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1519
|
+
}
|
|
1520
|
+
else {
|
|
1521
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1522
|
+
}
|
|
1523
|
+
let localVarFormParams = {};
|
|
1524
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
1525
|
+
let localVarUseFormData = false;
|
|
1526
|
+
let localVarRequestOptions = {
|
|
1527
|
+
method: 'GET',
|
|
1528
|
+
qs: localVarQueryParameters,
|
|
1529
|
+
headers: localVarHeaderParams,
|
|
1530
|
+
uri: localVarPath,
|
|
1531
|
+
useQuerystring: this._useQuerystring,
|
|
1532
|
+
json: true,
|
|
1533
|
+
};
|
|
1534
|
+
let authenticationPromise = Promise.resolve();
|
|
1535
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1536
|
+
let interceptorPromise = authenticationPromise;
|
|
1537
|
+
for (const interceptor of this.interceptors) {
|
|
1538
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1539
|
+
}
|
|
1540
|
+
return interceptorPromise.then(() => {
|
|
1541
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1542
|
+
if (localVarUseFormData) {
|
|
1543
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1544
|
+
}
|
|
1545
|
+
else {
|
|
1546
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1547
|
+
}
|
|
1548
|
+
}
|
|
1549
|
+
return new Promise((resolve, reject) => {
|
|
1550
|
+
request_1.default(localVarRequestOptions, (error, response, body) => {
|
|
1551
|
+
if (error) {
|
|
1552
|
+
reject(error);
|
|
1553
|
+
}
|
|
1554
|
+
else {
|
|
1555
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1556
|
+
body = models_1.ObjectSerializer.deserialize(body, "Array<Webpage>");
|
|
1557
|
+
resolve({ response: response, body: body });
|
|
1558
|
+
}
|
|
1559
|
+
else {
|
|
1560
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1561
|
+
}
|
|
1562
|
+
}
|
|
1563
|
+
});
|
|
1564
|
+
});
|
|
1565
|
+
});
|
|
1566
|
+
});
|
|
1567
|
+
}
|
|
1568
|
+
modifyPeersRoles(userID, inlineObject5, options = { headers: {} }) {
|
|
1569
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1570
|
+
const localVarPath = this.basePath + '/v2/employee/peer/permissions/{userID}'
|
|
1571
|
+
.replace('{' + 'userID' + '}', encodeURIComponent(String(userID)));
|
|
1572
|
+
let localVarQueryParameters = {};
|
|
1573
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1574
|
+
const produces = ['application/json'];
|
|
1575
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1576
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1577
|
+
}
|
|
1578
|
+
else {
|
|
1579
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1580
|
+
}
|
|
1581
|
+
let localVarFormParams = {};
|
|
1582
|
+
if (userID === null || userID === undefined) {
|
|
1583
|
+
throw new Error('Required parameter userID was null or undefined when calling modifyPeersRoles.');
|
|
1584
|
+
}
|
|
1585
|
+
if (inlineObject5 === null || inlineObject5 === undefined) {
|
|
1586
|
+
throw new Error('Required parameter inlineObject5 was null or undefined when calling modifyPeersRoles.');
|
|
1587
|
+
}
|
|
1588
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
1589
|
+
let localVarUseFormData = false;
|
|
1590
|
+
let localVarRequestOptions = {
|
|
1591
|
+
method: 'PUT',
|
|
1592
|
+
qs: localVarQueryParameters,
|
|
1593
|
+
headers: localVarHeaderParams,
|
|
1594
|
+
uri: localVarPath,
|
|
1595
|
+
useQuerystring: this._useQuerystring,
|
|
1596
|
+
json: true,
|
|
1597
|
+
body: models_1.ObjectSerializer.serialize(inlineObject5, "InlineObject5")
|
|
1598
|
+
};
|
|
1599
|
+
let authenticationPromise = Promise.resolve();
|
|
1600
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1601
|
+
let interceptorPromise = authenticationPromise;
|
|
1602
|
+
for (const interceptor of this.interceptors) {
|
|
1603
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1604
|
+
}
|
|
1605
|
+
return interceptorPromise.then(() => {
|
|
1606
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1607
|
+
if (localVarUseFormData) {
|
|
1608
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1609
|
+
}
|
|
1610
|
+
else {
|
|
1611
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1612
|
+
}
|
|
1613
|
+
}
|
|
1614
|
+
return new Promise((resolve, reject) => {
|
|
1615
|
+
request_1.default(localVarRequestOptions, (error, response, body) => {
|
|
1616
|
+
if (error) {
|
|
1617
|
+
reject(error);
|
|
1618
|
+
}
|
|
1619
|
+
else {
|
|
1620
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1621
|
+
body = models_1.ObjectSerializer.deserialize(body, "Array<any>");
|
|
1622
|
+
resolve({ response: response, body: body });
|
|
1623
|
+
}
|
|
1624
|
+
else {
|
|
1625
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1626
|
+
}
|
|
1627
|
+
}
|
|
1628
|
+
});
|
|
1629
|
+
});
|
|
1630
|
+
});
|
|
1631
|
+
});
|
|
1632
|
+
}
|
|
1633
|
+
presignFile(inlineObject8, options = { headers: {} }) {
|
|
1634
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1635
|
+
const localVarPath = this.basePath + '/v2/employee/file/presign';
|
|
1636
|
+
let localVarQueryParameters = {};
|
|
1637
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1638
|
+
const produces = ['application/json'];
|
|
1639
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1640
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1641
|
+
}
|
|
1642
|
+
else {
|
|
1643
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1644
|
+
}
|
|
1645
|
+
let localVarFormParams = {};
|
|
1646
|
+
if (inlineObject8 === null || inlineObject8 === undefined) {
|
|
1647
|
+
throw new Error('Required parameter inlineObject8 was null or undefined when calling presignFile.');
|
|
1648
|
+
}
|
|
1649
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
1650
|
+
let localVarUseFormData = false;
|
|
1651
|
+
let localVarRequestOptions = {
|
|
1652
|
+
method: 'POST',
|
|
1653
|
+
qs: localVarQueryParameters,
|
|
1654
|
+
headers: localVarHeaderParams,
|
|
1655
|
+
uri: localVarPath,
|
|
1656
|
+
useQuerystring: this._useQuerystring,
|
|
1657
|
+
json: true,
|
|
1658
|
+
body: models_1.ObjectSerializer.serialize(inlineObject8, "InlineObject8")
|
|
1659
|
+
};
|
|
1660
|
+
let authenticationPromise = Promise.resolve();
|
|
1661
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1662
|
+
let interceptorPromise = authenticationPromise;
|
|
1663
|
+
for (const interceptor of this.interceptors) {
|
|
1664
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1665
|
+
}
|
|
1666
|
+
return interceptorPromise.then(() => {
|
|
1667
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1668
|
+
if (localVarUseFormData) {
|
|
1669
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1670
|
+
}
|
|
1671
|
+
else {
|
|
1672
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1673
|
+
}
|
|
1674
|
+
}
|
|
1675
|
+
return new Promise((resolve, reject) => {
|
|
1676
|
+
request_1.default(localVarRequestOptions, (error, response, body) => {
|
|
1677
|
+
if (error) {
|
|
1678
|
+
reject(error);
|
|
1679
|
+
}
|
|
1680
|
+
else {
|
|
1681
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1682
|
+
body = models_1.ObjectSerializer.deserialize(body, "PresignedPost");
|
|
1683
|
+
resolve({ response: response, body: body });
|
|
1684
|
+
}
|
|
1685
|
+
else {
|
|
1686
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1687
|
+
}
|
|
1688
|
+
}
|
|
1689
|
+
});
|
|
1690
|
+
});
|
|
1691
|
+
});
|
|
1692
|
+
});
|
|
1693
|
+
}
|
|
1694
|
+
removePeerFromAllRoles(userID, options = { headers: {} }) {
|
|
1695
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1696
|
+
const localVarPath = this.basePath + '/v2/employee/peer/permissions/{userID}'
|
|
1697
|
+
.replace('{' + 'userID' + '}', encodeURIComponent(String(userID)));
|
|
1698
|
+
let localVarQueryParameters = {};
|
|
1699
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1700
|
+
const produces = ['application/json'];
|
|
1701
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1702
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1703
|
+
}
|
|
1704
|
+
else {
|
|
1705
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1706
|
+
}
|
|
1707
|
+
let localVarFormParams = {};
|
|
1708
|
+
if (userID === null || userID === undefined) {
|
|
1709
|
+
throw new Error('Required parameter userID was null or undefined when calling removePeerFromAllRoles.');
|
|
1710
|
+
}
|
|
1711
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
1712
|
+
let localVarUseFormData = false;
|
|
1713
|
+
let localVarRequestOptions = {
|
|
1714
|
+
method: 'DELETE',
|
|
1715
|
+
qs: localVarQueryParameters,
|
|
1716
|
+
headers: localVarHeaderParams,
|
|
1717
|
+
uri: localVarPath,
|
|
1718
|
+
useQuerystring: this._useQuerystring,
|
|
1719
|
+
json: true,
|
|
1720
|
+
};
|
|
1721
|
+
let authenticationPromise = Promise.resolve();
|
|
1722
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1723
|
+
let interceptorPromise = authenticationPromise;
|
|
1724
|
+
for (const interceptor of this.interceptors) {
|
|
1725
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1726
|
+
}
|
|
1727
|
+
return interceptorPromise.then(() => {
|
|
1728
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1729
|
+
if (localVarUseFormData) {
|
|
1730
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1731
|
+
}
|
|
1732
|
+
else {
|
|
1733
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1734
|
+
}
|
|
1735
|
+
}
|
|
1736
|
+
return new Promise((resolve, reject) => {
|
|
1737
|
+
request_1.default(localVarRequestOptions, (error, response, body) => {
|
|
1738
|
+
if (error) {
|
|
1739
|
+
reject(error);
|
|
1740
|
+
}
|
|
1741
|
+
else {
|
|
1742
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1743
|
+
body = models_1.ObjectSerializer.deserialize(body, "boolean");
|
|
1744
|
+
resolve({ response: response, body: body });
|
|
1745
|
+
}
|
|
1746
|
+
else {
|
|
1747
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1748
|
+
}
|
|
1749
|
+
}
|
|
1750
|
+
});
|
|
1751
|
+
});
|
|
1752
|
+
});
|
|
1753
|
+
});
|
|
1754
|
+
}
|
|
1755
|
+
scheduleAdvertisementCredit(advertisementCreditID, inlineObject20, options = { headers: {} }) {
|
|
1756
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1757
|
+
const localVarPath = this.basePath + '/v2/employee/sms/schedule/adCredit/{advertisementCreditID}'
|
|
1758
|
+
.replace('{' + 'advertisementCreditID' + '}', encodeURIComponent(String(advertisementCreditID)));
|
|
1759
|
+
let localVarQueryParameters = {};
|
|
1760
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1761
|
+
const produces = ['application/json'];
|
|
1762
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1763
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1764
|
+
}
|
|
1765
|
+
else {
|
|
1766
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1767
|
+
}
|
|
1768
|
+
let localVarFormParams = {};
|
|
1769
|
+
if (advertisementCreditID === null || advertisementCreditID === undefined) {
|
|
1770
|
+
throw new Error('Required parameter advertisementCreditID was null or undefined when calling scheduleAdvertisementCredit.');
|
|
1771
|
+
}
|
|
1772
|
+
if (inlineObject20 === null || inlineObject20 === undefined) {
|
|
1773
|
+
throw new Error('Required parameter inlineObject20 was null or undefined when calling scheduleAdvertisementCredit.');
|
|
1774
|
+
}
|
|
1775
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
1776
|
+
let localVarUseFormData = false;
|
|
1777
|
+
let localVarRequestOptions = {
|
|
1778
|
+
method: 'POST',
|
|
1779
|
+
qs: localVarQueryParameters,
|
|
1780
|
+
headers: localVarHeaderParams,
|
|
1781
|
+
uri: localVarPath,
|
|
1782
|
+
useQuerystring: this._useQuerystring,
|
|
1783
|
+
json: true,
|
|
1784
|
+
body: models_1.ObjectSerializer.serialize(inlineObject20, "InlineObject20")
|
|
1785
|
+
};
|
|
1786
|
+
let authenticationPromise = Promise.resolve();
|
|
1787
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1788
|
+
let interceptorPromise = authenticationPromise;
|
|
1789
|
+
for (const interceptor of this.interceptors) {
|
|
1790
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1791
|
+
}
|
|
1792
|
+
return interceptorPromise.then(() => {
|
|
1793
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1794
|
+
if (localVarUseFormData) {
|
|
1795
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1796
|
+
}
|
|
1797
|
+
else {
|
|
1798
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1799
|
+
}
|
|
1800
|
+
}
|
|
1801
|
+
return new Promise((resolve, reject) => {
|
|
1802
|
+
request_1.default(localVarRequestOptions, (error, response, body) => {
|
|
1803
|
+
if (error) {
|
|
1804
|
+
reject(error);
|
|
1805
|
+
}
|
|
1806
|
+
else {
|
|
1807
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1808
|
+
body = models_1.ObjectSerializer.deserialize(body, "AdvertisementCreditBroadcast");
|
|
1809
|
+
resolve({ response: response, body: body });
|
|
1810
|
+
}
|
|
1811
|
+
else {
|
|
1812
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1813
|
+
}
|
|
1814
|
+
}
|
|
1815
|
+
});
|
|
1816
|
+
});
|
|
1817
|
+
});
|
|
1818
|
+
});
|
|
1819
|
+
}
|
|
1820
|
+
scheduleDynamicVoucher(dynamicVoucherID, inlineObject18, options = { headers: {} }) {
|
|
1821
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1822
|
+
const localVarPath = this.basePath + '/v2/employee/sms/schedule/dynamicVoucher/{dynamicVoucherID}'
|
|
1823
|
+
.replace('{' + 'dynamicVoucherID' + '}', encodeURIComponent(String(dynamicVoucherID)));
|
|
1824
|
+
let localVarQueryParameters = {};
|
|
1825
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1826
|
+
const produces = ['application/json'];
|
|
1827
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1828
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1829
|
+
}
|
|
1830
|
+
else {
|
|
1831
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1832
|
+
}
|
|
1833
|
+
let localVarFormParams = {};
|
|
1834
|
+
if (dynamicVoucherID === null || dynamicVoucherID === undefined) {
|
|
1835
|
+
throw new Error('Required parameter dynamicVoucherID was null or undefined when calling scheduleDynamicVoucher.');
|
|
1836
|
+
}
|
|
1837
|
+
if (inlineObject18 === null || inlineObject18 === undefined) {
|
|
1838
|
+
throw new Error('Required parameter inlineObject18 was null or undefined when calling scheduleDynamicVoucher.');
|
|
1839
|
+
}
|
|
1840
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
1841
|
+
let localVarUseFormData = false;
|
|
1842
|
+
let localVarRequestOptions = {
|
|
1843
|
+
method: 'POST',
|
|
1844
|
+
qs: localVarQueryParameters,
|
|
1845
|
+
headers: localVarHeaderParams,
|
|
1846
|
+
uri: localVarPath,
|
|
1847
|
+
useQuerystring: this._useQuerystring,
|
|
1848
|
+
json: true,
|
|
1849
|
+
body: models_1.ObjectSerializer.serialize(inlineObject18, "InlineObject18")
|
|
1850
|
+
};
|
|
1851
|
+
let authenticationPromise = Promise.resolve();
|
|
1852
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1853
|
+
let interceptorPromise = authenticationPromise;
|
|
1854
|
+
for (const interceptor of this.interceptors) {
|
|
1855
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1856
|
+
}
|
|
1857
|
+
return interceptorPromise.then(() => {
|
|
1858
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1859
|
+
if (localVarUseFormData) {
|
|
1860
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1861
|
+
}
|
|
1862
|
+
else {
|
|
1863
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1864
|
+
}
|
|
1865
|
+
}
|
|
1866
|
+
return new Promise((resolve, reject) => {
|
|
1867
|
+
request_1.default(localVarRequestOptions, (error, response, body) => {
|
|
1868
|
+
if (error) {
|
|
1869
|
+
reject(error);
|
|
1870
|
+
}
|
|
1871
|
+
else {
|
|
1872
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1873
|
+
body = models_1.ObjectSerializer.deserialize(body, "DynamicVoucherBroadcast");
|
|
1874
|
+
resolve({ response: response, body: body });
|
|
1875
|
+
}
|
|
1876
|
+
else {
|
|
1877
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1878
|
+
}
|
|
1879
|
+
}
|
|
1880
|
+
});
|
|
1881
|
+
});
|
|
1882
|
+
});
|
|
1883
|
+
});
|
|
1884
|
+
}
|
|
1885
|
+
scheduleDynamicVoucherToRecipient(dynamicVoucherID, inlineObject19, options = { headers: {} }) {
|
|
1886
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1887
|
+
const localVarPath = this.basePath + '/v2/employee/sms/schedule/recipient/dynamicVoucher/{dynamicVoucherID}'
|
|
1888
|
+
.replace('{' + 'dynamicVoucherID' + '}', encodeURIComponent(String(dynamicVoucherID)));
|
|
1889
|
+
let localVarQueryParameters = {};
|
|
1890
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1891
|
+
const produces = ['application/json'];
|
|
1892
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1893
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1894
|
+
}
|
|
1895
|
+
else {
|
|
1896
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1897
|
+
}
|
|
1898
|
+
let localVarFormParams = {};
|
|
1899
|
+
if (dynamicVoucherID === null || dynamicVoucherID === undefined) {
|
|
1900
|
+
throw new Error('Required parameter dynamicVoucherID was null or undefined when calling scheduleDynamicVoucherToRecipient.');
|
|
1901
|
+
}
|
|
1902
|
+
if (inlineObject19 === null || inlineObject19 === undefined) {
|
|
1903
|
+
throw new Error('Required parameter inlineObject19 was null or undefined when calling scheduleDynamicVoucherToRecipient.');
|
|
1904
|
+
}
|
|
1905
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
1906
|
+
let localVarUseFormData = false;
|
|
1907
|
+
let localVarRequestOptions = {
|
|
1908
|
+
method: 'POST',
|
|
1909
|
+
qs: localVarQueryParameters,
|
|
1910
|
+
headers: localVarHeaderParams,
|
|
1911
|
+
uri: localVarPath,
|
|
1912
|
+
useQuerystring: this._useQuerystring,
|
|
1913
|
+
json: true,
|
|
1914
|
+
body: models_1.ObjectSerializer.serialize(inlineObject19, "InlineObject19")
|
|
1915
|
+
};
|
|
1916
|
+
let authenticationPromise = Promise.resolve();
|
|
1917
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1918
|
+
let interceptorPromise = authenticationPromise;
|
|
1919
|
+
for (const interceptor of this.interceptors) {
|
|
1920
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1921
|
+
}
|
|
1922
|
+
return interceptorPromise.then(() => {
|
|
1923
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1924
|
+
if (localVarUseFormData) {
|
|
1925
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1926
|
+
}
|
|
1927
|
+
else {
|
|
1928
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1929
|
+
}
|
|
1930
|
+
}
|
|
1931
|
+
return new Promise((resolve, reject) => {
|
|
1932
|
+
request_1.default(localVarRequestOptions, (error, response, body) => {
|
|
1933
|
+
if (error) {
|
|
1934
|
+
reject(error);
|
|
1935
|
+
}
|
|
1936
|
+
else {
|
|
1937
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1938
|
+
body = models_1.ObjectSerializer.deserialize(body, "DynamicVoucherBroadcast");
|
|
1939
|
+
resolve({ response: response, body: body });
|
|
1940
|
+
}
|
|
1941
|
+
else {
|
|
1942
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1943
|
+
}
|
|
1944
|
+
}
|
|
1945
|
+
});
|
|
1946
|
+
});
|
|
1947
|
+
});
|
|
1948
|
+
});
|
|
1949
|
+
}
|
|
1950
|
+
scheduleSimpleSMS(inlineObject16, options = { headers: {} }) {
|
|
1951
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1952
|
+
const localVarPath = this.basePath + '/v2/employee/sms/schedule/simple';
|
|
1953
|
+
let localVarQueryParameters = {};
|
|
1954
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1955
|
+
const produces = ['application/json'];
|
|
1956
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1957
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1958
|
+
}
|
|
1959
|
+
else {
|
|
1960
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1961
|
+
}
|
|
1962
|
+
let localVarFormParams = {};
|
|
1963
|
+
if (inlineObject16 === null || inlineObject16 === undefined) {
|
|
1964
|
+
throw new Error('Required parameter inlineObject16 was null or undefined when calling scheduleSimpleSMS.');
|
|
1965
|
+
}
|
|
1966
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
1967
|
+
let localVarUseFormData = false;
|
|
1968
|
+
let localVarRequestOptions = {
|
|
1969
|
+
method: 'POST',
|
|
1970
|
+
qs: localVarQueryParameters,
|
|
1971
|
+
headers: localVarHeaderParams,
|
|
1972
|
+
uri: localVarPath,
|
|
1973
|
+
useQuerystring: this._useQuerystring,
|
|
1974
|
+
json: true,
|
|
1975
|
+
body: models_1.ObjectSerializer.serialize(inlineObject16, "InlineObject16")
|
|
1976
|
+
};
|
|
1977
|
+
let authenticationPromise = Promise.resolve();
|
|
1978
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1979
|
+
let interceptorPromise = authenticationPromise;
|
|
1980
|
+
for (const interceptor of this.interceptors) {
|
|
1981
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1982
|
+
}
|
|
1983
|
+
return interceptorPromise.then(() => {
|
|
1984
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1985
|
+
if (localVarUseFormData) {
|
|
1986
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1987
|
+
}
|
|
1988
|
+
else {
|
|
1989
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1990
|
+
}
|
|
1991
|
+
}
|
|
1992
|
+
return new Promise((resolve, reject) => {
|
|
1993
|
+
request_1.default(localVarRequestOptions, (error, response, body) => {
|
|
1994
|
+
if (error) {
|
|
1995
|
+
reject(error);
|
|
1996
|
+
}
|
|
1997
|
+
else {
|
|
1998
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1999
|
+
body = models_1.ObjectSerializer.deserialize(body, "SimpleSMSBroadcast");
|
|
2000
|
+
resolve({ response: response, body: body });
|
|
2001
|
+
}
|
|
2002
|
+
else {
|
|
2003
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
2004
|
+
}
|
|
2005
|
+
}
|
|
2006
|
+
});
|
|
2007
|
+
});
|
|
2008
|
+
});
|
|
2009
|
+
});
|
|
2010
|
+
}
|
|
2011
|
+
scheduleSimpleSMSToRecipient(inlineObject17, options = { headers: {} }) {
|
|
2012
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2013
|
+
const localVarPath = this.basePath + '/v2/employee/sms/schedule/recipient/simple';
|
|
2014
|
+
let localVarQueryParameters = {};
|
|
2015
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
2016
|
+
const produces = ['application/json'];
|
|
2017
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
2018
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
2019
|
+
}
|
|
2020
|
+
else {
|
|
2021
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
2022
|
+
}
|
|
2023
|
+
let localVarFormParams = {};
|
|
2024
|
+
if (inlineObject17 === null || inlineObject17 === undefined) {
|
|
2025
|
+
throw new Error('Required parameter inlineObject17 was null or undefined when calling scheduleSimpleSMSToRecipient.');
|
|
2026
|
+
}
|
|
2027
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
2028
|
+
let localVarUseFormData = false;
|
|
2029
|
+
let localVarRequestOptions = {
|
|
2030
|
+
method: 'POST',
|
|
2031
|
+
qs: localVarQueryParameters,
|
|
2032
|
+
headers: localVarHeaderParams,
|
|
2033
|
+
uri: localVarPath,
|
|
2034
|
+
useQuerystring: this._useQuerystring,
|
|
2035
|
+
json: true,
|
|
2036
|
+
body: models_1.ObjectSerializer.serialize(inlineObject17, "InlineObject17")
|
|
2037
|
+
};
|
|
2038
|
+
let authenticationPromise = Promise.resolve();
|
|
2039
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2040
|
+
let interceptorPromise = authenticationPromise;
|
|
2041
|
+
for (const interceptor of this.interceptors) {
|
|
2042
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
2043
|
+
}
|
|
2044
|
+
return interceptorPromise.then(() => {
|
|
2045
|
+
if (Object.keys(localVarFormParams).length) {
|
|
2046
|
+
if (localVarUseFormData) {
|
|
2047
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
2048
|
+
}
|
|
2049
|
+
else {
|
|
2050
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
2051
|
+
}
|
|
2052
|
+
}
|
|
2053
|
+
return new Promise((resolve, reject) => {
|
|
2054
|
+
request_1.default(localVarRequestOptions, (error, response, body) => {
|
|
2055
|
+
if (error) {
|
|
2056
|
+
reject(error);
|
|
2057
|
+
}
|
|
2058
|
+
else {
|
|
2059
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2060
|
+
body = models_1.ObjectSerializer.deserialize(body, "SimpleSMSBroadcast");
|
|
2061
|
+
resolve({ response: response, body: body });
|
|
2062
|
+
}
|
|
2063
|
+
else {
|
|
2064
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
2065
|
+
}
|
|
2066
|
+
}
|
|
2067
|
+
});
|
|
2068
|
+
});
|
|
2069
|
+
});
|
|
2070
|
+
});
|
|
2071
|
+
}
|
|
2072
|
+
sendHelpDeskResponse(inlineObject13, options = { headers: {} }) {
|
|
2073
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2074
|
+
const localVarPath = this.basePath + '/v2/employee/helpDesk/response';
|
|
2075
|
+
let localVarQueryParameters = {};
|
|
2076
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
2077
|
+
const produces = ['application/json'];
|
|
2078
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
2079
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
2080
|
+
}
|
|
2081
|
+
else {
|
|
2082
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
2083
|
+
}
|
|
2084
|
+
let localVarFormParams = {};
|
|
2085
|
+
if (inlineObject13 === null || inlineObject13 === undefined) {
|
|
2086
|
+
throw new Error('Required parameter inlineObject13 was null or undefined when calling sendHelpDeskResponse.');
|
|
2087
|
+
}
|
|
2088
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
2089
|
+
let localVarUseFormData = false;
|
|
2090
|
+
let localVarRequestOptions = {
|
|
2091
|
+
method: 'POST',
|
|
2092
|
+
qs: localVarQueryParameters,
|
|
2093
|
+
headers: localVarHeaderParams,
|
|
2094
|
+
uri: localVarPath,
|
|
2095
|
+
useQuerystring: this._useQuerystring,
|
|
2096
|
+
json: true,
|
|
2097
|
+
body: models_1.ObjectSerializer.serialize(inlineObject13, "InlineObject13")
|
|
2098
|
+
};
|
|
2099
|
+
let authenticationPromise = Promise.resolve();
|
|
2100
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2101
|
+
let interceptorPromise = authenticationPromise;
|
|
2102
|
+
for (const interceptor of this.interceptors) {
|
|
2103
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
2104
|
+
}
|
|
2105
|
+
return interceptorPromise.then(() => {
|
|
2106
|
+
if (Object.keys(localVarFormParams).length) {
|
|
2107
|
+
if (localVarUseFormData) {
|
|
2108
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
2109
|
+
}
|
|
2110
|
+
else {
|
|
2111
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
2112
|
+
}
|
|
2113
|
+
}
|
|
2114
|
+
return new Promise((resolve, reject) => {
|
|
2115
|
+
request_1.default(localVarRequestOptions, (error, response, body) => {
|
|
2116
|
+
if (error) {
|
|
2117
|
+
reject(error);
|
|
2118
|
+
}
|
|
2119
|
+
else {
|
|
2120
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2121
|
+
body = models_1.ObjectSerializer.deserialize(body, "OutboundSMS");
|
|
2122
|
+
resolve({ response: response, body: body });
|
|
2123
|
+
}
|
|
2124
|
+
else {
|
|
2125
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
2126
|
+
}
|
|
2127
|
+
}
|
|
2128
|
+
});
|
|
2129
|
+
});
|
|
2130
|
+
});
|
|
2131
|
+
});
|
|
2132
|
+
}
|
|
2133
|
+
sendSmsCampaignBroadcast(staticVoucherCampaignID, inlineObject15, options = { headers: {} }) {
|
|
2134
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2135
|
+
const localVarPath = this.basePath + '/v2/employee/sms/schedule/campaign/{staticVoucherCampaignID}'
|
|
2136
|
+
.replace('{' + 'staticVoucherCampaignID' + '}', encodeURIComponent(String(staticVoucherCampaignID)));
|
|
2137
|
+
let localVarQueryParameters = {};
|
|
2138
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
2139
|
+
const produces = ['application/json'];
|
|
2140
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
2141
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
2142
|
+
}
|
|
2143
|
+
else {
|
|
2144
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
2145
|
+
}
|
|
2146
|
+
let localVarFormParams = {};
|
|
2147
|
+
if (staticVoucherCampaignID === null || staticVoucherCampaignID === undefined) {
|
|
2148
|
+
throw new Error('Required parameter staticVoucherCampaignID was null or undefined when calling sendSmsCampaignBroadcast.');
|
|
2149
|
+
}
|
|
2150
|
+
if (inlineObject15 === null || inlineObject15 === undefined) {
|
|
2151
|
+
throw new Error('Required parameter inlineObject15 was null or undefined when calling sendSmsCampaignBroadcast.');
|
|
2152
|
+
}
|
|
2153
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
2154
|
+
let localVarUseFormData = false;
|
|
2155
|
+
let localVarRequestOptions = {
|
|
2156
|
+
method: 'POST',
|
|
2157
|
+
qs: localVarQueryParameters,
|
|
2158
|
+
headers: localVarHeaderParams,
|
|
2159
|
+
uri: localVarPath,
|
|
2160
|
+
useQuerystring: this._useQuerystring,
|
|
2161
|
+
json: true,
|
|
2162
|
+
body: models_1.ObjectSerializer.serialize(inlineObject15, "InlineObject15")
|
|
2163
|
+
};
|
|
2164
|
+
let authenticationPromise = Promise.resolve();
|
|
2165
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2166
|
+
let interceptorPromise = authenticationPromise;
|
|
2167
|
+
for (const interceptor of this.interceptors) {
|
|
2168
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
2169
|
+
}
|
|
2170
|
+
return interceptorPromise.then(() => {
|
|
2171
|
+
if (Object.keys(localVarFormParams).length) {
|
|
2172
|
+
if (localVarUseFormData) {
|
|
2173
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
2174
|
+
}
|
|
2175
|
+
else {
|
|
2176
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
2177
|
+
}
|
|
2178
|
+
}
|
|
2179
|
+
return new Promise((resolve, reject) => {
|
|
2180
|
+
request_1.default(localVarRequestOptions, (error, response, body) => {
|
|
2181
|
+
if (error) {
|
|
2182
|
+
reject(error);
|
|
2183
|
+
}
|
|
2184
|
+
else {
|
|
2185
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2186
|
+
body = models_1.ObjectSerializer.deserialize(body, "StaticVoucherCampaignBroadcast");
|
|
2187
|
+
resolve({ response: response, body: body });
|
|
2188
|
+
}
|
|
2189
|
+
else {
|
|
2190
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
2191
|
+
}
|
|
2192
|
+
}
|
|
2193
|
+
});
|
|
2194
|
+
});
|
|
2195
|
+
});
|
|
2196
|
+
});
|
|
2197
|
+
}
|
|
2198
|
+
setAlertsRead(options = { headers: {} }) {
|
|
2199
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2200
|
+
const localVarPath = this.basePath + '/v2/employee/alerts';
|
|
2201
|
+
let localVarQueryParameters = {};
|
|
2202
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
2203
|
+
const produces = ['application/json'];
|
|
2204
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
2205
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
2206
|
+
}
|
|
2207
|
+
else {
|
|
2208
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
2209
|
+
}
|
|
2210
|
+
let localVarFormParams = {};
|
|
2211
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
2212
|
+
let localVarUseFormData = false;
|
|
2213
|
+
let localVarRequestOptions = {
|
|
2214
|
+
method: 'PATCH',
|
|
2215
|
+
qs: localVarQueryParameters,
|
|
2216
|
+
headers: localVarHeaderParams,
|
|
2217
|
+
uri: localVarPath,
|
|
2218
|
+
useQuerystring: this._useQuerystring,
|
|
2219
|
+
json: true,
|
|
2220
|
+
};
|
|
2221
|
+
let authenticationPromise = Promise.resolve();
|
|
2222
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2223
|
+
let interceptorPromise = authenticationPromise;
|
|
2224
|
+
for (const interceptor of this.interceptors) {
|
|
2225
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
2226
|
+
}
|
|
2227
|
+
return interceptorPromise.then(() => {
|
|
2228
|
+
if (Object.keys(localVarFormParams).length) {
|
|
2229
|
+
if (localVarUseFormData) {
|
|
2230
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
2231
|
+
}
|
|
2232
|
+
else {
|
|
2233
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
2234
|
+
}
|
|
2235
|
+
}
|
|
2236
|
+
return new Promise((resolve, reject) => {
|
|
2237
|
+
request_1.default(localVarRequestOptions, (error, response, body) => {
|
|
2238
|
+
if (error) {
|
|
2239
|
+
reject(error);
|
|
2240
|
+
}
|
|
2241
|
+
else {
|
|
2242
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2243
|
+
body = models_1.ObjectSerializer.deserialize(body, "boolean");
|
|
2244
|
+
resolve({ response: response, body: body });
|
|
2245
|
+
}
|
|
2246
|
+
else {
|
|
2247
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
2248
|
+
}
|
|
2249
|
+
}
|
|
2250
|
+
});
|
|
2251
|
+
});
|
|
2252
|
+
});
|
|
2253
|
+
});
|
|
2254
|
+
}
|
|
2255
|
+
setExportDataFilesRead(options = { headers: {} }) {
|
|
2256
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2257
|
+
const localVarPath = this.basePath + '/v2/employee/export/dataFiles';
|
|
2258
|
+
let localVarQueryParameters = {};
|
|
2259
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
2260
|
+
const produces = ['application/json'];
|
|
2261
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
2262
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
2263
|
+
}
|
|
2264
|
+
else {
|
|
2265
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
2266
|
+
}
|
|
2267
|
+
let localVarFormParams = {};
|
|
2268
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
2269
|
+
let localVarUseFormData = false;
|
|
2270
|
+
let localVarRequestOptions = {
|
|
2271
|
+
method: 'PUT',
|
|
2272
|
+
qs: localVarQueryParameters,
|
|
2273
|
+
headers: localVarHeaderParams,
|
|
2274
|
+
uri: localVarPath,
|
|
2275
|
+
useQuerystring: this._useQuerystring,
|
|
2276
|
+
json: true,
|
|
2277
|
+
};
|
|
2278
|
+
let authenticationPromise = Promise.resolve();
|
|
2279
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2280
|
+
let interceptorPromise = authenticationPromise;
|
|
2281
|
+
for (const interceptor of this.interceptors) {
|
|
2282
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
2283
|
+
}
|
|
2284
|
+
return interceptorPromise.then(() => {
|
|
2285
|
+
if (Object.keys(localVarFormParams).length) {
|
|
2286
|
+
if (localVarUseFormData) {
|
|
2287
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
2288
|
+
}
|
|
2289
|
+
else {
|
|
2290
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
2291
|
+
}
|
|
2292
|
+
}
|
|
2293
|
+
return new Promise((resolve, reject) => {
|
|
2294
|
+
request_1.default(localVarRequestOptions, (error, response, body) => {
|
|
2295
|
+
if (error) {
|
|
2296
|
+
reject(error);
|
|
2297
|
+
}
|
|
2298
|
+
else {
|
|
2299
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2300
|
+
body = models_1.ObjectSerializer.deserialize(body, "boolean");
|
|
2301
|
+
resolve({ response: response, body: body });
|
|
2302
|
+
}
|
|
2303
|
+
else {
|
|
2304
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
2305
|
+
}
|
|
2306
|
+
}
|
|
2307
|
+
});
|
|
2308
|
+
});
|
|
2309
|
+
});
|
|
2310
|
+
});
|
|
2311
|
+
}
|
|
2312
|
+
setHelpDeskRequestResolved(helpDeskRequestID, options = { headers: {} }) {
|
|
2313
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2314
|
+
const localVarPath = this.basePath + '/v2/employee/helpDesk/request/{helpDeskRequestID}'
|
|
2315
|
+
.replace('{' + 'helpDeskRequestID' + '}', encodeURIComponent(String(helpDeskRequestID)));
|
|
2316
|
+
let localVarQueryParameters = {};
|
|
2317
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
2318
|
+
const produces = ['application/json'];
|
|
2319
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
2320
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
2321
|
+
}
|
|
2322
|
+
else {
|
|
2323
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
2324
|
+
}
|
|
2325
|
+
let localVarFormParams = {};
|
|
2326
|
+
if (helpDeskRequestID === null || helpDeskRequestID === undefined) {
|
|
2327
|
+
throw new Error('Required parameter helpDeskRequestID was null or undefined when calling setHelpDeskRequestResolved.');
|
|
2328
|
+
}
|
|
2329
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
2330
|
+
let localVarUseFormData = false;
|
|
2331
|
+
let localVarRequestOptions = {
|
|
2332
|
+
method: 'PATCH',
|
|
2333
|
+
qs: localVarQueryParameters,
|
|
2334
|
+
headers: localVarHeaderParams,
|
|
2335
|
+
uri: localVarPath,
|
|
2336
|
+
useQuerystring: this._useQuerystring,
|
|
2337
|
+
json: true,
|
|
2338
|
+
};
|
|
2339
|
+
let authenticationPromise = Promise.resolve();
|
|
2340
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2341
|
+
let interceptorPromise = authenticationPromise;
|
|
2342
|
+
for (const interceptor of this.interceptors) {
|
|
2343
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
2344
|
+
}
|
|
2345
|
+
return interceptorPromise.then(() => {
|
|
2346
|
+
if (Object.keys(localVarFormParams).length) {
|
|
2347
|
+
if (localVarUseFormData) {
|
|
2348
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
2349
|
+
}
|
|
2350
|
+
else {
|
|
2351
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
2352
|
+
}
|
|
2353
|
+
}
|
|
2354
|
+
return new Promise((resolve, reject) => {
|
|
2355
|
+
request_1.default(localVarRequestOptions, (error, response, body) => {
|
|
2356
|
+
if (error) {
|
|
2357
|
+
reject(error);
|
|
2358
|
+
}
|
|
2359
|
+
else {
|
|
2360
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2361
|
+
body = models_1.ObjectSerializer.deserialize(body, "HelpDeskRequest");
|
|
2362
|
+
resolve({ response: response, body: body });
|
|
2363
|
+
}
|
|
2364
|
+
else {
|
|
2365
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
2366
|
+
}
|
|
2367
|
+
}
|
|
2368
|
+
});
|
|
2369
|
+
});
|
|
2370
|
+
});
|
|
2371
|
+
});
|
|
2372
|
+
}
|
|
2373
|
+
setMessagesRead(options = { headers: {} }) {
|
|
2374
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2375
|
+
const localVarPath = this.basePath + '/v2/employee/messages';
|
|
2376
|
+
let localVarQueryParameters = {};
|
|
2377
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
2378
|
+
const produces = ['application/json'];
|
|
2379
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
2380
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
2381
|
+
}
|
|
2382
|
+
else {
|
|
2383
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
2384
|
+
}
|
|
2385
|
+
let localVarFormParams = {};
|
|
2386
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
2387
|
+
let localVarUseFormData = false;
|
|
2388
|
+
let localVarRequestOptions = {
|
|
2389
|
+
method: 'PATCH',
|
|
2390
|
+
qs: localVarQueryParameters,
|
|
2391
|
+
headers: localVarHeaderParams,
|
|
2392
|
+
uri: localVarPath,
|
|
2393
|
+
useQuerystring: this._useQuerystring,
|
|
2394
|
+
json: true,
|
|
2395
|
+
};
|
|
2396
|
+
let authenticationPromise = Promise.resolve();
|
|
2397
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2398
|
+
let interceptorPromise = authenticationPromise;
|
|
2399
|
+
for (const interceptor of this.interceptors) {
|
|
2400
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
2401
|
+
}
|
|
2402
|
+
return interceptorPromise.then(() => {
|
|
2403
|
+
if (Object.keys(localVarFormParams).length) {
|
|
2404
|
+
if (localVarUseFormData) {
|
|
2405
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
2406
|
+
}
|
|
2407
|
+
else {
|
|
2408
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
2409
|
+
}
|
|
2410
|
+
}
|
|
2411
|
+
return new Promise((resolve, reject) => {
|
|
2412
|
+
request_1.default(localVarRequestOptions, (error, response, body) => {
|
|
2413
|
+
if (error) {
|
|
2414
|
+
reject(error);
|
|
2415
|
+
}
|
|
2416
|
+
else {
|
|
2417
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2418
|
+
body = models_1.ObjectSerializer.deserialize(body, "boolean");
|
|
2419
|
+
resolve({ response: response, body: body });
|
|
2420
|
+
}
|
|
2421
|
+
else {
|
|
2422
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
2423
|
+
}
|
|
2424
|
+
}
|
|
2425
|
+
});
|
|
2426
|
+
});
|
|
2427
|
+
});
|
|
2428
|
+
});
|
|
2429
|
+
}
|
|
2430
|
+
setProfilePicture(inlineObject4, options = { headers: {} }) {
|
|
2431
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2432
|
+
const localVarPath = this.basePath + '/v2/employee/profile/picture';
|
|
2433
|
+
let localVarQueryParameters = {};
|
|
2434
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
2435
|
+
const produces = ['application/json'];
|
|
2436
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
2437
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
2438
|
+
}
|
|
2439
|
+
else {
|
|
2440
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
2441
|
+
}
|
|
2442
|
+
let localVarFormParams = {};
|
|
2443
|
+
if (inlineObject4 === null || inlineObject4 === undefined) {
|
|
2444
|
+
throw new Error('Required parameter inlineObject4 was null or undefined when calling setProfilePicture.');
|
|
2445
|
+
}
|
|
2446
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
2447
|
+
let localVarUseFormData = false;
|
|
2448
|
+
let localVarRequestOptions = {
|
|
2449
|
+
method: 'PUT',
|
|
2450
|
+
qs: localVarQueryParameters,
|
|
2451
|
+
headers: localVarHeaderParams,
|
|
2452
|
+
uri: localVarPath,
|
|
2453
|
+
useQuerystring: this._useQuerystring,
|
|
2454
|
+
json: true,
|
|
2455
|
+
body: models_1.ObjectSerializer.serialize(inlineObject4, "InlineObject4")
|
|
2456
|
+
};
|
|
2457
|
+
let authenticationPromise = Promise.resolve();
|
|
2458
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2459
|
+
let interceptorPromise = authenticationPromise;
|
|
2460
|
+
for (const interceptor of this.interceptors) {
|
|
2461
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
2462
|
+
}
|
|
2463
|
+
return interceptorPromise.then(() => {
|
|
2464
|
+
if (Object.keys(localVarFormParams).length) {
|
|
2465
|
+
if (localVarUseFormData) {
|
|
2466
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
2467
|
+
}
|
|
2468
|
+
else {
|
|
2469
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
2470
|
+
}
|
|
2471
|
+
}
|
|
2472
|
+
return new Promise((resolve, reject) => {
|
|
2473
|
+
request_1.default(localVarRequestOptions, (error, response, body) => {
|
|
2474
|
+
if (error) {
|
|
2475
|
+
reject(error);
|
|
2476
|
+
}
|
|
2477
|
+
else {
|
|
2478
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2479
|
+
body = models_1.ObjectSerializer.deserialize(body, "string");
|
|
2480
|
+
resolve({ response: response, body: body });
|
|
2481
|
+
}
|
|
2482
|
+
else {
|
|
2483
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
2484
|
+
}
|
|
2485
|
+
}
|
|
2486
|
+
});
|
|
2487
|
+
});
|
|
2488
|
+
});
|
|
2489
|
+
});
|
|
2490
|
+
}
|
|
2491
|
+
updateEmployeePeer(userID, wTEmployeeUpdate, options = { headers: {} }) {
|
|
2492
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2493
|
+
const localVarPath = this.basePath + '/v2/employee/peer/{userID}'
|
|
2494
|
+
.replace('{' + 'userID' + '}', encodeURIComponent(String(userID)));
|
|
2495
|
+
let localVarQueryParameters = {};
|
|
2496
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
2497
|
+
const produces = ['application/json'];
|
|
2498
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
2499
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
2500
|
+
}
|
|
2501
|
+
else {
|
|
2502
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
2503
|
+
}
|
|
2504
|
+
let localVarFormParams = {};
|
|
2505
|
+
if (userID === null || userID === undefined) {
|
|
2506
|
+
throw new Error('Required parameter userID was null or undefined when calling updateEmployeePeer.');
|
|
2507
|
+
}
|
|
2508
|
+
if (wTEmployeeUpdate === null || wTEmployeeUpdate === undefined) {
|
|
2509
|
+
throw new Error('Required parameter wTEmployeeUpdate was null or undefined when calling updateEmployeePeer.');
|
|
2510
|
+
}
|
|
2511
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
2512
|
+
let localVarUseFormData = false;
|
|
2513
|
+
let localVarRequestOptions = {
|
|
2514
|
+
method: 'PUT',
|
|
2515
|
+
qs: localVarQueryParameters,
|
|
2516
|
+
headers: localVarHeaderParams,
|
|
2517
|
+
uri: localVarPath,
|
|
2518
|
+
useQuerystring: this._useQuerystring,
|
|
2519
|
+
json: true,
|
|
2520
|
+
body: models_1.ObjectSerializer.serialize(wTEmployeeUpdate, "WTEmployeeUpdate")
|
|
2521
|
+
};
|
|
2522
|
+
let authenticationPromise = Promise.resolve();
|
|
2523
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2524
|
+
let interceptorPromise = authenticationPromise;
|
|
2525
|
+
for (const interceptor of this.interceptors) {
|
|
2526
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
2527
|
+
}
|
|
2528
|
+
return interceptorPromise.then(() => {
|
|
2529
|
+
if (Object.keys(localVarFormParams).length) {
|
|
2530
|
+
if (localVarUseFormData) {
|
|
2531
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
2532
|
+
}
|
|
2533
|
+
else {
|
|
2534
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
2535
|
+
}
|
|
2536
|
+
}
|
|
2537
|
+
return new Promise((resolve, reject) => {
|
|
2538
|
+
request_1.default(localVarRequestOptions, (error, response, body) => {
|
|
2539
|
+
if (error) {
|
|
2540
|
+
reject(error);
|
|
2541
|
+
}
|
|
2542
|
+
else {
|
|
2543
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2544
|
+
body = models_1.ObjectSerializer.deserialize(body, "Employee");
|
|
2545
|
+
resolve({ response: response, body: body });
|
|
2546
|
+
}
|
|
2547
|
+
else {
|
|
2548
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
2549
|
+
}
|
|
2550
|
+
}
|
|
2551
|
+
});
|
|
2552
|
+
});
|
|
2553
|
+
});
|
|
2554
|
+
});
|
|
2555
|
+
}
|
|
2556
|
+
}
|
|
2557
|
+
exports.EmployeesApi = EmployeesApi;
|
|
2558
|
+
//# sourceMappingURL=employeesApi.js.map
|