wallet 2.1.603 → 2.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -201
- package/NOTICE +14 -0
- package/README.md +1551 -1530
- package/dist/api/aPIKeysApi.d.ts +70 -70
- package/dist/api/aPIKeysApi.js +379 -379
- package/dist/api/amenitiesApi.d.ts +69 -69
- package/dist/api/amenitiesApi.js +379 -379
- package/dist/api/apis.d.ts +126 -116
- package/dist/api/apis.js +144 -134
- package/dist/api/apis.js.map +1 -1
- package/dist/api/appToPersonA2PRegistrationApi.d.ts +60 -60
- package/dist/api/appToPersonA2PRegistrationApi.js +311 -311
- package/dist/api/appleWalletSubscribersApi.d.ts +42 -42
- package/dist/api/appleWalletSubscribersApi.js +195 -195
- package/dist/api/authenticationApi.d.ts +63 -63
- package/dist/api/authenticationApi.js +311 -311
- package/dist/api/billingPaymentsApi.d.ts +160 -152
- package/dist/api/billingPaymentsApi.js +1009 -952
- package/dist/api/billingPaymentsApi.js.map +1 -1
- package/dist/api/broadcastsApi.d.ts +129 -0
- package/dist/api/broadcastsApi.js +816 -0
- package/dist/api/broadcastsApi.js.map +1 -0
- package/dist/api/clubMembersApi.d.ts +116 -116
- package/dist/api/clubMembersApi.js +681 -681
- package/dist/api/countriesApi.d.ts +35 -35
- package/dist/api/countriesApi.js +128 -128
- package/dist/api/customerApi.d.ts +102 -102
- package/dist/api/customerApi.js +632 -632
- package/dist/api/diningApi.d.ts +69 -69
- package/dist/api/diningApi.js +379 -379
- package/dist/api/dynamicVouchersApi.d.ts +112 -104
- package/dist/api/dynamicVouchersApi.js +691 -631
- package/dist/api/dynamicVouchersApi.js.map +1 -1
- package/dist/api/emailSubscribersApi.d.ts +69 -69
- package/dist/api/emailSubscribersApi.js +385 -385
- package/dist/api/employeesApi.d.ts +155 -399
- package/dist/api/employeesApi.js +974 -2679
- package/dist/api/employeesApi.js.map +1 -1
- package/dist/api/filesDocumentsApi.d.ts +114 -0
- package/dist/api/filesDocumentsApi.js +680 -0
- package/dist/api/filesDocumentsApi.js.map +1 -0
- package/dist/api/galleryApi.d.ts +69 -69
- package/dist/api/galleryApi.js +379 -379
- package/dist/api/gamingApi.d.ts +69 -69
- package/dist/api/gamingApi.js +379 -379
- package/dist/api/helpDeskApi.d.ts +53 -0
- package/dist/api/helpDeskApi.js +258 -0
- package/dist/api/helpDeskApi.js.map +1 -0
- package/dist/api/importExportApi.d.ts +84 -0
- package/dist/api/importExportApi.js +487 -0
- package/dist/api/importExportApi.js.map +1 -0
- package/dist/api/importedListsApi.d.ts +138 -0
- package/dist/api/importedListsApi.js +890 -0
- package/dist/api/importedListsApi.js.map +1 -0
- package/dist/api/industriesApi.d.ts +52 -52
- package/dist/api/industriesApi.js +242 -242
- package/dist/api/infoGenesisReportsApi.d.ts +250 -250
- package/dist/api/infoGenesisReportsApi.js +1742 -1742
- package/dist/api/interactionsApi.d.ts +194 -194
- package/dist/api/interactionsApi.js +1263 -1263
- package/dist/api/loungeApi.d.ts +69 -69
- package/dist/api/loungeApi.js +379 -379
- package/dist/api/membershipTiersApi.d.ts +105 -105
- package/dist/api/membershipTiersApi.js +622 -622
- package/dist/api/merchantApi.d.ts +93 -258
- package/dist/api/merchantApi.js +539 -1744
- package/dist/api/merchantApi.js.map +1 -1
- package/dist/api/merchantCreditsApi.d.ts +116 -116
- package/dist/api/merchantCreditsApi.js +681 -681
- package/dist/api/newsApi.d.ts +69 -69
- package/dist/api/newsApi.js +379 -379
- package/dist/api/openAIApi.d.ts +193 -193
- package/dist/api/openAIApi.js +1245 -1245
- package/dist/api/{dashboardSummariesApi.d.ts → optInListsApi.d.ts} +178 -171
- package/dist/api/{dashboardSummariesApi.js → optInListsApi.js} +1239 -1311
- package/dist/api/optInListsApi.js.map +1 -0
- package/dist/api/paymentDesignsApi.d.ts +77 -77
- package/dist/api/paymentDesignsApi.js +440 -440
- package/dist/api/performancesApi.d.ts +140 -140
- package/dist/api/performancesApi.js +905 -905
- package/dist/api/phoneNumbersApi.d.ts +110 -0
- package/dist/api/phoneNumbersApi.js +684 -0
- package/dist/api/phoneNumbersApi.js.map +1 -0
- package/dist/api/pointOfSaleConfigurationApi.d.ts +69 -69
- package/dist/api/pointOfSaleConfigurationApi.js +379 -379
- package/dist/api/prizesApi.d.ts +86 -86
- package/dist/api/prizesApi.js +501 -501
- package/dist/api/productsApi.d.ts +69 -69
- package/dist/api/productsApi.js +379 -379
- package/dist/api/promotionCodesApi.d.ts +69 -69
- package/dist/api/promotionCodesApi.js +379 -379
- package/dist/api/qRCodeDesignsApi.d.ts +78 -78
- package/dist/api/qRCodeDesignsApi.js +440 -440
- package/dist/api/quickLinksApi.d.ts +78 -78
- package/dist/api/quickLinksApi.js +440 -440
- package/dist/api/quickLinksSectionApi.d.ts +69 -69
- package/dist/api/quickLinksSectionApi.js +379 -379
- package/dist/api/roomRatesApi.d.ts +69 -69
- package/dist/api/roomRatesApi.js +379 -379
- package/dist/api/sMSMessagesApi.d.ts +112 -0
- package/dist/api/sMSMessagesApi.js +774 -0
- package/dist/api/sMSMessagesApi.js.map +1 -0
- package/dist/api/sMSSubscribersApi.d.ts +69 -69
- package/dist/api/sMSSubscribersApi.js +385 -385
- package/dist/api/servicesApi.d.ts +69 -69
- package/dist/api/servicesApi.js +379 -379
- package/dist/api/shopifyTerminalApi.d.ts +51 -51
- package/dist/api/shopifyTerminalApi.js +258 -258
- package/dist/api/shortLinksApi.d.ts +86 -86
- package/dist/api/shortLinksApi.js +501 -501
- package/dist/api/staticVoucherCampaignsApi.d.ts +200 -200
- package/dist/api/staticVoucherCampaignsApi.js +1325 -1325
- package/dist/api/staticVouchersApi.d.ts +78 -78
- package/dist/api/staticVouchersApi.js +449 -449
- package/dist/api/systemApi.d.ts +88 -96
- package/dist/api/systemApi.js +510 -567
- package/dist/api/systemApi.js.map +1 -1
- package/dist/api/ticketsApi.d.ts +70 -70
- package/dist/api/ticketsApi.js +380 -380
- package/dist/api/videosApi.d.ts +79 -69
- package/dist/api/videosApi.js +440 -379
- package/dist/api/videosApi.js.map +1 -1
- package/dist/api/virtualBusinessCardApi.d.ts +86 -86
- package/dist/api/virtualBusinessCardApi.js +501 -501
- package/dist/api/walletConfigurationApi.d.ts +53 -53
- package/dist/api/walletConfigurationApi.js +253 -253
- package/dist/api/walletMobileTerminalApi.d.ts +52 -52
- package/dist/api/walletMobileTerminalApi.js +258 -258
- package/dist/api/walletTransactionLedgerApi.d.ts +36 -36
- package/dist/api/walletTransactionLedgerApi.js +155 -155
- package/dist/api/walletWebTerminalApi.d.ts +51 -51
- package/dist/api/walletWebTerminalApi.js +258 -258
- package/dist/api/wixTerminalApi.d.ts +51 -51
- package/dist/api/wixTerminalApi.js +258 -258
- package/dist/api/wooCommerceTerminalApi.d.ts +51 -51
- package/dist/api/wooCommerceTerminalApi.js +258 -258
- package/dist/api.d.ts +2 -2
- package/dist/api.js +18 -18
- package/dist/model/a2PApplicationSubmission.d.ts +53 -53
- package/dist/model/a2PApplicationSubmission.js +192 -192
- package/dist/model/advertisementCredit.d.ts +24 -24
- package/dist/model/advertisementCredit.js +77 -77
- package/dist/model/advertisementCreditBroadcast.d.ts +37 -37
- package/dist/model/advertisementCreditBroadcast.js +117 -117
- package/dist/model/advertisementCreditScan.d.ts +36 -36
- package/dist/model/advertisementCreditScan.js +127 -127
- package/dist/model/amenity.d.ts +21 -21
- package/dist/model/amenity.js +67 -67
- package/dist/model/amenityId.d.ts +13 -13
- package/dist/model/amenityId.js +11 -11
- package/dist/model/announcement.d.ts +16 -16
- package/dist/model/announcement.js +47 -47
- package/dist/model/applicableTerminals.d.ts +13 -13
- package/dist/model/applicableTerminals.js +11 -11
- package/dist/model/assistant.d.ts +25 -25
- package/dist/model/assistant.js +87 -87
- package/dist/model/authError.d.ts +14 -14
- package/dist/model/authError.js +37 -37
- package/dist/model/availablePhoneNumbersRequest.d.ts +11 -11
- package/dist/model/availablePhoneNumbersRequest.js +22 -22
- package/dist/model/browserDetails.d.ts +14 -14
- package/dist/model/browserDetails.js +37 -37
- package/dist/model/businessClassification.d.ts +6 -6
- package/dist/model/businessClassification.js +10 -10
- package/dist/model/businessIndustry.d.ts +35 -35
- package/dist/model/businessIndustry.js +39 -39
- package/dist/model/businessRegionsOfOperation.d.ts +8 -8
- package/dist/model/businessRegionsOfOperation.js +12 -12
- package/dist/model/businessRegistrationIdentifier.d.ts +12 -12
- package/dist/model/businessRegistrationIdentifier.js +16 -16
- package/dist/model/businessStockExchanges.d.ts +29 -29
- package/dist/model/businessStockExchanges.js +33 -33
- package/dist/model/businessType.d.ts +8 -8
- package/dist/model/businessType.js +12 -12
- package/dist/model/chatCompletionAudio.d.ts +13 -13
- package/dist/model/chatCompletionAudio.js +32 -32
- package/dist/model/chatCompletionMessage.d.ts +22 -22
- package/dist/model/chatCompletionMessage.js +48 -48
- package/dist/model/chatCompletionMessageAudio.d.ts +17 -17
- package/dist/model/chatCompletionMessageAudio.js +32 -32
- package/dist/model/chatCompletionMessageFunctionCall.d.ts +15 -15
- package/dist/model/chatCompletionMessageFunctionCall.js +22 -22
- package/dist/model/chatCompletionMessageToolCall.d.ts +18 -18
- package/dist/model/chatCompletionMessageToolCall.js +33 -33
- package/dist/model/chatCompletionMessageToolCallFunction.d.ts +11 -11
- package/dist/model/chatCompletionMessageToolCallFunction.js +22 -22
- package/dist/model/claimTicketRequest.d.ts +14 -14
- package/dist/model/claimTicketRequest.js +17 -17
- package/dist/model/clickFunnelAmount.d.ts +11 -11
- package/dist/model/clickFunnelAmount.js +22 -22
- package/dist/model/clickFunnelContact.d.ts +53 -53
- package/dist/model/clickFunnelContact.js +227 -227
- package/dist/model/clickFunnelContactProfile.d.ts +44 -44
- package/dist/model/clickFunnelContactProfile.js +187 -187
- package/dist/model/clickFunnelEvent.d.ts +12 -12
- package/dist/model/clickFunnelEvent.js +22 -22
- package/dist/model/clickFunnelOriginalAmount.d.ts +11 -11
- package/dist/model/clickFunnelOriginalAmount.js +22 -22
- package/dist/model/clickFunnelProduct.d.ts +38 -38
- package/dist/model/clickFunnelProduct.js +152 -152
- package/dist/model/clickFunnelPurchase.d.ts +38 -38
- package/dist/model/clickFunnelPurchase.js +137 -137
- package/dist/model/clickFunnelRegistration.d.ts +12 -12
- package/dist/model/clickFunnelRegistration.js +22 -22
- package/dist/model/countClaimedComps200Response.d.ts +15 -15
- package/dist/model/countClaimedComps200Response.js +22 -22
- package/dist/model/createFile200Response.d.ts +16 -16
- package/dist/model/createFile200Response.js +27 -27
- package/dist/model/createRunOnThreadRequest.d.ts +15 -15
- package/dist/model/createRunOnThreadRequest.js +22 -22
- package/dist/model/createStaticVoucherCampaign.d.ts +23 -23
- package/dist/model/createStaticVoucherCampaign.js +77 -77
- package/dist/model/createStaticVoucherCampaignWithVoucherWithCSV.d.ts +23 -23
- package/dist/model/createStaticVoucherCampaignWithVoucherWithCSV.js +77 -77
- package/dist/model/dashboardWidget.d.ts +25 -25
- package/dist/model/dashboardWidget.js +92 -92
- package/dist/model/dining.d.ts +21 -21
- package/dist/model/dining.js +67 -67
- package/dist/model/document.d.ts +19 -19
- package/dist/model/document.js +62 -62
- package/dist/model/duplicateRowFound.d.ts +14 -14
- package/dist/model/duplicateRowFound.js +37 -37
- package/dist/model/dynamicVoucher.d.ts +46 -46
- package/dist/model/dynamicVoucher.js +177 -177
- package/dist/model/dynamicVoucherBroadcast.d.ts +37 -37
- package/dist/model/dynamicVoucherBroadcast.js +117 -117
- package/dist/model/dynamicVoucherBroadcastListType.d.ts +13 -13
- package/dist/model/dynamicVoucherBroadcastListType.js +11 -11
- package/dist/model/dynamicVoucherTemporalDecreaseFrequencyType.d.ts +13 -13
- package/dist/model/dynamicVoucherTemporalDecreaseFrequencyType.js +11 -11
- package/dist/model/emailSubscriber.d.ts +18 -18
- package/dist/model/emailSubscriber.js +52 -52
- package/dist/model/employee.d.ts +43 -43
- package/dist/model/employee.js +162 -162
- package/dist/model/employeeAPIKey.d.ts +19 -19
- package/dist/model/employeeAPIKey.js +57 -57
- package/dist/model/employeeActivityLog.d.ts +16 -16
- package/dist/model/employeeActivityLog.js +47 -47
- package/dist/model/employeeAlert.d.ts +19 -19
- package/dist/model/employeeAlert.js +62 -62
- package/dist/model/employeeScheduleStartDay.d.ts +13 -13
- package/dist/model/employeeScheduleStartDay.js +11 -11
- package/dist/model/employeeScheduleStartHour.d.ts +13 -13
- package/dist/model/employeeScheduleStartHour.js +11 -11
- package/dist/model/employeeScheduleStartMeridiem.d.ts +13 -13
- package/dist/model/employeeScheduleStartMeridiem.js +11 -11
- package/dist/model/employeeScheduleStartMinute.d.ts +13 -13
- package/dist/model/employeeScheduleStartMinute.js +11 -11
- package/dist/model/entityTooLarge.d.ts +14 -14
- package/dist/model/entityTooLarge.js +37 -37
- package/dist/model/exportDataFile.d.ts +19 -19
- package/dist/model/exportDataFile.js +62 -62
- package/dist/model/falsumError.d.ts +11 -11
- package/dist/model/falsumError.js +22 -22
- package/dist/model/falsumField.d.ts +12 -12
- package/dist/model/falsumField.js +27 -27
- package/dist/model/feature.d.ts +18 -18
- package/dist/model/feature.js +57 -57
- package/dist/model/fetchAdvertisementCreditScansFromListRequest.d.ts +14 -14
- package/dist/model/fetchAdvertisementCreditScansFromListRequest.js +17 -17
- package/dist/model/fetchAllCountries200ResponseInner.d.ts +17 -17
- package/dist/model/fetchAllCountries200ResponseInner.js +32 -32
- package/dist/model/fetchAllLedgerTransactions200Response.d.ts +17 -17
- package/dist/model/fetchAllLedgerTransactions200Response.js +27 -27
- package/dist/model/fetchAllStaticVouchersAssociatedWithCustomerWithVoucherID200ResponseInner.d.ts +28 -28
- package/dist/model/fetchAllStaticVouchersAssociatedWithCustomerWithVoucherID200ResponseInner.js +77 -77
- package/dist/model/fetchAllStaticVouchersAssociatedWithCustomerWithVoucherID200ResponseInnerValueType.d.ts +13 -13
- package/dist/model/fetchAllStaticVouchersAssociatedWithCustomerWithVoucherID200ResponseInnerValueType.js +11 -11
- package/dist/model/fetchCustomerTicketsWithTokenRequest.d.ts +15 -15
- package/dist/model/fetchCustomerTicketsWithTokenRequest.js +22 -22
- package/dist/model/fetchDomainsByIndustry200Response.d.ts +20 -20
- package/dist/model/fetchDomainsByIndustry200Response.js +47 -47
- package/dist/model/fetchImportedListRecipientsByPage200Response.d.ts +17 -17
- package/dist/model/fetchImportedListRecipientsByPage200Response.js +27 -27
- package/dist/model/fetchInboundSMSByPage200Response.d.ts +17 -17
- package/dist/model/fetchInboundSMSByPage200Response.js +27 -27
- package/dist/model/fetchIndustry200Response.d.ts +19 -19
- package/dist/model/fetchIndustry200Response.js +37 -37
- package/dist/model/fetchMembersCount200Response.d.ts +14 -14
- package/dist/model/fetchMembersCount200Response.js +17 -17
- package/dist/model/fetchOptInListSubscribersByPage200Response.d.ts +17 -17
- package/dist/model/fetchOptInListSubscribersByPage200Response.js +27 -27
- package/dist/model/fetchOutboundSMSByPage200Response.d.ts +17 -17
- package/dist/model/fetchOutboundSMSByPage200Response.js +27 -27
- package/dist/model/fetchPerformanceTicketsPage200Response.d.ts +16 -16
- package/dist/model/fetchPerformanceTicketsPage200Response.js +22 -22
- package/dist/model/fetchStaticVouchersPage200Response.d.ts +16 -16
- package/dist/model/fetchStaticVouchersPage200Response.js +22 -22
- package/dist/model/forbiddenRequest.d.ts +14 -14
- package/dist/model/forbiddenRequest.js +37 -37
- package/dist/model/foreignKeyDoesNotExist.d.ts +14 -14
- package/dist/model/foreignKeyDoesNotExist.js +37 -37
- package/dist/model/gaming.d.ts +21 -21
- package/dist/model/gaming.js +67 -67
- package/dist/model/helpDeskRequest.d.ts +20 -20
- package/dist/model/helpDeskRequest.js +62 -62
- package/dist/model/imageGrid.d.ts +20 -20
- package/dist/model/imageGrid.js +62 -62
- package/dist/model/importTicketsRequest.d.ts +15 -15
- package/dist/model/importTicketsRequest.js +17 -17
- package/dist/model/importedList.d.ts +18 -18
- package/dist/model/importedList.js +52 -52
- package/dist/model/importedListRecipient.d.ts +18 -18
- package/dist/model/importedListRecipient.js +52 -52
- package/dist/model/inboundSMS.d.ts +46 -46
- package/dist/model/inboundSMS.js +192 -192
- package/dist/model/internalServerError500.d.ts +14 -14
- package/dist/model/internalServerError500.js +37 -37
- package/dist/model/jobPosition.d.ts +9 -9
- package/dist/model/jobPosition.js +13 -13
- package/dist/model/ledgerEntry.d.ts +38 -38
- package/dist/model/ledgerEntry.js +137 -137
- package/dist/model/ledgerEntryParentObjectID.d.ts +13 -13
- package/dist/model/ledgerEntryParentObjectID.js +11 -11
- package/dist/model/ledgerEntryTransactionType.d.ts +13 -13
- package/dist/model/ledgerEntryTransactionType.js +11 -11
- package/dist/model/linkBook.d.ts +21 -21
- package/dist/model/linkBook.js +62 -62
- package/dist/model/linkBookSection.d.ts +17 -17
- package/dist/model/linkBookSection.js +47 -47
- package/dist/model/loginStatus200Response.d.ts +21 -21
- package/dist/model/loginStatus200Response.js +33 -33
- package/dist/model/loginStatus200ResponseAnyOf.d.ts +15 -15
- package/dist/model/loginStatus200ResponseAnyOf.js +22 -22
- package/dist/model/lounge.d.ts +21 -21
- package/dist/model/lounge.js +67 -67
- package/dist/model/mSAnalyticsMemberCountPartitionedByDate.d.ts +11 -11
- package/dist/model/mSAnalyticsMemberCountPartitionedByDate.js +22 -22
- package/dist/model/mSAnalyticsMemberPointsRedeemedPartitionedByDate.d.ts +11 -11
- package/dist/model/mSAnalyticsMemberPointsRedeemedPartitionedByDate.js +22 -22
- package/dist/model/mSAnalyticsMemberPointsRefundedPartitionedByDate.d.ts +11 -11
- package/dist/model/mSAnalyticsMemberPointsRefundedPartitionedByDate.js +22 -22
- package/dist/model/mSAnalyticsMembershipTierAmountRedeemedPartitionedByDate.d.ts +11 -11
- package/dist/model/mSAnalyticsMembershipTierAmountRedeemedPartitionedByDate.js +22 -22
- package/dist/model/mSAnalyticsMembershipTierAmountRefundedPartitionedByDate.d.ts +11 -11
- package/dist/model/mSAnalyticsMembershipTierAmountRefundedPartitionedByDate.js +22 -22
- package/dist/model/mSMemberHistory.d.ts +22 -22
- package/dist/model/mSMemberHistory.js +77 -77
- package/dist/model/mSMemberHistoryPagination.d.ts +12 -12
- package/dist/model/mSMemberHistoryPagination.js +27 -27
- package/dist/model/mSMemberRedemption.d.ts +21 -21
- package/dist/model/mSMemberRedemption.js +62 -62
- package/dist/model/mSMemberRedemptionPagination.d.ts +12 -12
- package/dist/model/mSMemberRedemptionPagination.js +27 -27
- package/dist/model/mSMemberRedemptionRegisterID.d.ts +13 -13
- package/dist/model/mSMemberRedemptionRegisterID.js +11 -11
- package/dist/model/mSMemberRedemptionTransactionType.d.ts +13 -13
- package/dist/model/mSMemberRedemptionTransactionType.js +11 -11
- package/dist/model/mSMembershipTierHistory.d.ts +19 -19
- package/dist/model/mSMembershipTierHistory.js +62 -62
- package/dist/model/mSMembershipTierHistoryPagination.d.ts +12 -12
- package/dist/model/mSMembershipTierHistoryPagination.js +27 -27
- package/dist/model/mSMembershipTierRedemption.d.ts +22 -22
- package/dist/model/mSMembershipTierRedemption.js +67 -67
- package/dist/model/mSMembershipTierRedemptionPagination.d.ts +12 -12
- package/dist/model/mSMembershipTierRedemptionPagination.js +27 -27
- package/dist/model/mSMerchantCreditHistory.d.ts +17 -17
- package/dist/model/mSMerchantCreditHistory.js +52 -52
- package/dist/model/mSMerchantCreditHistoryPagination.d.ts +12 -12
- package/dist/model/mSMerchantCreditHistoryPagination.js +27 -27
- package/dist/model/mSMerchantCreditRedemption.d.ts +21 -21
- package/dist/model/mSMerchantCreditRedemption.js +62 -62
- package/dist/model/mSMerchantCreditRedemptionPagination.d.ts +12 -12
- package/dist/model/mSMerchantCreditRedemptionPagination.js +27 -27
- package/dist/model/mediaFile.d.ts +19 -19
- package/dist/model/mediaFile.js +62 -62
- package/dist/model/member.d.ts +23 -23
- package/dist/model/member.js +82 -82
- package/dist/model/memberSearch.d.ts +19 -19
- package/dist/model/memberSearch.js +47 -47
- package/dist/model/memberSearchSearchKey.d.ts +13 -13
- package/dist/model/memberSearchSearchKey.js +11 -11
- package/dist/model/memberSearchSortKey.d.ts +13 -13
- package/dist/model/memberSearchSortKey.js +11 -11
- package/dist/model/merchant.d.ts +36 -36
- package/dist/model/merchant.js +147 -147
- package/dist/model/merchantCreditSearch.d.ts +13 -13
- package/dist/model/merchantCreditSearch.js +32 -32
- package/dist/model/merchantNotInitialized.d.ts +14 -14
- package/dist/model/merchantNotInitialized.js +37 -37
- package/dist/model/merchantURL.d.ts +17 -17
- package/dist/model/merchantURL.js +47 -47
- package/dist/model/message.d.ts +18 -18
- package/dist/model/message.js +52 -52
- package/dist/model/models.d.ts +453 -445
- package/dist/model/models.js +1441 -1417
- package/dist/model/models.js.map +1 -1
- package/dist/model/moduleError.d.ts +31 -31
- package/dist/model/moduleError.js +122 -122
- package/dist/model/newsArticle.d.ts +21 -21
- package/dist/model/newsArticle.js +67 -67
- package/dist/model/oAIAssistantUpdateParams.d.ts +18 -18
- package/dist/model/oAIAssistantUpdateParams.js +57 -57
- package/dist/model/oAIAssistantUpdateParamsCreateParams.d.ts +18 -18
- package/dist/model/oAIAssistantUpdateParamsCreateParams.js +57 -57
- package/dist/model/optInList.d.ts +28 -28
- package/dist/model/optInList.js +102 -102
- package/dist/model/optInListSource.d.ts +18 -18
- package/dist/model/optInListSource.js +52 -52
- package/dist/model/optInListSubscriber.d.ts +27 -27
- package/dist/model/optInListSubscriber.js +87 -87
- package/dist/model/optInListSubscriberOptInSourceID.d.ts +13 -13
- package/dist/model/optInListSubscriberOptInSourceID.js +11 -11
- package/dist/model/outboundSMS.d.ts +34 -34
- package/dist/model/outboundSMS.js +122 -122
- package/dist/model/outboundSMSPaymentObjectBroadcastID.d.ts +13 -13
- package/dist/model/outboundSMSPaymentObjectBroadcastID.js +11 -11
- package/dist/model/outboundSMSStatus.d.ts +13 -13
- package/dist/model/outboundSMSStatus.js +11 -11
- package/dist/model/paginatedWTMembers.d.ts +12 -12
- package/dist/model/paginatedWTMembers.js +27 -27
- package/dist/model/paginatedWTMerchantCredits.d.ts +12 -12
- package/dist/model/paginatedWTMerchantCredits.js +27 -27
- package/dist/model/paginationRequestWithIDAndWithoutSortOptions.d.ts +12 -12
- package/dist/model/paginationRequestWithIDAndWithoutSortOptions.js +27 -27
- package/dist/model/paginationRequestWithSortOptions.d.ts +20 -20
- package/dist/model/paginationRequestWithSortOptions.js +43 -43
- package/dist/model/paginationRequestWithSortOptionsSortOrder.d.ts +13 -13
- package/dist/model/paginationRequestWithSortOptionsSortOrder.js +11 -11
- package/dist/model/paymentDesign.d.ts +30 -30
- package/dist/model/paymentDesign.js +107 -107
- package/dist/model/performance.d.ts +27 -27
- package/dist/model/performance.js +97 -97
- package/dist/model/performance.js.map +1 -1
- package/dist/model/phoneNumber.d.ts +32 -32
- package/dist/model/phoneNumber.js +122 -122
- package/dist/model/phoneNumberCapabilities.d.ts +17 -17
- package/dist/model/phoneNumberCapabilities.js +32 -32
- package/dist/model/pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherIsActive.d.ts +27 -27
- package/dist/model/pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherIsActive.js +77 -77
- package/dist/model/pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherSourceID.d.ts +26 -26
- package/dist/model/pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherSourceID.js +72 -72
- package/dist/model/pickMSEmployeeAPIKeyCreateParamsExcludeKeyofMSEmployeeAPIKeyCreateParamsEmployeeID.d.ts +15 -15
- package/dist/model/pickMSEmployeeAPIKeyCreateParamsExcludeKeyofMSEmployeeAPIKeyCreateParamsEmployeeID.js +22 -22
- package/dist/model/pickMSEmployeeAPIKeyUpdateParamsExcludeKeyofMSEmployeeAPIKeyUpdateParamsId.d.ts +15 -15
- package/dist/model/pickMSEmployeeAPIKeyUpdateParamsExcludeKeyofMSEmployeeAPIKeyUpdateParamsId.js +22 -22
- package/dist/model/pickMSMemberCreationParamsExcludeKeyofMSMemberCreationParamsMemberIdentifier.d.ts +20 -20
- package/dist/model/pickMSMemberCreationParamsExcludeKeyofMSMemberCreationParamsMemberIdentifier.js +47 -47
- package/dist/model/pickMSMemberExcludeKeyofMSMemberMemberIdentifier.d.ts +25 -25
- package/dist/model/pickMSMemberExcludeKeyofMSMemberMemberIdentifier.js +72 -72
- package/dist/model/pickMSMerchantCreditCreationParamsExcludeKeyofMSMerchantCreditCreationParamsMemberIdentifier.d.ts +15 -15
- package/dist/model/pickMSMerchantCreditCreationParamsExcludeKeyofMSMerchantCreditCreationParamsMemberIdentifier.js +22 -22
- package/dist/model/pickMSMerchantCreditExcludeKeyofMSMerchantCreditMemberIdentifier.d.ts +20 -20
- package/dist/model/pickMSMerchantCreditExcludeKeyofMSMerchantCreditMemberIdentifier.js +47 -47
- package/dist/model/pickPaginationRequestWithSortOptionsExcludeKeyofPaginationRequestWithSortOptionsSortKey.d.ts +18 -18
- package/dist/model/pickPaginationRequestWithSortOptionsExcludeKeyofPaginationRequestWithSortOptionsSortKey.js +32 -32
- package/dist/model/pickPaginationRequestWithSortOptionsExcludeKeyofPaginationRequestWithSortOptionsSortKeySortOrder.d.ts +13 -13
- package/dist/model/pickPaginationRequestWithSortOptionsExcludeKeyofPaginationRequestWithSortOptionsSortKeySortOrder.js +11 -11
- package/dist/model/pickPaginationRequestWithoutSortOptionsExcludeKeyofPaginationRequestWithoutSortOptionsIsArchiveIncluded.d.ts +15 -15
- package/dist/model/pickPaginationRequestWithoutSortOptionsExcludeKeyofPaginationRequestWithoutSortOptionsIsArchiveIncluded.js +22 -22
- package/dist/model/pickSSImportedListRecipientFromMembershipTierImportExcludeKeyofSSImportedListRecipientFromMembershipTierImportEmployeeIDOrTierID.d.ts +15 -15
- package/dist/model/pickSSImportedListRecipientFromMembershipTierImportExcludeKeyofSSImportedListRecipientFromMembershipTierImportEmployeeIDOrTierID.js +22 -22
- package/dist/model/pickSSImportedListUpdateParamsExcludeKeyofSSImportedListUpdateParamsId.d.ts +17 -17
- package/dist/model/pickSSImportedListUpdateParamsExcludeKeyofSSImportedListUpdateParamsId.js +32 -32
- package/dist/model/pickSSMobileNumberUpdateParamsExcludeKeyofSSMobileNumberUpdateParamsId.d.ts +25 -25
- package/dist/model/pickSSMobileNumberUpdateParamsExcludeKeyofSSMobileNumberUpdateParamsId.js +72 -72
- package/dist/model/pickSSOptInListCreateParamsExcludeKeyofSSOptInListCreateParamsEmployeeIDOrOptInConfirmedMediaURLsOrOptOutConfirmedMediaURLs.d.ts +24 -24
- package/dist/model/pickSSOptInListCreateParamsExcludeKeyofSSOptInListCreateParamsEmployeeIDOrOptInConfirmedMediaURLsOrOptOutConfirmedMediaURLs.js +67 -67
- package/dist/model/pickSSOptInListMemberUpdateParamsExcludeKeyofSSOptInListMemberUpdateParamsMerchantCreatedAtOrMaxSMSCount.d.ts +22 -22
- package/dist/model/pickSSOptInListMemberUpdateParamsExcludeKeyofSSOptInListMemberUpdateParamsMerchantCreatedAtOrMaxSMSCount.js +52 -52
- package/dist/model/pickSSOptInListMemberUpdateParamsExcludeKeyofSSOptInListMemberUpdateParamsMerchantCreatedAtOrMaxSMSCountOptInSourceID.d.ts +13 -13
- package/dist/model/pickSSOptInListMemberUpdateParamsExcludeKeyofSSOptInListMemberUpdateParamsMerchantCreatedAtOrMaxSMSCountOptInSourceID.js +11 -11
- package/dist/model/pickSSOptInListUpdateParamsExcludeKeyofSSOptInListUpdateParamsId.d.ts +27 -27
- package/dist/model/pickSSOptInListUpdateParamsExcludeKeyofSSOptInListUpdateParamsId.js +82 -82
- package/dist/model/pickSSOptInSourceUpdateParamsExcludeKeyofSSOptInSourceUpdateParamsId.d.ts +16 -16
- package/dist/model/pickSSOptInSourceUpdateParamsExcludeKeyofSSOptInSourceUpdateParamsId.js +27 -27
- package/dist/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhone.d.ts +36 -36
- package/dist/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhone.js +117 -117
- package/dist/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhonePaymentObjectBroadcastID.d.ts +13 -13
- package/dist/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhonePaymentObjectBroadcastID.js +11 -11
- package/dist/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhoneStatus.d.ts +13 -13
- package/dist/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhoneStatus.js +11 -11
- package/dist/model/pickVSAdvertisementCreditCreateParamsExcludeKeyofVSAdvertisementCreditCreateParamsEmployeeID.d.ts +19 -19
- package/dist/model/pickVSAdvertisementCreditCreateParamsExcludeKeyofVSAdvertisementCreditCreateParamsEmployeeID.js +37 -37
- package/dist/model/pickVSAdvertisementCreditScanExcludeKeyofVSAdvertisementCreditScanRedeemedAtOrRefundedAt.d.ts +33 -33
- package/dist/model/pickVSAdvertisementCreditScanExcludeKeyofVSAdvertisementCreditScanRedeemedAtOrRefundedAt.js +97 -97
- package/dist/model/pickVSAdvertisementCreditUpdateParamsExcludeKeyofVSAdvertisementCreditUpdateParamsId.d.ts +19 -19
- package/dist/model/pickVSAdvertisementCreditUpdateParamsExcludeKeyofVSAdvertisementCreditUpdateParamsId.js +37 -37
- package/dist/model/pickVSCampaignUpdateParamsExcludeKeyofVSCampaignUpdateParamsStartDateOrExpirationDate.d.ts +26 -26
- package/dist/model/pickVSCampaignUpdateParamsExcludeKeyofVSCampaignUpdateParamsStartDateOrExpirationDate.js +72 -72
- package/dist/model/pickVSCampaignUpdateParamsExcludeKeyofVSCampaignUpdateParamsStartDateOrExpirationDateValueType.d.ts +13 -13
- package/dist/model/pickVSCampaignUpdateParamsExcludeKeyofVSCampaignUpdateParamsStartDateOrExpirationDateValueType.js +11 -11
- package/dist/model/pickVSDynamicVoucherExcludeKeyofVSDynamicVoucherTemporalDecreaseFrequencyType.d.ts +32 -32
- package/dist/model/pickVSDynamicVoucherExcludeKeyofVSDynamicVoucherTemporalDecreaseFrequencyType.js +107 -107
- package/dist/model/pickVSPaymentDesignCreateParamsExcludeKeyofVSPaymentDesignCreateParamsEmployeeID.d.ts +27 -27
- package/dist/model/pickVSPaymentDesignCreateParamsExcludeKeyofVSPaymentDesignCreateParamsEmployeeID.js +77 -77
- package/dist/model/pickVSPaymentDesignUpdateParamsExcludeKeyofVSPaymentDesignUpdateParamsId.d.ts +27 -27
- package/dist/model/pickVSPaymentDesignUpdateParamsExcludeKeyofVSPaymentDesignUpdateParamsId.js +77 -77
- package/dist/model/pickVSPaymentDesignUpdateParamsExcludeKeyofVSPaymentDesignUpdateParamsIdBorderStyleType.d.ts +13 -13
- package/dist/model/pickVSPaymentDesignUpdateParamsExcludeKeyofVSPaymentDesignUpdateParamsIdBorderStyleType.js +11 -11
- package/dist/model/pickVSStaticVoucherExcludeKeyofVSStaticVoucherRedeemedAtOrRefundedAtOrLastViewedAt.d.ts +38 -38
- package/dist/model/pickVSStaticVoucherExcludeKeyofVSStaticVoucherRedeemedAtOrRefundedAtOrLastViewedAt.js +122 -122
- package/dist/model/pickVSStaticVoucherExcludeKeyofVSStaticVoucherRedeemedAtOrRefundedAtOrLastViewedAtRegisterID.d.ts +13 -13
- package/dist/model/pickVSStaticVoucherExcludeKeyofVSStaticVoucherRedeemedAtOrRefundedAtOrLastViewedAtRegisterID.js +11 -11
- package/dist/model/pickVSStaticVoucherExcludeKeyofVSStaticVoucherRedeemedAtOrRefundedAtOrLastViewedAtTransactionType.d.ts +13 -13
- package/dist/model/pickVSStaticVoucherExcludeKeyofVSStaticVoucherRedeemedAtOrRefundedAtOrLastViewedAtTransactionType.js +11 -11
- package/dist/model/pickWTEmailSubscriberUpdateParamsExcludeKeyofWTEmailSubscriberUpdateParamsId.d.ts +16 -16
- package/dist/model/pickWTEmailSubscriberUpdateParamsExcludeKeyofWTEmailSubscriberUpdateParamsId.js +27 -27
- package/dist/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmail.d.ts +33 -33
- package/dist/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmail.js +92 -92
- package/dist/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmailScheduleStartDay.d.ts +13 -13
- package/dist/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmailScheduleStartDay.js +11 -11
- package/dist/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmailScheduleStartHour.d.ts +13 -13
- package/dist/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmailScheduleStartHour.js +11 -11
- package/dist/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmailScheduleStartMeridiem.d.ts +13 -13
- package/dist/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmailScheduleStartMeridiem.js +11 -11
- package/dist/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmailScheduleStartMinute.d.ts +13 -13
- package/dist/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmailScheduleStartMinute.js +11 -11
- package/dist/model/pickWTMemberMemberIDOrFirstNameOrLastNameOrMembershipTierIDOrPointsAccruedOrMobileNumberOrEmailOrBirthday.d.ts +21 -21
- package/dist/model/pickWTMemberMemberIDOrFirstNameOrLastNameOrMembershipTierIDOrPointsAccruedOrMobileNumberOrEmailOrBirthday.js +52 -52
- package/dist/model/pickWTMerchantCreditMemberIDOrCreditAmountOrMobileNumber.d.ts +16 -16
- package/dist/model/pickWTMerchantCreditMemberIDOrCreditAmountOrMobileNumber.js +27 -27
- package/dist/model/pickWTMerchantURLUpdateExcludeKeyofWTMerchantURLUpdateUrlID.d.ts +15 -15
- package/dist/model/pickWTMerchantURLUpdateExcludeKeyofWTMerchantURLUpdateUrlID.js +22 -22
- package/dist/model/pickWTNewsArticleUpdateParamsExcludeKeyofWTNewsArticleUpdateParamsId.d.ts +19 -19
- package/dist/model/pickWTNewsArticleUpdateParamsExcludeKeyofWTNewsArticleUpdateParamsId.js +42 -42
- package/dist/model/pickWTPaymentObjectBroadcastExcludeKeyofWTPaymentObjectBroadcastListTypeOrListID.d.ts +36 -36
- package/dist/model/pickWTPaymentObjectBroadcastExcludeKeyofWTPaymentObjectBroadcastListTypeOrListID.js +102 -102
- package/dist/model/pickWTPaymentObjectBroadcastExcludeKeyofWTPaymentObjectBroadcastListTypeOrListIDBroadcastStatus.d.ts +13 -13
- package/dist/model/pickWTPaymentObjectBroadcastExcludeKeyofWTPaymentObjectBroadcastListTypeOrListIDBroadcastStatus.js +11 -11
- package/dist/model/pickWTPaymentObjectBroadcastExcludeKeyofWTPaymentObjectBroadcastListTypeOrListIDPaymentObjectPrefix.d.ts +13 -13
- package/dist/model/pickWTPaymentObjectBroadcastExcludeKeyofWTPaymentObjectBroadcastListTypeOrListIDPaymentObjectPrefix.js +11 -11
- package/dist/model/pickWTSmsSubscriberUpdateParamsExcludeKeyofWTSmsSubscriberUpdateParamsId.d.ts +14 -14
- package/dist/model/pickWTSmsSubscriberUpdateParamsExcludeKeyofWTSmsSubscriberUpdateParamsId.js +17 -17
- package/dist/model/pickWTStaticVoucherCampaignCreateParamsExcludeKeyofWTStaticVoucherCampaignCreateParamsStartDateTimeOrExpirationDateTime.d.ts +27 -27
- package/dist/model/pickWTStaticVoucherCampaignCreateParamsExcludeKeyofWTStaticVoucherCampaignCreateParamsStartDateTimeOrExpirationDateTime.js +77 -77
- package/dist/model/pickWTStaticVoucherCreateParamsExcludeKeyofWTStaticVoucherCreateParamsCampaignID.d.ts +16 -16
- package/dist/model/pickWTStaticVoucherCreateParamsExcludeKeyofWTStaticVoucherCreateParamsCampaignID.js +27 -27
- package/dist/model/plan.d.ts +15 -15
- package/dist/model/plan.js +42 -42
- package/dist/model/portalPage.d.ts +74 -74
- package/dist/model/portalPage.js +78 -78
- package/dist/model/presignedPost.d.ts +12 -12
- package/dist/model/presignedPost.js +22 -22
- package/dist/model/presignedPostFields.d.ts +11 -11
- package/dist/model/presignedPostFields.js +22 -22
- package/dist/model/product.d.ts +17 -17
- package/dist/model/product.js +52 -52
- package/dist/model/productTaxBehavior.d.ts +13 -0
- package/dist/model/productTaxBehavior.js +12 -0
- package/dist/model/productTaxBehavior.js.map +1 -0
- package/dist/model/profileStatuses.d.ts +7 -7
- package/dist/model/profileStatuses.js +11 -11
- package/dist/model/promoCode.d.ts +23 -23
- package/dist/model/promoCode.js +77 -77
- package/dist/model/qRCodeDesign.d.ts +18 -18
- package/dist/model/qRCodeDesign.js +52 -52
- package/dist/model/reachPerformanceStats.d.ts +20 -20
- package/dist/model/reachPerformanceStats.js +67 -67
- package/dist/model/request.d.ts +63 -63
- package/dist/model/request.js +282 -282
- package/dist/model/response.d.ts +16 -16
- package/dist/model/response.js +47 -47
- package/dist/model/role.d.ts +24 -24
- package/dist/model/role.js +87 -87
- package/dist/model/roleAuditLog.d.ts +21 -21
- package/dist/model/roleAuditLog.js +72 -72
- package/dist/model/roomRate.d.ts +21 -21
- package/dist/model/roomRate.js +67 -67
- package/dist/model/sSImportedListRecipientCreateParams.d.ts +11 -11
- package/dist/model/sSImportedListRecipientCreateParams.js +22 -22
- package/dist/model/sSOptInSource.d.ts +17 -17
- package/dist/model/sSOptInSource.js +52 -52
- package/dist/model/sSOutboundStatuses.d.ts +13 -13
- package/dist/model/sSOutboundStatuses.js +11 -11
- package/dist/model/saveMerchantCreditPaymentDesignRequest.d.ts +14 -14
- package/dist/model/saveMerchantCreditPaymentDesignRequest.js +17 -17
- package/dist/model/saveTicketSettingsRequest.d.ts +17 -17
- package/dist/model/saveTicketSettingsRequest.js +32 -32
- package/dist/model/service.d.ts +28 -21
- package/dist/model/service.js +97 -67
- package/dist/model/service.js.map +1 -1
- package/dist/model/setDefaultPaymentMethodRequest.d.ts +14 -14
- package/dist/model/setDefaultPaymentMethodRequest.js +17 -17
- package/dist/model/simpleSMSBroadcast.d.ts +35 -35
- package/dist/model/simpleSMSBroadcast.js +112 -112
- package/dist/model/smsSubscriber.d.ts +16 -16
- package/dist/model/smsSubscriber.js +42 -42
- package/dist/model/sortDirection.d.ts +4 -4
- package/dist/model/sortDirection.js +8 -8
- package/dist/model/staticVoucher.d.ts +45 -45
- package/dist/model/staticVoucher.js +172 -172
- package/dist/model/staticVoucherCampaign.d.ts +36 -36
- package/dist/model/staticVoucherCampaign.js +137 -137
- package/dist/model/staticVoucherCampaignBroadcast.d.ts +34 -34
- package/dist/model/staticVoucherCampaignBroadcast.js +107 -107
- package/dist/model/staticVoucherCampaignBroadcastBroadcastStatus.d.ts +13 -13
- package/dist/model/staticVoucherCampaignBroadcastBroadcastStatus.js +11 -11
- package/dist/model/staticVoucherCampaignBroadcastPaymentObjectPrefix.d.ts +13 -13
- package/dist/model/staticVoucherCampaignBroadcastPaymentObjectPrefix.js +11 -11
- package/dist/model/staticVoucherCampaignUpdate.d.ts +19 -19
- package/dist/model/staticVoucherCampaignUpdate.js +57 -57
- package/dist/model/staticVoucherCampaignValueType.d.ts +13 -13
- package/dist/model/staticVoucherCampaignValueType.js +11 -11
- package/dist/model/staticVoucherId.d.ts +13 -13
- package/dist/model/staticVoucherId.js +11 -11
- package/dist/model/status.d.ts +13 -13
- package/dist/model/status.js +11 -11
- package/dist/model/subscriptionFeature.d.ts +18 -18
- package/dist/model/subscriptionFeature.js +57 -57
- package/dist/model/subscriptionPlan.d.ts +18 -16
- package/dist/model/subscriptionPlan.js +52 -47
- package/dist/model/subscriptionPlan.js.map +1 -1
- package/dist/model/subscriptionPlanAnnual.d.ts +15 -0
- package/dist/model/subscriptionPlanAnnual.js +23 -0
- package/dist/model/subscriptionPlanAnnual.js.map +1 -0
- package/dist/model/subscriptionProduct.d.ts +21 -21
- package/dist/model/subscriptionProduct.js +72 -72
- package/dist/model/tcpa.d.ts +17 -17
- package/dist/model/tcpa.js +47 -47
- package/dist/model/thread.d.ts +16 -16
- package/dist/model/thread.js +42 -42
- package/dist/model/ticket.d.ts +30 -30
- package/dist/model/ticket.js +112 -112
- package/dist/model/ticketSortKeys.d.ts +8 -8
- package/dist/model/ticketSortKeys.js +12 -12
- package/dist/model/trustBundleStatuses.d.ts +7 -7
- package/dist/model/trustBundleStatuses.js +11 -11
- package/dist/model/updateEmailNotificationPreferenceRequest.d.ts +14 -14
- package/dist/model/updateEmailNotificationPreferenceRequest.js +17 -17
- package/dist/model/updateStaticVoucherCampaignWithVoucher.d.ts +23 -23
- package/dist/model/updateStaticVoucherCampaignWithVoucher.js +77 -77
- package/dist/model/vSCampaignGeneratedMessage.d.ts +12 -12
- package/dist/model/vSCampaignGeneratedMessage.js +27 -27
- package/dist/model/vSCampaignGeneratedMessagePagination.d.ts +12 -12
- package/dist/model/vSCampaignGeneratedMessagePagination.js +27 -27
- package/dist/model/vSDynamicVoucherStatus.d.ts +13 -13
- package/dist/model/vSDynamicVoucherStatus.js +11 -11
- package/dist/model/vectorStore.d.ts +16 -16
- package/dist/model/vectorStore.js +42 -42
- package/dist/model/video.d.ts +24 -20
- package/dist/model/video.js +72 -62
- package/dist/model/video.js.map +1 -1
- package/dist/model/videoProvider.d.ts +13 -0
- package/dist/model/videoProvider.js +12 -0
- package/dist/model/videoProvider.js.map +1 -0
- package/dist/model/virtualBusinessCard.d.ts +28 -28
- package/dist/model/virtualBusinessCard.js +102 -102
- package/dist/model/wTA2PApplicationUpdateParams.d.ts +41 -41
- package/dist/model/wTA2PApplicationUpdateParams.js +132 -132
- package/dist/model/wTAdvertisementCredit.d.ts +24 -24
- package/dist/model/wTAdvertisementCredit.js +77 -77
- package/dist/model/wTAdvertisementCreditCreateParams.d.ts +15 -15
- package/dist/model/wTAdvertisementCreditCreateParams.js +37 -37
- package/dist/model/wTAdvertisementCreditScan.d.ts +36 -36
- package/dist/model/wTAdvertisementCreditScan.js +127 -127
- package/dist/model/wTAdvertisementCreditUpdateParams.d.ts +15 -15
- package/dist/model/wTAdvertisementCreditUpdateParams.js +37 -37
- package/dist/model/wTAmenityCreateParams.d.ts +15 -15
- package/dist/model/wTAmenityCreateParams.js +42 -42
- package/dist/model/wTAmenityUpdateParams.d.ts +15 -15
- package/dist/model/wTAmenityUpdateParams.js +42 -42
- package/dist/model/wTAndroidKeystoreResponse.d.ts +11 -11
- package/dist/model/wTAndroidKeystoreResponse.js +22 -22
- package/dist/model/wTAuthenticationCheckSessionTokenStatusResponse.d.ts +15 -15
- package/dist/model/wTAuthenticationCheckSessionTokenStatusResponse.js +23 -23
- package/dist/model/wTAuthenticationForgotPassword.d.ts +10 -10
- package/dist/model/wTAuthenticationForgotPassword.js +17 -17
- package/dist/model/wTAuthenticationLoginRequest.d.ts +11 -11
- package/dist/model/wTAuthenticationLoginRequest.js +22 -22
- package/dist/model/wTAuthenticationLoginResponse.d.ts +25 -25
- package/dist/model/wTAuthenticationLoginResponse.js +92 -92
- package/dist/model/wTAuthenticationRegister.d.ts +31 -31
- package/dist/model/wTAuthenticationRegister.js +122 -122
- package/dist/model/wTAuthenticationRequestResetPassword.d.ts +10 -10
- package/dist/model/wTAuthenticationRequestResetPassword.js +17 -17
- package/dist/model/wTAuthenticationResetPassword.d.ts +12 -12
- package/dist/model/wTAuthenticationResetPassword.js +27 -27
- package/dist/model/wTAuthenticationSSOLoginForDiscourse.d.ts +13 -13
- package/dist/model/wTAuthenticationSSOLoginForDiscourse.js +32 -32
- package/dist/model/wTBillingChangePlan.d.ts +10 -10
- package/dist/model/wTBillingChangePlan.js +17 -17
- package/dist/model/wTBillingSavePaymentMethod.d.ts +10 -10
- package/dist/model/wTBillingSavePaymentMethod.js +17 -17
- package/dist/model/wTBillingVerifyPaymentMethodResponse.d.ts +12 -12
- package/dist/model/wTBillingVerifyPaymentMethodResponse.js +22 -22
- package/dist/model/wTCountResult.d.ts +10 -10
- package/dist/model/wTCountResult.js +17 -17
- package/dist/model/wTCustomerSearchByMemberID.d.ts +10 -10
- package/dist/model/wTCustomerSearchByMemberID.js +17 -17
- package/dist/model/wTCustomerSearchByPhoneNumber.d.ts +10 -10
- package/dist/model/wTCustomerSearchByPhoneNumber.js +17 -17
- package/dist/model/wTDiningCreateParams.d.ts +15 -15
- package/dist/model/wTDiningCreateParams.js +42 -42
- package/dist/model/wTDiningUpdateParams.d.ts +15 -15
- package/dist/model/wTDiningUpdateParams.js +42 -42
- package/dist/model/wTDynamicVoucher.d.ts +46 -46
- package/dist/model/wTDynamicVoucher.js +177 -177
- package/dist/model/wTDynamicVoucherCreateParams.d.ts +22 -22
- package/dist/model/wTDynamicVoucherCreateParams.js +72 -72
- package/dist/model/wTDynamicVoucherRedemption.d.ts +35 -35
- package/dist/model/wTDynamicVoucherRedemption.js +122 -122
- package/dist/model/wTDynamicVoucherRedemptionTransactionType.d.ts +13 -13
- package/dist/model/wTDynamicVoucherRedemptionTransactionType.js +11 -11
- package/dist/model/wTDynamicVoucherSummary.d.ts +34 -34
- package/dist/model/wTDynamicVoucherSummary.js +132 -132
- package/dist/model/wTDynamicVoucherSummaryStatus.d.ts +13 -13
- package/dist/model/wTDynamicVoucherSummaryStatus.js +11 -11
- package/dist/model/wTDynamicVoucherUpdateParams.d.ts +22 -22
- package/dist/model/wTDynamicVoucherUpdateParams.js +72 -72
- package/dist/model/wTEmailSubscriberCreateParams.d.ts +12 -12
- package/dist/model/wTEmailSubscriberCreateParams.js +27 -27
- package/dist/model/wTEmailSubscriberCreateParamsWalletUI.d.ts +13 -13
- package/dist/model/wTEmailSubscriberCreateParamsWalletUI.js +32 -32
- package/dist/model/wTEmailSubscriberUpdateParams.d.ts +12 -12
- package/dist/model/wTEmailSubscriberUpdateParams.js +27 -27
- package/dist/model/wTEmployee.d.ts +43 -43
- package/dist/model/wTEmployee.js +162 -162
- package/dist/model/wTEmployeeAPIKey.d.ts +19 -19
- package/dist/model/wTEmployeeAPIKey.js +57 -57
- package/dist/model/wTEmployeeAPIKeyCreateParams.d.ts +11 -11
- package/dist/model/wTEmployeeAPIKeyCreateParams.js +22 -22
- package/dist/model/wTEmployeeAPIKeyUpdateParams.d.ts +11 -11
- package/dist/model/wTEmployeeAPIKeyUpdateParams.js +22 -22
- package/dist/model/wTEmployeeCreate.d.ts +30 -30
- package/dist/model/wTEmployeeCreate.js +97 -97
- package/dist/model/wTEmployeeCreateDocument.d.ts +12 -12
- package/dist/model/wTEmployeeCreateDocument.js +27 -27
- package/dist/model/wTEmployeeCreateMediaFile.d.ts +12 -12
- package/dist/model/wTEmployeeCreateMediaFile.js +27 -27
- package/dist/model/wTEmployeeFileCreate.d.ts +11 -11
- package/dist/model/wTEmployeeFileCreate.js +22 -22
- package/dist/model/wTEmployeeImportRecords.d.ts +11 -11
- package/dist/model/wTEmployeeImportRecords.js +22 -22
- package/dist/model/wTEmployeeNotification.d.ts +14 -14
- package/dist/model/wTEmployeeNotification.js +32 -32
- package/dist/model/wTEmployeeNotificationType.d.ts +13 -13
- package/dist/model/wTEmployeeNotificationType.js +11 -11
- package/dist/model/wTEmployeePeerRoles.d.ts +10 -10
- package/dist/model/wTEmployeePeerRoles.js +17 -17
- package/dist/model/wTEmployeeS3FilePresign.d.ts +13 -13
- package/dist/model/wTEmployeeS3FilePresign.js +27 -27
- package/dist/model/wTEmployeeS3FilePresignContext.d.ts +13 -13
- package/dist/model/wTEmployeeS3FilePresignContext.js +11 -11
- package/dist/model/wTEmployeeScheduleSMSCampaignBroadcast.d.ts +16 -16
- package/dist/model/wTEmployeeScheduleSMSCampaignBroadcast.js +47 -47
- package/dist/model/wTEmployeeScheduleSimpleSMS.d.ts +16 -16
- package/dist/model/wTEmployeeScheduleSimpleSMS.js +42 -42
- package/dist/model/wTEmployeeScheduleSimpleSMSListType.d.ts +13 -13
- package/dist/model/wTEmployeeScheduleSimpleSMSListType.js +11 -11
- package/dist/model/wTEmployeeScheduleSimpleSMSToRecipient.d.ts +14 -14
- package/dist/model/wTEmployeeScheduleSimpleSMSToRecipient.js +37 -37
- package/dist/model/wTEmployeeSendHelpDeskResponse.d.ts +12 -12
- package/dist/model/wTEmployeeSendHelpDeskResponse.js +27 -27
- package/dist/model/wTEmployeeUpdate.d.ts +29 -29
- package/dist/model/wTEmployeeUpdate.js +92 -92
- package/dist/model/wTEmployeeUpdateRecords.d.ts +11 -11
- package/dist/model/wTEmployeeUpdateRecords.js +22 -22
- package/dist/model/wTFetchWalletPaymentObjectsWithToken.d.ts +14 -14
- package/dist/model/wTFetchWalletPaymentObjectsWithToken.js +37 -37
- package/dist/model/wTGamingCreateParams.d.ts +15 -15
- package/dist/model/wTGamingCreateParams.js +42 -42
- package/dist/model/wTGamingUpdateParams.d.ts +15 -15
- package/dist/model/wTGamingUpdateParams.js +42 -42
- package/dist/model/wTImageGridCreateParams.d.ts +14 -14
- package/dist/model/wTImageGridCreateParams.js +37 -37
- package/dist/model/wTImageGridUpdateParams.d.ts +14 -14
- package/dist/model/wTImageGridUpdateParams.js +37 -37
- package/dist/model/wTImportedList.d.ts +18 -18
- package/dist/model/wTImportedList.js +52 -52
- package/dist/model/wTImportedListRecipientFromMembershipTierImport.d.ts +13 -13
- package/dist/model/wTImportedListRecipientFromMembershipTierImport.js +27 -27
- package/dist/model/wTImportedListRecipientFromMembershipTierImportTierID.d.ts +13 -13
- package/dist/model/wTImportedListRecipientFromMembershipTierImportTierID.js +11 -11
- package/dist/model/wTInfoGenesisLookupRequestErrors.d.ts +13 -13
- package/dist/model/wTInfoGenesisLookupRequestErrors.js +32 -32
- package/dist/model/wTInfoGenesisRecordFilterParameters.d.ts +12 -12
- package/dist/model/wTInfoGenesisRecordFilterParameters.js +27 -27
- package/dist/model/wTInfoGenesisRoutingIDs.d.ts +10 -10
- package/dist/model/wTInfoGenesisRoutingIDs.js +17 -17
- package/dist/model/wTInfoGenesisUniquePostingIDs.d.ts +10 -10
- package/dist/model/wTInfoGenesisUniquePostingIDs.js +17 -17
- package/dist/model/wTLocalInstance.d.ts +27 -27
- package/dist/model/wTLocalInstance.js +77 -77
- package/dist/model/wTLoungeCreateParams.d.ts +15 -15
- package/dist/model/wTLoungeCreateParams.js +42 -42
- package/dist/model/wTLoungeUpdateParams.d.ts +15 -15
- package/dist/model/wTLoungeUpdateParams.js +42 -42
- package/dist/model/wTMember.d.ts +23 -23
- package/dist/model/wTMember.js +82 -82
- package/dist/model/wTMemberCreationParams.d.ts +17 -17
- package/dist/model/wTMemberCreationParams.js +52 -52
- package/dist/model/wTMembershipTier.d.ts +20 -20
- package/dist/model/wTMembershipTier.js +62 -62
- package/dist/model/wTMembershipTierCreationParams.d.ts +14 -14
- package/dist/model/wTMembershipTierCreationParams.js +37 -37
- package/dist/model/wTMembershipTierId.d.ts +13 -13
- package/dist/model/wTMembershipTierId.js +11 -11
- package/dist/model/wTMembershipTierUpdateParams.d.ts +14 -14
- package/dist/model/wTMembershipTierUpdateParams.js +37 -37
- package/dist/model/wTMembershipTierWithMemberCount.d.ts +21 -21
- package/dist/model/wTMembershipTierWithMemberCount.js +67 -67
- package/dist/model/wTMerchantCredit.d.ts +19 -19
- package/dist/model/wTMerchantCredit.js +62 -62
- package/dist/model/wTMerchantCreditCreationParams.d.ts +12 -12
- package/dist/model/wTMerchantCreditCreationParams.js +27 -27
- package/dist/model/wTMerchantURLCreate.d.ts +11 -11
- package/dist/model/wTMerchantURLCreate.js +22 -22
- package/dist/model/wTMerchantURLUpdate.d.ts +11 -11
- package/dist/model/wTMerchantURLUpdate.js +22 -22
- package/dist/model/wTMerchantUpdate.d.ts +18 -18
- package/dist/model/wTMerchantUpdate.js +57 -57
- package/dist/model/wTMerchantUpdatePOSIntegration.d.ts +10 -10
- package/dist/model/wTMerchantUpdatePOSIntegration.js +17 -17
- package/dist/model/wTMerchantUpdatePointsOfContact.d.ts +13 -13
- package/dist/model/wTMerchantUpdatePointsOfContact.js +32 -32
- package/dist/model/wTMessageInstance.d.ts +13 -13
- package/dist/model/wTMessageInstance.js +11 -11
- package/dist/model/wTNewsArticleCreateParams.d.ts +15 -15
- package/dist/model/wTNewsArticleCreateParams.js +42 -42
- package/dist/model/wTNewsArticleUpdateParams.d.ts +15 -15
- package/dist/model/wTNewsArticleUpdateParams.js +42 -42
- package/dist/model/wTOptInList.d.ts +28 -28
- package/dist/model/wTOptInList.js +102 -102
- package/dist/model/wTOptInListCreationParams.d.ts +22 -22
- package/dist/model/wTOptInListCreationParams.js +77 -77
- package/dist/model/wTPassBrandKit.d.ts +15 -15
- package/dist/model/wTPassBrandKit.js +42 -42
- package/dist/model/wTPaymentDesign.d.ts +30 -30
- package/dist/model/wTPaymentDesign.js +107 -107
- package/dist/model/wTPaymentDesignCreateParams.d.ts +23 -23
- package/dist/model/wTPaymentDesignCreateParams.js +77 -77
- package/dist/model/wTPaymentDesignUpdateParams.d.ts +23 -23
- package/dist/model/wTPaymentDesignUpdateParams.js +77 -77
- package/dist/model/wTPerformanceCreateParams.d.ts +21 -21
- package/dist/model/wTPerformanceCreateParams.js +72 -72
- package/dist/model/wTPerformanceCreateParams.js.map +1 -1
- package/dist/model/wTPerformanceUpdateParams.d.ts +21 -21
- package/dist/model/wTPerformanceUpdateParams.js +72 -72
- package/dist/model/wTPerformanceUpdateParams.js.map +1 -1
- package/dist/model/wTPosMachine.d.ts +19 -19
- package/dist/model/wTPosMachine.js +62 -62
- package/dist/model/wTPosMachine.js.map +1 -1
- package/dist/model/wTPosMachineCreateParams.d.ts +14 -14
- package/dist/model/wTPosMachineCreateParams.js +37 -37
- package/dist/model/wTPosMachineCreateParams.js.map +1 -1
- package/dist/model/wTPosMachineUpdateParams.d.ts +14 -14
- package/dist/model/wTPosMachineUpdateParams.js +37 -37
- package/dist/model/wTPosMachineUpdateParams.js.map +1 -1
- package/dist/model/wTProductCreateParams.d.ts +20 -15
- package/dist/model/wTProductCreateParams.js +62 -42
- package/dist/model/wTProductCreateParams.js.map +1 -1
- package/dist/model/wTProductUpdateParams.d.ts +20 -15
- package/dist/model/wTProductUpdateParams.js +62 -42
- package/dist/model/wTProductUpdateParams.js.map +1 -1
- package/dist/model/wTPromoCodeCreateParams.d.ts +17 -17
- package/dist/model/wTPromoCodeCreateParams.js +52 -52
- package/dist/model/wTPromoCodeUpdateParams.d.ts +17 -17
- package/dist/model/wTPromoCodeUpdateParams.js +52 -52
- package/dist/model/wTQRCodeDesign.d.ts +18 -18
- package/dist/model/wTQRCodeDesign.js +52 -52
- package/dist/model/wTQRCodeDesignCreateParams.d.ts +12 -12
- package/dist/model/wTQRCodeDesignCreateParams.js +27 -27
- package/dist/model/wTQRCodeDesignUpdateParams.d.ts +12 -12
- package/dist/model/wTQRCodeDesignUpdateParams.js +27 -27
- package/dist/model/wTQuickLink.d.ts +21 -21
- package/dist/model/wTQuickLink.js +62 -62
- package/dist/model/wTQuickLinkCreateParams.d.ts +15 -15
- package/dist/model/wTQuickLinkCreateParams.js +37 -37
- package/dist/model/wTQuickLinkLinkBookSectionID.d.ts +13 -13
- package/dist/model/wTQuickLinkLinkBookSectionID.js +11 -11
- package/dist/model/wTQuickLinkSectionCreateParams.d.ts +11 -11
- package/dist/model/wTQuickLinkSectionCreateParams.js +22 -22
- package/dist/model/wTQuickLinkSectionUpdateParams.d.ts +11 -11
- package/dist/model/wTQuickLinkSectionUpdateParams.js +22 -22
- package/dist/model/wTQuickLinkUpdateParams.d.ts +15 -15
- package/dist/model/wTQuickLinkUpdateParams.js +37 -37
- package/dist/model/wTRole.d.ts +24 -24
- package/dist/model/wTRole.js +87 -87
- package/dist/model/wTRoomRateCreateParams.d.ts +15 -15
- package/dist/model/wTRoomRateCreateParams.js +42 -42
- package/dist/model/wTRoomRateUpdateParams.d.ts +15 -15
- package/dist/model/wTRoomRateUpdateParams.js +42 -42
- package/dist/model/wTSMSAcquirePhoneNumber.d.ts +10 -10
- package/dist/model/wTSMSAcquirePhoneNumber.js +17 -17
- package/dist/model/wTSMSImportOptInListSubscribers.d.ts +12 -12
- package/dist/model/wTSMSImportOptInListSubscribers.js +27 -27
- package/dist/model/wTSMSImportedListCreate.d.ts +12 -12
- package/dist/model/wTSMSImportedListCreate.js +27 -27
- package/dist/model/wTSMSOptInListSourceCreate.d.ts +11 -11
- package/dist/model/wTSMSOptInListSourceCreate.js +22 -22
- package/dist/model/wTSMSUpdatePhoneNumberConfig.d.ts +21 -21
- package/dist/model/wTSMSUpdatePhoneNumberConfig.js +72 -72
- package/dist/model/wTServiceCreateParams.d.ts +20 -15
- package/dist/model/wTServiceCreateParams.js +62 -42
- package/dist/model/wTServiceCreateParams.js.map +1 -1
- package/dist/model/wTServiceUpdateParams.d.ts +20 -15
- package/dist/model/wTServiceUpdateParams.js +62 -42
- package/dist/model/wTServiceUpdateParams.js.map +1 -1
- package/dist/model/wTSettingsSetPassword.d.ts +10 -10
- package/dist/model/wTSettingsSetPassword.js +17 -17
- package/dist/model/wTSmsSubscriberCreateParams.d.ts +10 -10
- package/dist/model/wTSmsSubscriberCreateParams.js +17 -17
- package/dist/model/wTSmsSubscriberCreateParamsWalletUI.d.ts +11 -11
- package/dist/model/wTSmsSubscriberCreateParamsWalletUI.js +22 -22
- package/dist/model/wTSmsSubscriberUpdateParams.d.ts +10 -10
- package/dist/model/wTSmsSubscriberUpdateParams.js +17 -17
- package/dist/model/wTStaticVoucher.d.ts +45 -45
- package/dist/model/wTStaticVoucher.js +172 -172
- package/dist/model/wTStaticVoucherCampaign.d.ts +36 -36
- package/dist/model/wTStaticVoucherCampaign.js +137 -137
- package/dist/model/wTStaticVoucherCampaignPreviewMessagesByPage.d.ts +14 -14
- package/dist/model/wTStaticVoucherCampaignPreviewMessagesByPage.js +37 -37
- package/dist/model/wTStaticVoucherCreateParams.d.ts +14 -14
- package/dist/model/wTStaticVoucherCreateParams.js +32 -32
- package/dist/model/wTStaticVoucherUpdateParams.d.ts +12 -12
- package/dist/model/wTStaticVoucherUpdateParams.js +27 -27
- package/dist/model/wTSystemApprovePhoneNumber.d.ts +11 -11
- package/dist/model/wTSystemApprovePhoneNumber.js +22 -22
- package/dist/model/wTSystemRoleCreate.d.ts +11 -11
- package/dist/model/wTSystemRoleCreate.js +22 -22
- package/dist/model/wTTCPAOpt.d.ts +14 -14
- package/dist/model/wTTCPAOpt.js +27 -27
- package/dist/model/wTTCPAOptListID.d.ts +13 -13
- package/dist/model/wTTCPAOptListID.js +11 -11
- package/dist/model/wTTCPAOptSourceID.d.ts +13 -13
- package/dist/model/wTTCPAOptSourceID.js +11 -11
- package/dist/model/wTTicket.d.ts +30 -30
- package/dist/model/wTTicket.js +112 -112
- package/dist/model/wTTicketCreateParams.d.ts +15 -15
- package/dist/model/wTTicketCreateParams.js +42 -42
- package/dist/model/wTTicketUpdateParams.d.ts +14 -14
- package/dist/model/wTTicketUpdateParams.js +37 -37
- package/dist/model/wTTwilioRequestAuthyCode.d.ts +11 -11
- package/dist/model/wTTwilioRequestAuthyCode.js +22 -22
- package/dist/model/wTTwilioVerifyAuthyCode.d.ts +12 -12
- package/dist/model/wTTwilioVerifyAuthyCode.js +27 -27
- package/dist/model/wTVideoCreateParams.d.ts +16 -14
- package/dist/model/wTVideoCreateParams.js +42 -37
- package/dist/model/wTVideoCreateParams.js.map +1 -1
- package/dist/model/wTVideoPlaybackSource.d.ts +12 -0
- package/dist/model/wTVideoPlaybackSource.js +23 -0
- package/dist/model/wTVideoPlaybackSource.js.map +1 -0
- package/dist/model/wTVideoPlaybackSourceType.d.ts +13 -0
- package/dist/model/wTVideoPlaybackSourceType.js +12 -0
- package/dist/model/wTVideoPlaybackSourceType.js.map +1 -0
- package/dist/model/wTVideoUpdateParams.d.ts +13 -14
- package/dist/model/wTVideoUpdateParams.js +32 -37
- package/dist/model/wTVideoUpdateParams.js.map +1 -1
- package/dist/model/wTVideoUploadProvision.d.ts +14 -0
- package/dist/model/wTVideoUploadProvision.js +33 -0
- package/dist/model/wTVideoUploadProvision.js.map +1 -0
- package/dist/model/wTVideoUploadProvisionParams.d.ts +12 -0
- package/dist/model/wTVideoUploadProvisionParams.js +28 -0
- package/dist/model/wTVideoUploadProvisionParams.js.map +1 -0
- package/dist/model/wTVideoUploadProvisionProvider.d.ts +13 -0
- package/dist/model/wTVideoUploadProvisionProvider.js +12 -0
- package/dist/model/wTVideoUploadProvisionProvider.js.map +1 -0
- package/dist/model/wTVirtualBusinessCardCreateParams.d.ts +22 -22
- package/dist/model/wTVirtualBusinessCardCreateParams.js +77 -77
- package/dist/model/wTVirtualBusinessCardUpdateParams.d.ts +22 -22
- package/dist/model/wTVirtualBusinessCardUpdateParams.js +77 -77
- package/dist/model/wTWalletConfigurationSaveWalletRecord.d.ts +86 -86
- package/dist/model/wTWalletConfigurationSaveWalletRecord.js +387 -387
- package/dist/model/wTWalletConfigurationSaveWalletRecordPassBrandKit.d.ts +19 -19
- package/dist/model/wTWalletConfigurationSaveWalletRecordPassBrandKit.js +42 -42
- package/dist/model/wTWalletConfigurationSaveWalletRecordSmsOptInSourceID.d.ts +13 -13
- package/dist/model/wTWalletConfigurationSaveWalletRecordSmsOptInSourceID.js +11 -11
- package/dist/model/wTWalletItemRedemption.d.ts +12 -12
- package/dist/model/wTWalletItemRedemption.js +27 -27
- package/dist/model/wTWalletObjectPrefixCounts.d.ts +12 -12
- package/dist/model/wTWalletObjectPrefixCounts.js +27 -27
- package/dist/model/wTWalletObjectPrefixCounts.js.map +1 -1
- package/dist/model/wTWalletPageView.d.ts +49 -49
- package/dist/model/wTWalletPageView.js +207 -207
- package/dist/model/wTWalletPageViewCount.d.ts +13 -13
- package/dist/model/wTWalletPageViewCount.js +32 -32
- package/dist/model/wTWalletPageViewCount.js.map +1 -1
- package/dist/model/wTWalletPageViewGeoPoint.d.ts +15 -15
- package/dist/model/wTWalletPageViewGeoPoint.js +22 -22
- package/dist/model/wTWhatsAppInboundWebhook.d.ts +23 -23
- package/dist/model/wTWhatsAppInboundWebhook.js +82 -82
- package/dist/model/wTWhatsAppStatusCallback.d.ts +20 -20
- package/dist/model/wTWhatsAppStatusCallback.js +67 -67
- package/dist/model/walletConfiguration.d.ts +91 -91
- package/dist/model/walletConfiguration.js +412 -412
- package/dist/model/walletPageView.d.ts +49 -49
- package/dist/model/walletPageView.js +207 -207
- package/dist/model/webpage.d.ts +19 -19
- package/dist/model/webpage.js +62 -62
- package/package.json +1 -1
- package/.github/workflows/ci.yml +0 -163
- package/.openapi-generator/FILES +0 -460
- package/.openapi-generator/VERSION +0 -1
- package/.openapi-generator-ignore +0 -27
- package/api/aPIKeysApi.ts +0 -448
- package/api/amenitiesApi.ts +0 -447
- package/api/analyticsApi.ts +0 -7516
- package/api/apis.ts +0 -118
- package/api/appToPersonA2PRegistrationApi.ts +0 -365
- package/api/appleWalletSubscribersApi.ts +0 -235
- package/api/authenticationApi.ts +0 -368
- package/api/billingPaymentsApi.ts +0 -1075
- package/api/clubMembersApi.ts +0 -797
- package/api/countriesApi.ts +0 -155
- package/api/customerApi.ts +0 -737
- package/api/dashboardSummariesApi.ts +0 -1566
- package/api/defaultApi.ts +0 -1571
- package/api/diningApi.ts +0 -447
- package/api/dynamicVouchersApi.ts +0 -742
- package/api/emailSubscribersApi.ts +0 -457
- package/api/employeesApi.ts +0 -3064
- package/api/galleryApi.ts +0 -447
- package/api/gamingApi.ts +0 -447
- package/api/industriesApi.ts +0 -280
- package/api/infoGenesisReportsApi.ts +0 -2004
- package/api/interactionsApi.ts +0 -1475
- package/api/loungeApi.ts +0 -447
- package/api/membershipTiersApi.ts +0 -728
- package/api/merchantApi.ts +0 -2012
- package/api/merchantCreditsApi.ts +0 -797
- package/api/newsApi.ts +0 -447
- package/api/openAIApi.ts +0 -1439
- package/api/paymentDesignsApi.ts +0 -519
- package/api/performancesApi.ts +0 -1070
- package/api/pointOfSaleConfigurationApi.ts +0 -447
- package/api/prizesApi.ts +0 -589
- package/api/productsApi.ts +0 -447
- package/api/promotionCodesApi.ts +0 -447
- package/api/qRCodeDesignsApi.ts +0 -520
- package/api/quickLinksApi.ts +0 -517
- package/api/quickLinksSectionApi.ts +0 -447
- package/api/roomRatesApi.ts +0 -447
- package/api/sMSOperationsApi.ts +0 -2913
- package/api/sMSSubscribersApi.ts +0 -457
- package/api/servicesApi.ts +0 -447
- package/api/shopifyTerminalApi.ts +0 -309
- package/api/shortLinksApi.ts +0 -586
- package/api/staticVoucherCampaignsApi.ts +0 -1545
- package/api/staticVouchersApi.ts +0 -535
- package/api/systemApi.ts +0 -665
- package/api/ticketsApi.ts +0 -451
- package/api/videosApi.ts +0 -447
- package/api/virtualBusinessCardApi.ts +0 -586
- package/api/walletConfigurationApi.ts +0 -302
- package/api/walletMobileTerminalApi.ts +0 -310
- package/api/walletTransactionLedgerApi.ts +0 -203
- package/api/walletWebTerminalApi.ts +0 -309
- package/api/wixTerminalApi.ts +0 -309
- package/api/wooCommerceTerminalApi.ts +0 -309
- package/api.ts +0 -3
- package/dist/api/analyticsApi.d.ts +0 -707
- package/dist/api/analyticsApi.js +0 -6182
- package/dist/api/analyticsApi.js.map +0 -1
- package/dist/api/dashboardSummariesApi.js.map +0 -1
- package/dist/api/defaultApi.d.ts +0 -253
- package/dist/api/defaultApi.js +0 -1414
- package/dist/api/defaultApi.js.map +0 -1
- package/dist/api/sMSOperationsApi.d.ts +0 -345
- package/dist/api/sMSOperationsApi.js +0 -2474
- package/dist/api/sMSOperationsApi.js.map +0 -1
- package/dist/examples/advertisementcredits.example.d.ts +0 -1
- package/dist/examples/advertisementcredits.example.js +0 -87
- package/dist/examples/advertisementcredits.example.js.map +0 -1
- package/dist/examples/clubmembers.example.d.ts +0 -1
- package/dist/examples/clubmembers.example.js +0 -96
- package/dist/examples/clubmembers.example.js.map +0 -1
- package/dist/examples/constants.d.ts +0 -6
- package/dist/examples/constants.js +0 -10
- package/dist/examples/constants.js.map +0 -1
- package/dist/examples/dynamicvouchers.example.d.ts +0 -1
- package/dist/examples/dynamicvouchers.example.js +0 -114
- package/dist/examples/dynamicvouchers.example.js.map +0 -1
- package/dist/examples/linkbook.example.d.ts +0 -1
- package/dist/examples/linkbook.example.js +0 -76
- package/dist/examples/linkbook.example.js.map +0 -1
- package/dist/examples/membershiptiers.example.d.ts +0 -1
- package/dist/examples/membershiptiers.example.js +0 -90
- package/dist/examples/membershiptiers.example.js.map +0 -1
- package/dist/examples/merchantcredits.example.d.ts +0 -1
- package/dist/examples/merchantcredits.example.js +0 -93
- package/dist/examples/merchantcredits.example.js.map +0 -1
- package/dist/examples/merchanturls.example.d.ts +0 -1
- package/dist/examples/merchanturls.example.js +0 -77
- package/dist/examples/merchanturls.example.js.map +0 -1
- package/dist/examples/news.example.d.ts +0 -1
- package/dist/examples/news.example.js +0 -76
- package/dist/examples/news.example.js.map +0 -1
- package/dist/examples/paymentdesigns.example.d.ts +0 -1
- package/dist/examples/paymentdesigns.example.js +0 -84
- package/dist/examples/paymentdesigns.example.js.map +0 -1
- package/dist/examples/performances.example.d.ts +0 -1
- package/dist/examples/performances.example.js +0 -79
- package/dist/examples/performances.example.js.map +0 -1
- package/dist/examples/promocodes.example.d.ts +0 -1
- package/dist/examples/promocodes.example.js +0 -78
- package/dist/examples/promocodes.example.js.map +0 -1
- package/dist/examples/sms.example.d.ts +0 -1
- package/dist/examples/sms.example.js +0 -268
- package/dist/examples/sms.example.js.map +0 -1
- package/dist/examples/staticvouchercampaigns.example.d.ts +0 -1
- package/dist/examples/staticvouchercampaigns.example.js +0 -170
- package/dist/examples/staticvouchercampaigns.example.js.map +0 -1
- package/dist/examples/staticvouchers.example.d.ts +0 -1
- package/dist/examples/staticvouchers.example.js +0 -82
- package/dist/examples/staticvouchers.example.js.map +0 -1
- package/examples/advertisementcredits.example.ts +0 -71
- package/examples/clubmembers.example.ts +0 -87
- package/examples/constants.ts +0 -6
- package/examples/dynamicvouchers.example.ts +0 -107
- package/examples/linkbook.example.ts +0 -58
- package/examples/membershiptiers.example.ts +0 -78
- package/examples/merchantcredits.example.ts +0 -85
- package/examples/merchanturls.example.ts +0 -63
- package/examples/news.example.ts +0 -59
- package/examples/package-lock.json +0 -2108
- package/examples/package.json +0 -18
- package/examples/paymentdesigns.example.ts +0 -68
- package/examples/performances.example.ts +0 -63
- package/examples/promocodes.example.ts +0 -60
- package/examples/sms.example.ts +0 -305
- package/examples/staticvouchercampaigns.example.ts +0 -192
- package/examples/staticvouchers.example.ts +0 -67
- package/git_push.sh +0 -57
- package/model/a2PApplicationSubmission.ts +0 -249
- package/model/advertisementCredit.ts +0 -105
- package/model/advertisementCreditBroadcast.ts +0 -158
- package/model/advertisementCreditScan.ts +0 -167
- package/model/amenity.ts +0 -92
- package/model/amenityId.ts +0 -26
- package/model/announcement.ts +0 -67
- package/model/applicableTerminals.ts +0 -26
- package/model/assistant.ts +0 -116
- package/model/authError.ts +0 -55
- package/model/availablePhoneNumbersRequest.ts +0 -43
- package/model/browserDetails.ts +0 -55
- package/model/businessClassification.ts +0 -20
- package/model/businessIndustry.ts +0 -49
- package/model/businessRegionsOfOperation.ts +0 -22
- package/model/businessRegistrationIdentifier.ts +0 -26
- package/model/businessStockExchanges.ts +0 -43
- package/model/businessType.ts +0 -22
- package/model/chatCompletionAudio.ts +0 -64
- package/model/chatCompletionMessage.ts +0 -83
- package/model/chatCompletionMessageAudio.ts +0 -65
- package/model/chatCompletionMessageFunctionCall.ts +0 -43
- package/model/chatCompletionMessageToolCall.ts +0 -58
- package/model/chatCompletionMessageToolCallFunction.ts +0 -46
- package/model/claimTicketRequest.ts +0 -31
- package/model/clickFunnelAmount.ts +0 -37
- package/model/clickFunnelContact.ts +0 -284
- package/model/clickFunnelContactProfile.ts +0 -235
- package/model/clickFunnelEvent.ts +0 -38
- package/model/clickFunnelOriginalAmount.ts +0 -37
- package/model/clickFunnelProduct.ts +0 -194
- package/model/clickFunnelPurchase.ts +0 -177
- package/model/clickFunnelRegistration.ts +0 -38
- package/model/countClaimedComps200Response.ts +0 -37
- package/model/createFile200Response.ts +0 -43
- package/model/createRunOnThreadRequest.ts +0 -37
- package/model/createStaticVoucherCampaign.ts +0 -104
- package/model/createStaticVoucherCampaignWithVoucherWithCSV.ts +0 -104
- package/model/dashboardWidget.ts +0 -121
- package/model/dining.ts +0 -92
- package/model/document.ts +0 -100
- package/model/duplicateRowFound.ts +0 -55
- package/model/dynamicVoucher.ts +0 -227
- package/model/dynamicVoucherBroadcast.ts +0 -158
- package/model/dynamicVoucherBroadcastListType.ts +0 -26
- package/model/dynamicVoucherTemporalDecreaseFrequencyType.ts +0 -26
- package/model/emailSubscriber.ts +0 -74
- package/model/employee.ts +0 -212
- package/model/employeeAPIKey.ts +0 -83
- package/model/employeeActivityLog.ts +0 -67
- package/model/employeeAlert.ts +0 -85
- package/model/employeeScheduleStartDay.ts +0 -26
- package/model/employeeScheduleStartHour.ts +0 -26
- package/model/employeeScheduleStartMeridiem.ts +0 -26
- package/model/employeeScheduleStartMinute.ts +0 -26
- package/model/entityTooLarge.ts +0 -55
- package/model/exportDataFile.ts +0 -85
- package/model/falsumError.ts +0 -40
- package/model/falsumField.ts +0 -55
- package/model/feature.ts +0 -79
- package/model/fetchAdvertisementCreditScansFromListRequest.ts +0 -31
- package/model/fetchAllCountries200ResponseInner.ts +0 -49
- package/model/fetchAllLedgerTransactions200Response.ts +0 -44
- package/model/fetchAllStaticVouchersAssociatedWithCustomerWithVoucherID200ResponseInner.ts +0 -105
- package/model/fetchAllStaticVouchersAssociatedWithCustomerWithVoucherID200ResponseInnerValueType.ts +0 -26
- package/model/fetchCustomerTicketsWithTokenRequest.ts +0 -37
- package/model/fetchDomainsByIndustry200Response.ts +0 -67
- package/model/fetchImportedListRecipientsByPage200Response.ts +0 -44
- package/model/fetchInboundSMSByPage200Response.ts +0 -44
- package/model/fetchIndustry200Response.ts +0 -56
- package/model/fetchMembersCount200Response.ts +0 -31
- package/model/fetchOptInListSubscribersByPage200Response.ts +0 -44
- package/model/fetchOutboundSMSByPage200Response.ts +0 -44
- package/model/fetchPerformanceTicketsPage200Response.ts +0 -38
- package/model/fetchStaticVouchersPage200Response.ts +0 -38
- package/model/forbiddenRequest.ts +0 -55
- package/model/foreignKeyDoesNotExist.ts +0 -55
- package/model/gaming.ts +0 -92
- package/model/helpDeskRequest.ts +0 -86
- package/model/imageGrid.ts +0 -86
- package/model/importTicketsRequest.ts +0 -32
- package/model/importedList.ts +0 -74
- package/model/importedListRecipient.ts +0 -74
- package/model/inboundSMS.ts +0 -242
- package/model/internalServerError500.ts +0 -55
- package/model/jobPosition.ts +0 -23
- package/model/ledgerEntry.ts +0 -179
- package/model/ledgerEntryParentObjectID.ts +0 -26
- package/model/ledgerEntryTransactionType.ts +0 -26
- package/model/linkBook.ts +0 -87
- package/model/linkBookSection.ts +0 -68
- package/model/loginStatus200Response.ts +0 -50
- package/model/loginStatus200ResponseAnyOf.ts +0 -37
- package/model/lounge.ts +0 -92
- package/model/mSAnalyticsMemberCountPartitionedByDate.ts +0 -43
- package/model/mSAnalyticsMemberPointsRedeemedPartitionedByDate.ts +0 -43
- package/model/mSAnalyticsMemberPointsRefundedPartitionedByDate.ts +0 -43
- package/model/mSAnalyticsMembershipTierAmountRedeemedPartitionedByDate.ts +0 -43
- package/model/mSAnalyticsMembershipTierAmountRefundedPartitionedByDate.ts +0 -43
- package/model/mSMemberHistory.ts +0 -127
- package/model/mSMemberHistoryPagination.ts +0 -52
- package/model/mSMemberRedemption.ts +0 -105
- package/model/mSMemberRedemptionPagination.ts +0 -52
- package/model/mSMemberRedemptionRegisterID.ts +0 -29
- package/model/mSMemberRedemptionTransactionType.ts +0 -29
- package/model/mSMembershipTierHistory.ts +0 -106
- package/model/mSMembershipTierHistoryPagination.ts +0 -52
- package/model/mSMembershipTierRedemption.ts +0 -117
- package/model/mSMembershipTierRedemptionPagination.ts +0 -52
- package/model/mSMerchantCreditHistory.ts +0 -88
- package/model/mSMerchantCreditHistoryPagination.ts +0 -52
- package/model/mSMerchantCreditRedemption.ts +0 -105
- package/model/mSMerchantCreditRedemptionPagination.ts +0 -52
- package/model/mediaFile.ts +0 -100
- package/model/member.ts +0 -133
- package/model/memberSearch.ts +0 -82
- package/model/memberSearchSearchKey.ts +0 -29
- package/model/memberSearchSortKey.ts +0 -29
- package/model/merchant.ts +0 -187
- package/model/merchantCreditSearch.ts +0 -61
- package/model/merchantNotInitialized.ts +0 -55
- package/model/merchantURL.ts +0 -68
- package/model/message.ts +0 -74
- package/model/models.ts +0 -1421
- package/model/moduleError.ts +0 -157
- package/model/newsArticle.ts +0 -92
- package/model/oAIAssistantUpdateParams.ts +0 -79
- package/model/oAIAssistantUpdateParamsCreateParams.ts +0 -79
- package/model/optInList.ts +0 -134
- package/model/optInListSource.ts +0 -74
- package/model/optInListSubscriber.ts +0 -118
- package/model/optInListSubscriberOptInSourceID.ts +0 -26
- package/model/outboundSMS.ts +0 -160
- package/model/outboundSMSPaymentObjectBroadcastID.ts +0 -26
- package/model/outboundSMSStatus.ts +0 -26
- package/model/paginatedWTMembers.ts +0 -52
- package/model/paginatedWTMerchantCredits.ts +0 -52
- package/model/paginationRequestWithIDAndWithoutSortOptions.ts +0 -49
- package/model/paginationRequestWithSortOptions.ts +0 -73
- package/model/paginationRequestWithSortOptionsSortOrder.ts +0 -29
- package/model/paymentDesign.ts +0 -141
- package/model/performance.ts +0 -134
- package/model/phoneNumber.ts +0 -158
- package/model/phoneNumberCapabilities.ts +0 -49
- package/model/pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherIsActive.ts +0 -107
- package/model/pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherSourceID.ts +0 -101
- package/model/pickMSEmployeeAPIKeyCreateParamsExcludeKeyofMSEmployeeAPIKeyCreateParamsEmployeeID.ts +0 -40
- package/model/pickMSEmployeeAPIKeyUpdateParamsExcludeKeyofMSEmployeeAPIKeyUpdateParamsId.ts +0 -40
- package/model/pickMSMemberCreationParamsExcludeKeyofMSMemberCreationParamsMemberIdentifier.ts +0 -82
- package/model/pickMSMemberExcludeKeyofMSMemberMemberIdentifier.ts +0 -121
- package/model/pickMSMerchantCreditCreationParamsExcludeKeyofMSMerchantCreditCreationParamsMemberIdentifier.ts +0 -43
- package/model/pickMSMerchantCreditExcludeKeyofMSMerchantCreditMemberIdentifier.ts +0 -82
- package/model/pickPaginationRequestWithSortOptionsExcludeKeyofPaginationRequestWithSortOptionsSortKey.ts +0 -62
- package/model/pickPaginationRequestWithSortOptionsExcludeKeyofPaginationRequestWithSortOptionsSortKeySortOrder.ts +0 -29
- package/model/pickPaginationRequestWithoutSortOptionsExcludeKeyofPaginationRequestWithoutSortOptionsIsArchiveIncluded.ts +0 -46
- package/model/pickSSImportedListRecipientFromMembershipTierImportExcludeKeyofSSImportedListRecipientFromMembershipTierImportEmployeeIDOrTierID.ts +0 -40
- package/model/pickSSImportedListUpdateParamsExcludeKeyofSSImportedListUpdateParamsId.ts +0 -52
- package/model/pickSSMobileNumberUpdateParamsExcludeKeyofSSMobileNumberUpdateParamsId.ts +0 -100
- package/model/pickSSOptInListCreateParamsExcludeKeyofSSOptInListCreateParamsEmployeeIDOrOptInConfirmedMediaURLsOrOptOutConfirmedMediaURLs.ts +0 -94
- package/model/pickSSOptInListMemberUpdateParamsExcludeKeyofSSOptInListMemberUpdateParamsMerchantCreatedAtOrMaxSMSCount.ts +0 -77
- package/model/pickSSOptInListMemberUpdateParamsExcludeKeyofSSOptInListMemberUpdateParamsMerchantCreatedAtOrMaxSMSCountOptInSourceID.ts +0 -26
- package/model/pickSSOptInListUpdateParamsExcludeKeyofSSOptInListUpdateParamsId.ts +0 -112
- package/model/pickSSOptInSourceUpdateParamsExcludeKeyofSSOptInSourceUpdateParamsId.ts +0 -46
- package/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhone.ts +0 -156
- package/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhonePaymentObjectBroadcastID.ts +0 -26
- package/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhoneStatus.ts +0 -26
- package/model/pickVSAdvertisementCreditCreateParamsExcludeKeyofVSAdvertisementCreditCreateParamsEmployeeID.ts +0 -59
- package/model/pickVSAdvertisementCreditScanExcludeKeyofVSAdvertisementCreditScanRedeemedAtOrRefundedAt.ts +0 -133
- package/model/pickVSAdvertisementCreditUpdateParamsExcludeKeyofVSAdvertisementCreditUpdateParamsId.ts +0 -59
- package/model/pickVSCampaignUpdateParamsExcludeKeyofVSCampaignUpdateParamsStartDateOrExpirationDate.ts +0 -101
- package/model/pickVSCampaignUpdateParamsExcludeKeyofVSCampaignUpdateParamsStartDateOrExpirationDateValueType.ts +0 -26
- package/model/pickVSDynamicVoucherExcludeKeyofVSDynamicVoucherTemporalDecreaseFrequencyType.ts +0 -142
- package/model/pickVSPaymentDesignCreateParamsExcludeKeyofVSPaymentDesignCreateParamsEmployeeID.ts +0 -107
- package/model/pickVSPaymentDesignUpdateParamsExcludeKeyofVSPaymentDesignUpdateParamsId.ts +0 -107
- package/model/pickVSPaymentDesignUpdateParamsExcludeKeyofVSPaymentDesignUpdateParamsIdBorderStyleType.ts +0 -26
- package/model/pickVSStaticVoucherExcludeKeyofVSStaticVoucherRedeemedAtOrRefundedAtOrLastViewedAt.ts +0 -163
- package/model/pickVSStaticVoucherExcludeKeyofVSStaticVoucherRedeemedAtOrRefundedAtOrLastViewedAtRegisterID.ts +0 -29
- package/model/pickVSStaticVoucherExcludeKeyofVSStaticVoucherRedeemedAtOrRefundedAtOrLastViewedAtTransactionType.ts +0 -29
- package/model/pickWTEmailSubscriberUpdateParamsExcludeKeyofWTEmailSubscriberUpdateParamsId.ts +0 -46
- package/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmail.ts +0 -128
- package/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmailScheduleStartDay.ts +0 -26
- package/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmailScheduleStartHour.ts +0 -26
- package/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmailScheduleStartMeridiem.ts +0 -26
- package/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmailScheduleStartMinute.ts +0 -26
- package/model/pickWTMemberMemberIDOrFirstNameOrLastNameOrMembershipTierIDOrPointsAccruedOrMobileNumberOrEmailOrBirthday.ts +0 -91
- package/model/pickWTMerchantCreditMemberIDOrCreditAmountOrMobileNumber.ts +0 -52
- package/model/pickWTMerchantURLUpdateExcludeKeyofWTMerchantURLUpdateUrlID.ts +0 -40
- package/model/pickWTNewsArticleUpdateParamsExcludeKeyofWTNewsArticleUpdateParamsId.ts +0 -64
- package/model/pickWTPaymentObjectBroadcastExcludeKeyofWTPaymentObjectBroadcastListTypeOrListID.ts +0 -141
- package/model/pickWTPaymentObjectBroadcastExcludeKeyofWTPaymentObjectBroadcastListTypeOrListIDBroadcastStatus.ts +0 -26
- package/model/pickWTPaymentObjectBroadcastExcludeKeyofWTPaymentObjectBroadcastListTypeOrListIDPaymentObjectPrefix.ts +0 -26
- package/model/pickWTSmsSubscriberUpdateParamsExcludeKeyofWTSmsSubscriberUpdateParamsId.ts +0 -34
- package/model/pickWTStaticVoucherCampaignCreateParamsExcludeKeyofWTStaticVoucherCampaignCreateParamsStartDateTimeOrExpirationDateTime.ts +0 -107
- package/model/pickWTStaticVoucherCreateParamsExcludeKeyofWTStaticVoucherCreateParamsCampaignID.ts +0 -46
- package/model/plan.ts +0 -61
- package/model/portalPage.ts +0 -88
- package/model/presignedPost.ts +0 -44
- package/model/presignedPostFields.ts +0 -43
- package/model/product.ts +0 -73
- package/model/profileStatuses.ts +0 -21
- package/model/promoCode.ts +0 -104
- package/model/qRCodeDesign.ts +0 -80
- package/model/reachPerformanceStats.ts +0 -124
- package/model/request.ts +0 -349
- package/model/response.ts +0 -67
- package/model/role.ts +0 -115
- package/model/roleAuditLog.ts +0 -97
- package/model/roomRate.ts +0 -92
- package/model/sSImportedListRecipientCreateParams.ts +0 -37
- package/model/sSOptInSource.ts +0 -73
- package/model/sSOutboundStatuses.ts +0 -26
- package/model/saveMerchantCreditPaymentDesignRequest.ts +0 -31
- package/model/saveTicketSettingsRequest.ts +0 -49
- package/model/service.ts +0 -92
- package/model/setDefaultPaymentMethodRequest.ts +0 -31
- package/model/simpleSMSBroadcast.ts +0 -151
- package/model/smsSubscriber.ts +0 -62
- package/model/sortDirection.ts +0 -18
- package/model/staticVoucher.ts +0 -221
- package/model/staticVoucherCampaign.ts +0 -177
- package/model/staticVoucherCampaignBroadcast.ts +0 -145
- package/model/staticVoucherCampaignBroadcastBroadcastStatus.ts +0 -26
- package/model/staticVoucherCampaignBroadcastPaymentObjectPrefix.ts +0 -26
- package/model/staticVoucherCampaignUpdate.ts +0 -80
- package/model/staticVoucherCampaignValueType.ts +0 -26
- package/model/staticVoucherId.ts +0 -26
- package/model/status.ts +0 -26
- package/model/subscriptionFeature.ts +0 -79
- package/model/subscriptionPlan.ts +0 -67
- package/model/subscriptionProduct.ts +0 -97
- package/model/tcpa.ts +0 -68
- package/model/thread.ts +0 -62
- package/model/ticket.ts +0 -149
- package/model/ticketSortKeys.ts +0 -22
- package/model/trustBundleStatuses.ts +0 -21
- package/model/updateEmailNotificationPreferenceRequest.ts +0 -31
- package/model/updateStaticVoucherCampaignWithVoucher.ts +0 -104
- package/model/vSCampaignGeneratedMessage.ts +0 -43
- package/model/vSCampaignGeneratedMessagePagination.ts +0 -52
- package/model/vSDynamicVoucherStatus.ts +0 -26
- package/model/vectorStore.ts +0 -62
- package/model/video.ts +0 -86
- package/model/virtualBusinessCard.ts +0 -134
- package/model/wTA2PApplicationUpdateParams.ts +0 -177
- package/model/wTAdvertisementCredit.ts +0 -105
- package/model/wTAdvertisementCreditCreateParams.ts +0 -56
- package/model/wTAdvertisementCreditScan.ts +0 -167
- package/model/wTAdvertisementCreditUpdateParams.ts +0 -56
- package/model/wTAmenityCreateParams.ts +0 -61
- package/model/wTAmenityUpdateParams.ts +0 -61
- package/model/wTAndroidKeystoreResponse.ts +0 -37
- package/model/wTAuthenticationCheckSessionTokenStatusResponse.ts +0 -36
- package/model/wTAuthenticationForgotPassword.ts +0 -31
- package/model/wTAuthenticationLoginRequest.ts +0 -37
- package/model/wTAuthenticationLoginResponse.ts +0 -121
- package/model/wTAuthenticationRegister.ts +0 -157
- package/model/wTAuthenticationRequestResetPassword.ts +0 -31
- package/model/wTAuthenticationResetPassword.ts +0 -43
- package/model/wTAuthenticationSSOLoginForDiscourse.ts +0 -49
- package/model/wTBillingChangePlan.ts +0 -31
- package/model/wTBillingSavePaymentMethod.ts +0 -31
- package/model/wTBillingVerifyPaymentMethodResponse.ts +0 -38
- package/model/wTCountResult.ts +0 -31
- package/model/wTCustomerSearchByMemberID.ts +0 -31
- package/model/wTCustomerSearchByPhoneNumber.ts +0 -31
- package/model/wTDiningCreateParams.ts +0 -61
- package/model/wTDiningUpdateParams.ts +0 -61
- package/model/wTDynamicVoucher.ts +0 -227
- package/model/wTDynamicVoucherCreateParams.ts +0 -98
- package/model/wTDynamicVoucherRedemption.ts +0 -161
- package/model/wTDynamicVoucherRedemptionTransactionType.ts +0 -29
- package/model/wTDynamicVoucherSummary.ts +0 -170
- package/model/wTDynamicVoucherSummaryStatus.ts +0 -26
- package/model/wTDynamicVoucherUpdateParams.ts +0 -98
- package/model/wTEmailSubscriberCreateParams.ts +0 -43
- package/model/wTEmailSubscriberCreateParamsWalletUI.ts +0 -49
- package/model/wTEmailSubscriberUpdateParams.ts +0 -43
- package/model/wTEmployee.ts +0 -212
- package/model/wTEmployeeAPIKey.ts +0 -83
- package/model/wTEmployeeAPIKeyCreateParams.ts +0 -37
- package/model/wTEmployeeAPIKeyUpdateParams.ts +0 -37
- package/model/wTEmployeeCreate.ts +0 -131
- package/model/wTEmployeeCreateDocument.ts +0 -43
- package/model/wTEmployeeCreateMediaFile.ts +0 -43
- package/model/wTEmployeeFileCreate.ts +0 -37
- package/model/wTEmployeeImportRecords.ts +0 -37
- package/model/wTEmployeeNotification.ts +0 -50
- package/model/wTEmployeeNotificationType.ts +0 -26
- package/model/wTEmployeePeerRoles.ts +0 -31
- package/model/wTEmployeeS3FilePresign.ts +0 -44
- package/model/wTEmployeeS3FilePresignContext.ts +0 -26
- package/model/wTEmployeeScheduleSMSCampaignBroadcast.ts +0 -67
- package/model/wTEmployeeScheduleSimpleSMS.ts +0 -62
- package/model/wTEmployeeScheduleSimpleSMSListType.ts +0 -26
- package/model/wTEmployeeScheduleSimpleSMSToRecipient.ts +0 -55
- package/model/wTEmployeeSendHelpDeskResponse.ts +0 -43
- package/model/wTEmployeeUpdate.ts +0 -125
- package/model/wTEmployeeUpdateRecords.ts +0 -37
- package/model/wTFetchWalletPaymentObjectsWithToken.ts +0 -55
- package/model/wTGamingCreateParams.ts +0 -61
- package/model/wTGamingUpdateParams.ts +0 -61
- package/model/wTImageGridCreateParams.ts +0 -55
- package/model/wTImageGridUpdateParams.ts +0 -55
- package/model/wTImportedList.ts +0 -74
- package/model/wTImportedListRecipientFromMembershipTierImport.ts +0 -44
- package/model/wTImportedListRecipientFromMembershipTierImportTierID.ts +0 -26
- package/model/wTInfoGenesisLookupRequestErrors.ts +0 -49
- package/model/wTInfoGenesisRecordFilterParameters.ts +0 -43
- package/model/wTInfoGenesisRoutingIDs.ts +0 -31
- package/model/wTInfoGenesisUniquePostingIDs.ts +0 -31
- package/model/wTLocalInstance.ts +0 -107
- package/model/wTLoungeCreateParams.ts +0 -61
- package/model/wTLoungeUpdateParams.ts +0 -61
- package/model/wTMember.ts +0 -133
- package/model/wTMemberCreationParams.ts +0 -88
- package/model/wTMembershipTier.ts +0 -104
- package/model/wTMembershipTierCreationParams.ts +0 -64
- package/model/wTMembershipTierId.ts +0 -29
- package/model/wTMembershipTierUpdateParams.ts +0 -64
- package/model/wTMembershipTierWithMemberCount.ts +0 -113
- package/model/wTMerchantCredit.ts +0 -106
- package/model/wTMerchantCreditCreationParams.ts +0 -49
- package/model/wTMerchantURLCreate.ts +0 -37
- package/model/wTMerchantURLUpdate.ts +0 -37
- package/model/wTMerchantUpdate.ts +0 -79
- package/model/wTMerchantUpdatePOSIntegration.ts +0 -31
- package/model/wTMerchantUpdatePointsOfContact.ts +0 -49
- package/model/wTMessageInstance.ts +0 -26
- package/model/wTNewsArticleCreateParams.ts +0 -61
- package/model/wTNewsArticleUpdateParams.ts +0 -61
- package/model/wTOptInList.ts +0 -134
- package/model/wTOptInListCreationParams.ts +0 -103
- package/model/wTPassBrandKit.ts +0 -61
- package/model/wTPaymentDesign.ts +0 -141
- package/model/wTPaymentDesignCreateParams.ts +0 -104
- package/model/wTPaymentDesignUpdateParams.ts +0 -104
- package/model/wTPerformanceCreateParams.ts +0 -103
- package/model/wTPerformanceUpdateParams.ts +0 -103
- package/model/wTPosMachine.ts +0 -88
- package/model/wTPosMachineCreateParams.ts +0 -58
- package/model/wTPosMachineUpdateParams.ts +0 -58
- package/model/wTProductCreateParams.ts +0 -61
- package/model/wTProductUpdateParams.ts +0 -61
- package/model/wTPromoCodeCreateParams.ts +0 -73
- package/model/wTPromoCodeUpdateParams.ts +0 -73
- package/model/wTQRCodeDesign.ts +0 -80
- package/model/wTQRCodeDesignCreateParams.ts +0 -49
- package/model/wTQRCodeDesignUpdateParams.ts +0 -49
- package/model/wTQuickLink.ts +0 -87
- package/model/wTQuickLinkCreateParams.ts +0 -56
- package/model/wTQuickLinkLinkBookSectionID.ts +0 -26
- package/model/wTQuickLinkSectionCreateParams.ts +0 -37
- package/model/wTQuickLinkSectionUpdateParams.ts +0 -37
- package/model/wTQuickLinkUpdateParams.ts +0 -56
- package/model/wTRole.ts +0 -115
- package/model/wTRoomRateCreateParams.ts +0 -61
- package/model/wTRoomRateUpdateParams.ts +0 -61
- package/model/wTSMSAcquirePhoneNumber.ts +0 -31
- package/model/wTSMSImportOptInListSubscribers.ts +0 -43
- package/model/wTSMSImportedListCreate.ts +0 -43
- package/model/wTSMSOptInListSourceCreate.ts +0 -37
- package/model/wTSMSUpdatePhoneNumberConfig.ts +0 -97
- package/model/wTServiceCreateParams.ts +0 -61
- package/model/wTServiceUpdateParams.ts +0 -61
- package/model/wTSettingsSetPassword.ts +0 -31
- package/model/wTSmsSubscriberCreateParams.ts +0 -31
- package/model/wTSmsSubscriberCreateParamsWalletUI.ts +0 -37
- package/model/wTSmsSubscriberUpdateParams.ts +0 -31
- package/model/wTStaticVoucher.ts +0 -221
- package/model/wTStaticVoucherCampaign.ts +0 -177
- package/model/wTStaticVoucherCampaignPreviewMessagesByPage.ts +0 -55
- package/model/wTStaticVoucherCreateParams.ts +0 -50
- package/model/wTStaticVoucherUpdateParams.ts +0 -43
- package/model/wTSystemApprovePhoneNumber.ts +0 -37
- package/model/wTSystemRoleCreate.ts +0 -37
- package/model/wTTCPAOpt.ts +0 -45
- package/model/wTTCPAOptListID.ts +0 -26
- package/model/wTTCPAOptSourceID.ts +0 -26
- package/model/wTTicket.ts +0 -149
- package/model/wTTicketCreateParams.ts +0 -64
- package/model/wTTicketUpdateParams.ts +0 -58
- package/model/wTTwilioRequestAuthyCode.ts +0 -37
- package/model/wTTwilioVerifyAuthyCode.ts +0 -43
- package/model/wTVideoCreateParams.ts +0 -55
- package/model/wTVideoUpdateParams.ts +0 -55
- package/model/wTVirtualBusinessCardCreateParams.ts +0 -103
- package/model/wTVirtualBusinessCardUpdateParams.ts +0 -103
- package/model/wTWalletConfigurationSaveWalletRecord.ts +0 -477
- package/model/wTWalletConfigurationSaveWalletRecordPassBrandKit.ts +0 -62
- package/model/wTWalletConfigurationSaveWalletRecordSmsOptInSourceID.ts +0 -26
- package/model/wTWalletItemRedemption.ts +0 -43
- package/model/wTWalletObjectPrefixCounts.ts +0 -43
- package/model/wTWalletPageView.ts +0 -263
- package/model/wTWalletPageViewCount.ts +0 -49
- package/model/wTWalletPageViewGeoPoint.ts +0 -37
- package/model/wTWhatsAppInboundWebhook.ts +0 -109
- package/model/wTWhatsAppStatusCallback.ts +0 -91
- package/model/walletConfiguration.ts +0 -510
- package/model/walletPageView.ts +0 -263
- package/model/webpage.ts +0 -85
- package/openapitools.json +0 -7
- package/readme-generator.py +0 -107
- package/scripts/failure.py +0 -67
- package/scripts/slack.py +0 -94
- package/tsconfig.json +0 -25
package/api/employeesApi.ts
DELETED
|
@@ -1,3064 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* wallet-api
|
|
3
|
-
* API
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 2.1.602
|
|
6
|
-
* Contact: development@wallet.inc
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
import localVarRequest from 'request';
|
|
15
|
-
import http from 'http';
|
|
16
|
-
|
|
17
|
-
/* tslint:disable:no-unused-locals */
|
|
18
|
-
import { AdvertisementCreditBroadcast } from '../model/advertisementCreditBroadcast';
|
|
19
|
-
import { AuthError } from '../model/authError';
|
|
20
|
-
import { CreateFile200Response } from '../model/createFile200Response';
|
|
21
|
-
import { Document } from '../model/document';
|
|
22
|
-
import { DynamicVoucher } from '../model/dynamicVoucher';
|
|
23
|
-
import { DynamicVoucherBroadcast } from '../model/dynamicVoucherBroadcast';
|
|
24
|
-
import { Employee } from '../model/employee';
|
|
25
|
-
import { EmployeeActivityLog } from '../model/employeeActivityLog';
|
|
26
|
-
import { EntityTooLarge } from '../model/entityTooLarge';
|
|
27
|
-
import { FalsumError } from '../model/falsumError';
|
|
28
|
-
import { HelpDeskRequest } from '../model/helpDeskRequest';
|
|
29
|
-
import { InternalServerError500 } from '../model/internalServerError500';
|
|
30
|
-
import { MediaFile } from '../model/mediaFile';
|
|
31
|
-
import { Message } from '../model/message';
|
|
32
|
-
import { OptInListSource } from '../model/optInListSource';
|
|
33
|
-
import { OutboundSMS } from '../model/outboundSMS';
|
|
34
|
-
import { PresignedPost } from '../model/presignedPost';
|
|
35
|
-
import { StaticVoucherCampaignBroadcast } from '../model/staticVoucherCampaignBroadcast';
|
|
36
|
-
import { UpdateEmailNotificationPreferenceRequest } from '../model/updateEmailNotificationPreferenceRequest';
|
|
37
|
-
import { WTEmployeeCreate } from '../model/wTEmployeeCreate';
|
|
38
|
-
import { WTEmployeeCreateDocument } from '../model/wTEmployeeCreateDocument';
|
|
39
|
-
import { WTEmployeeCreateMediaFile } from '../model/wTEmployeeCreateMediaFile';
|
|
40
|
-
import { WTEmployeeFileCreate } from '../model/wTEmployeeFileCreate';
|
|
41
|
-
import { WTEmployeeImportRecords } from '../model/wTEmployeeImportRecords';
|
|
42
|
-
import { WTEmployeePeerRoles } from '../model/wTEmployeePeerRoles';
|
|
43
|
-
import { WTEmployeeS3FilePresign } from '../model/wTEmployeeS3FilePresign';
|
|
44
|
-
import { WTEmployeeScheduleSMSCampaignBroadcast } from '../model/wTEmployeeScheduleSMSCampaignBroadcast';
|
|
45
|
-
import { WTEmployeeScheduleSimpleSMS } from '../model/wTEmployeeScheduleSimpleSMS';
|
|
46
|
-
import { WTEmployeeScheduleSimpleSMSToRecipient } from '../model/wTEmployeeScheduleSimpleSMSToRecipient';
|
|
47
|
-
import { WTEmployeeSendHelpDeskResponse } from '../model/wTEmployeeSendHelpDeskResponse';
|
|
48
|
-
import { WTEmployeeUpdate } from '../model/wTEmployeeUpdate';
|
|
49
|
-
import { WTEmployeeUpdateRecords } from '../model/wTEmployeeUpdateRecords';
|
|
50
|
-
import { Webpage } from '../model/webpage';
|
|
51
|
-
|
|
52
|
-
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
|
|
53
|
-
import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models';
|
|
54
|
-
|
|
55
|
-
import { HttpError, RequestFile } from './apis';
|
|
56
|
-
|
|
57
|
-
let defaultBasePath = 'https://api.wall.et';
|
|
58
|
-
|
|
59
|
-
// ===============================================
|
|
60
|
-
// This file is autogenerated - Please do not edit
|
|
61
|
-
// ===============================================
|
|
62
|
-
|
|
63
|
-
export enum EmployeesApiApiKeys {
|
|
64
|
-
api_key,
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export class EmployeesApi {
|
|
68
|
-
protected _basePath = defaultBasePath;
|
|
69
|
-
protected _defaultHeaders : any = {};
|
|
70
|
-
protected _useQuerystring : boolean = false;
|
|
71
|
-
|
|
72
|
-
protected authentications = {
|
|
73
|
-
'default': <Authentication>new VoidAuth(),
|
|
74
|
-
'api_key': new ApiKeyAuth('header', 'access-token'),
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
protected interceptors: Interceptor[] = [];
|
|
78
|
-
|
|
79
|
-
constructor(basePath?: string);
|
|
80
|
-
constructor(basePathOrUsername: string, password?: string, basePath?: string) {
|
|
81
|
-
if (password) {
|
|
82
|
-
if (basePath) {
|
|
83
|
-
this.basePath = basePath;
|
|
84
|
-
}
|
|
85
|
-
} else {
|
|
86
|
-
if (basePathOrUsername) {
|
|
87
|
-
this.basePath = basePathOrUsername
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
set useQuerystring(value: boolean) {
|
|
93
|
-
this._useQuerystring = value;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
set basePath(basePath: string) {
|
|
97
|
-
this._basePath = basePath;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
set defaultHeaders(defaultHeaders: any) {
|
|
101
|
-
this._defaultHeaders = defaultHeaders;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
get defaultHeaders() {
|
|
105
|
-
return this._defaultHeaders;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
get basePath() {
|
|
109
|
-
return this._basePath;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
public setDefaultAuthentication(auth: Authentication) {
|
|
113
|
-
this.authentications.default = auth;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
public setApiKey(key: EmployeesApiApiKeys, value: string) {
|
|
117
|
-
(this.authentications as any)[EmployeesApiApiKeys[key]].apiKey = value;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
public addInterceptor(interceptor: Interceptor) {
|
|
121
|
-
this.interceptors.push(interceptor);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
*
|
|
126
|
-
* @summary Add peer to roles
|
|
127
|
-
* @param userID
|
|
128
|
-
* @param wTEmployeePeerRoles
|
|
129
|
-
*/
|
|
130
|
-
public async addPeerToRoles (userID: string, wTEmployeePeerRoles: WTEmployeePeerRoles, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: string; }> {
|
|
131
|
-
const localVarPath = this.basePath + '/v2/employee/roles/peer/{userID}'
|
|
132
|
-
.replace('{' + 'userID' + '}', encodeURIComponent(String(userID)));
|
|
133
|
-
let localVarQueryParameters: any = {};
|
|
134
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
135
|
-
const produces = ['application/json'];
|
|
136
|
-
// give precedence to 'application/json'
|
|
137
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
138
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
139
|
-
} else {
|
|
140
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
141
|
-
}
|
|
142
|
-
let localVarFormParams: any = {};
|
|
143
|
-
|
|
144
|
-
// verify required parameter 'userID' is not null or undefined
|
|
145
|
-
if (userID === null || userID === undefined) {
|
|
146
|
-
throw new Error('Required parameter userID was null or undefined when calling addPeerToRoles.');
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
// verify required parameter 'wTEmployeePeerRoles' is not null or undefined
|
|
150
|
-
if (wTEmployeePeerRoles === null || wTEmployeePeerRoles === undefined) {
|
|
151
|
-
throw new Error('Required parameter wTEmployeePeerRoles was null or undefined when calling addPeerToRoles.');
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
155
|
-
|
|
156
|
-
let localVarUseFormData = false;
|
|
157
|
-
|
|
158
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
159
|
-
method: 'POST',
|
|
160
|
-
qs: localVarQueryParameters,
|
|
161
|
-
headers: localVarHeaderParams,
|
|
162
|
-
uri: localVarPath,
|
|
163
|
-
useQuerystring: this._useQuerystring,
|
|
164
|
-
json: true,
|
|
165
|
-
body: ObjectSerializer.serialize(wTEmployeePeerRoles, "WTEmployeePeerRoles")
|
|
166
|
-
};
|
|
167
|
-
|
|
168
|
-
let authenticationPromise = Promise.resolve();
|
|
169
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
170
|
-
|
|
171
|
-
let interceptorPromise = authenticationPromise;
|
|
172
|
-
for (const interceptor of this.interceptors) {
|
|
173
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
return interceptorPromise.then(() => {
|
|
177
|
-
if (Object.keys(localVarFormParams).length) {
|
|
178
|
-
if (localVarUseFormData) {
|
|
179
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
180
|
-
} else {
|
|
181
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
return new Promise<{ response: http.IncomingMessage; body: string; }>((resolve, reject) => {
|
|
185
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
186
|
-
if (error) {
|
|
187
|
-
reject(error);
|
|
188
|
-
} else {
|
|
189
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
190
|
-
body = ObjectSerializer.deserialize(body, "string");
|
|
191
|
-
resolve({ response: response, body: body });
|
|
192
|
-
} else {
|
|
193
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
});
|
|
197
|
-
});
|
|
198
|
-
});
|
|
199
|
-
}
|
|
200
|
-
/**
|
|
201
|
-
*
|
|
202
|
-
* @summary Create document
|
|
203
|
-
* @param wTEmployeeCreateDocument
|
|
204
|
-
*/
|
|
205
|
-
public async createDocument (wTEmployeeCreateDocument: WTEmployeeCreateDocument, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Document; }> {
|
|
206
|
-
const localVarPath = this.basePath + '/v2/employee/document';
|
|
207
|
-
let localVarQueryParameters: any = {};
|
|
208
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
209
|
-
const produces = ['application/json'];
|
|
210
|
-
// give precedence to 'application/json'
|
|
211
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
212
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
213
|
-
} else {
|
|
214
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
215
|
-
}
|
|
216
|
-
let localVarFormParams: any = {};
|
|
217
|
-
|
|
218
|
-
// verify required parameter 'wTEmployeeCreateDocument' is not null or undefined
|
|
219
|
-
if (wTEmployeeCreateDocument === null || wTEmployeeCreateDocument === undefined) {
|
|
220
|
-
throw new Error('Required parameter wTEmployeeCreateDocument was null or undefined when calling createDocument.');
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
224
|
-
|
|
225
|
-
let localVarUseFormData = false;
|
|
226
|
-
|
|
227
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
228
|
-
method: 'POST',
|
|
229
|
-
qs: localVarQueryParameters,
|
|
230
|
-
headers: localVarHeaderParams,
|
|
231
|
-
uri: localVarPath,
|
|
232
|
-
useQuerystring: this._useQuerystring,
|
|
233
|
-
json: true,
|
|
234
|
-
body: ObjectSerializer.serialize(wTEmployeeCreateDocument, "WTEmployeeCreateDocument")
|
|
235
|
-
};
|
|
236
|
-
|
|
237
|
-
let authenticationPromise = Promise.resolve();
|
|
238
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
239
|
-
|
|
240
|
-
let interceptorPromise = authenticationPromise;
|
|
241
|
-
for (const interceptor of this.interceptors) {
|
|
242
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
return interceptorPromise.then(() => {
|
|
246
|
-
if (Object.keys(localVarFormParams).length) {
|
|
247
|
-
if (localVarUseFormData) {
|
|
248
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
249
|
-
} else {
|
|
250
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
return new Promise<{ response: http.IncomingMessage; body: Document; }>((resolve, reject) => {
|
|
254
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
255
|
-
if (error) {
|
|
256
|
-
reject(error);
|
|
257
|
-
} else {
|
|
258
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
259
|
-
body = ObjectSerializer.deserialize(body, "Document");
|
|
260
|
-
resolve({ response: response, body: body });
|
|
261
|
-
} else {
|
|
262
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
});
|
|
266
|
-
});
|
|
267
|
-
});
|
|
268
|
-
}
|
|
269
|
-
/**
|
|
270
|
-
*
|
|
271
|
-
* @summary Create employee peer
|
|
272
|
-
* @param wTEmployeeCreate
|
|
273
|
-
*/
|
|
274
|
-
public async createEmployeePeer (wTEmployeeCreate: WTEmployeeCreate, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Employee; }> {
|
|
275
|
-
const localVarPath = this.basePath + '/v2/employee/peer';
|
|
276
|
-
let localVarQueryParameters: any = {};
|
|
277
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
278
|
-
const produces = ['application/json'];
|
|
279
|
-
// give precedence to 'application/json'
|
|
280
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
281
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
282
|
-
} else {
|
|
283
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
284
|
-
}
|
|
285
|
-
let localVarFormParams: any = {};
|
|
286
|
-
|
|
287
|
-
// verify required parameter 'wTEmployeeCreate' is not null or undefined
|
|
288
|
-
if (wTEmployeeCreate === null || wTEmployeeCreate === undefined) {
|
|
289
|
-
throw new Error('Required parameter wTEmployeeCreate was null or undefined when calling createEmployeePeer.');
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
293
|
-
|
|
294
|
-
let localVarUseFormData = false;
|
|
295
|
-
|
|
296
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
297
|
-
method: 'POST',
|
|
298
|
-
qs: localVarQueryParameters,
|
|
299
|
-
headers: localVarHeaderParams,
|
|
300
|
-
uri: localVarPath,
|
|
301
|
-
useQuerystring: this._useQuerystring,
|
|
302
|
-
json: true,
|
|
303
|
-
body: ObjectSerializer.serialize(wTEmployeeCreate, "WTEmployeeCreate")
|
|
304
|
-
};
|
|
305
|
-
|
|
306
|
-
let authenticationPromise = Promise.resolve();
|
|
307
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
308
|
-
|
|
309
|
-
let interceptorPromise = authenticationPromise;
|
|
310
|
-
for (const interceptor of this.interceptors) {
|
|
311
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
return interceptorPromise.then(() => {
|
|
315
|
-
if (Object.keys(localVarFormParams).length) {
|
|
316
|
-
if (localVarUseFormData) {
|
|
317
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
318
|
-
} else {
|
|
319
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
return new Promise<{ response: http.IncomingMessage; body: Employee; }>((resolve, reject) => {
|
|
323
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
324
|
-
if (error) {
|
|
325
|
-
reject(error);
|
|
326
|
-
} else {
|
|
327
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
328
|
-
body = ObjectSerializer.deserialize(body, "Employee");
|
|
329
|
-
resolve({ response: response, body: body });
|
|
330
|
-
} else {
|
|
331
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
});
|
|
335
|
-
});
|
|
336
|
-
});
|
|
337
|
-
}
|
|
338
|
-
/**
|
|
339
|
-
*
|
|
340
|
-
* @summary Create file
|
|
341
|
-
* @param wTEmployeeFileCreate
|
|
342
|
-
*/
|
|
343
|
-
public async createFile (wTEmployeeFileCreate: WTEmployeeFileCreate, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: CreateFile200Response; }> {
|
|
344
|
-
const localVarPath = this.basePath + '/v2/employee/file/create';
|
|
345
|
-
let localVarQueryParameters: any = {};
|
|
346
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
347
|
-
const produces = ['application/json'];
|
|
348
|
-
// give precedence to 'application/json'
|
|
349
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
350
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
351
|
-
} else {
|
|
352
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
353
|
-
}
|
|
354
|
-
let localVarFormParams: any = {};
|
|
355
|
-
|
|
356
|
-
// verify required parameter 'wTEmployeeFileCreate' is not null or undefined
|
|
357
|
-
if (wTEmployeeFileCreate === null || wTEmployeeFileCreate === undefined) {
|
|
358
|
-
throw new Error('Required parameter wTEmployeeFileCreate was null or undefined when calling createFile.');
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
362
|
-
|
|
363
|
-
let localVarUseFormData = false;
|
|
364
|
-
|
|
365
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
366
|
-
method: 'POST',
|
|
367
|
-
qs: localVarQueryParameters,
|
|
368
|
-
headers: localVarHeaderParams,
|
|
369
|
-
uri: localVarPath,
|
|
370
|
-
useQuerystring: this._useQuerystring,
|
|
371
|
-
json: true,
|
|
372
|
-
body: ObjectSerializer.serialize(wTEmployeeFileCreate, "WTEmployeeFileCreate")
|
|
373
|
-
};
|
|
374
|
-
|
|
375
|
-
let authenticationPromise = Promise.resolve();
|
|
376
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
377
|
-
|
|
378
|
-
let interceptorPromise = authenticationPromise;
|
|
379
|
-
for (const interceptor of this.interceptors) {
|
|
380
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
return interceptorPromise.then(() => {
|
|
384
|
-
if (Object.keys(localVarFormParams).length) {
|
|
385
|
-
if (localVarUseFormData) {
|
|
386
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
387
|
-
} else {
|
|
388
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
return new Promise<{ response: http.IncomingMessage; body: CreateFile200Response; }>((resolve, reject) => {
|
|
392
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
393
|
-
if (error) {
|
|
394
|
-
reject(error);
|
|
395
|
-
} else {
|
|
396
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
397
|
-
body = ObjectSerializer.deserialize(body, "CreateFile200Response");
|
|
398
|
-
resolve({ response: response, body: body });
|
|
399
|
-
} else {
|
|
400
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
});
|
|
404
|
-
});
|
|
405
|
-
});
|
|
406
|
-
}
|
|
407
|
-
/**
|
|
408
|
-
*
|
|
409
|
-
* @summary Create media file
|
|
410
|
-
* @param wTEmployeeCreateMediaFile
|
|
411
|
-
*/
|
|
412
|
-
public async createMediaFile (wTEmployeeCreateMediaFile: WTEmployeeCreateMediaFile, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: MediaFile; }> {
|
|
413
|
-
const localVarPath = this.basePath + '/v2/employee/mediaFile';
|
|
414
|
-
let localVarQueryParameters: any = {};
|
|
415
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
416
|
-
const produces = ['application/json'];
|
|
417
|
-
// give precedence to 'application/json'
|
|
418
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
419
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
420
|
-
} else {
|
|
421
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
422
|
-
}
|
|
423
|
-
let localVarFormParams: any = {};
|
|
424
|
-
|
|
425
|
-
// verify required parameter 'wTEmployeeCreateMediaFile' is not null or undefined
|
|
426
|
-
if (wTEmployeeCreateMediaFile === null || wTEmployeeCreateMediaFile === undefined) {
|
|
427
|
-
throw new Error('Required parameter wTEmployeeCreateMediaFile was null or undefined when calling createMediaFile.');
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
431
|
-
|
|
432
|
-
let localVarUseFormData = false;
|
|
433
|
-
|
|
434
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
435
|
-
method: 'POST',
|
|
436
|
-
qs: localVarQueryParameters,
|
|
437
|
-
headers: localVarHeaderParams,
|
|
438
|
-
uri: localVarPath,
|
|
439
|
-
useQuerystring: this._useQuerystring,
|
|
440
|
-
json: true,
|
|
441
|
-
body: ObjectSerializer.serialize(wTEmployeeCreateMediaFile, "WTEmployeeCreateMediaFile")
|
|
442
|
-
};
|
|
443
|
-
|
|
444
|
-
let authenticationPromise = Promise.resolve();
|
|
445
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
446
|
-
|
|
447
|
-
let interceptorPromise = authenticationPromise;
|
|
448
|
-
for (const interceptor of this.interceptors) {
|
|
449
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
return interceptorPromise.then(() => {
|
|
453
|
-
if (Object.keys(localVarFormParams).length) {
|
|
454
|
-
if (localVarUseFormData) {
|
|
455
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
456
|
-
} else {
|
|
457
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
return new Promise<{ response: http.IncomingMessage; body: MediaFile; }>((resolve, reject) => {
|
|
461
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
462
|
-
if (error) {
|
|
463
|
-
reject(error);
|
|
464
|
-
} else {
|
|
465
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
466
|
-
body = ObjectSerializer.deserialize(body, "MediaFile");
|
|
467
|
-
resolve({ response: response, body: body });
|
|
468
|
-
} else {
|
|
469
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
});
|
|
473
|
-
});
|
|
474
|
-
});
|
|
475
|
-
}
|
|
476
|
-
/**
|
|
477
|
-
*
|
|
478
|
-
* @summary Delete document
|
|
479
|
-
* @param documentID
|
|
480
|
-
*/
|
|
481
|
-
public async deleteDocument (documentID: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Document; }> {
|
|
482
|
-
const localVarPath = this.basePath + '/v2/employee/document/{documentID}'
|
|
483
|
-
.replace('{' + 'documentID' + '}', encodeURIComponent(String(documentID)));
|
|
484
|
-
let localVarQueryParameters: any = {};
|
|
485
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
486
|
-
const produces = ['application/json'];
|
|
487
|
-
// give precedence to 'application/json'
|
|
488
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
489
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
490
|
-
} else {
|
|
491
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
492
|
-
}
|
|
493
|
-
let localVarFormParams: any = {};
|
|
494
|
-
|
|
495
|
-
// verify required parameter 'documentID' is not null or undefined
|
|
496
|
-
if (documentID === null || documentID === undefined) {
|
|
497
|
-
throw new Error('Required parameter documentID was null or undefined when calling deleteDocument.');
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
501
|
-
|
|
502
|
-
let localVarUseFormData = false;
|
|
503
|
-
|
|
504
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
505
|
-
method: 'DELETE',
|
|
506
|
-
qs: localVarQueryParameters,
|
|
507
|
-
headers: localVarHeaderParams,
|
|
508
|
-
uri: localVarPath,
|
|
509
|
-
useQuerystring: this._useQuerystring,
|
|
510
|
-
json: true,
|
|
511
|
-
};
|
|
512
|
-
|
|
513
|
-
let authenticationPromise = Promise.resolve();
|
|
514
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
515
|
-
|
|
516
|
-
let interceptorPromise = authenticationPromise;
|
|
517
|
-
for (const interceptor of this.interceptors) {
|
|
518
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
return interceptorPromise.then(() => {
|
|
522
|
-
if (Object.keys(localVarFormParams).length) {
|
|
523
|
-
if (localVarUseFormData) {
|
|
524
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
525
|
-
} else {
|
|
526
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
527
|
-
}
|
|
528
|
-
}
|
|
529
|
-
return new Promise<{ response: http.IncomingMessage; body: Document; }>((resolve, reject) => {
|
|
530
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
531
|
-
if (error) {
|
|
532
|
-
reject(error);
|
|
533
|
-
} else {
|
|
534
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
535
|
-
body = ObjectSerializer.deserialize(body, "Document");
|
|
536
|
-
resolve({ response: response, body: body });
|
|
537
|
-
} else {
|
|
538
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
});
|
|
542
|
-
});
|
|
543
|
-
});
|
|
544
|
-
}
|
|
545
|
-
/**
|
|
546
|
-
*
|
|
547
|
-
* @summary Delete media file
|
|
548
|
-
* @param mediaFileID
|
|
549
|
-
*/
|
|
550
|
-
public async deleteMediaFile (mediaFileID: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: MediaFile; }> {
|
|
551
|
-
const localVarPath = this.basePath + '/v2/employee/mediaFile/{mediaFileID}'
|
|
552
|
-
.replace('{' + 'mediaFileID' + '}', encodeURIComponent(String(mediaFileID)));
|
|
553
|
-
let localVarQueryParameters: any = {};
|
|
554
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
555
|
-
const produces = ['application/json'];
|
|
556
|
-
// give precedence to 'application/json'
|
|
557
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
558
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
559
|
-
} else {
|
|
560
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
561
|
-
}
|
|
562
|
-
let localVarFormParams: any = {};
|
|
563
|
-
|
|
564
|
-
// verify required parameter 'mediaFileID' is not null or undefined
|
|
565
|
-
if (mediaFileID === null || mediaFileID === undefined) {
|
|
566
|
-
throw new Error('Required parameter mediaFileID was null or undefined when calling deleteMediaFile.');
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
570
|
-
|
|
571
|
-
let localVarUseFormData = false;
|
|
572
|
-
|
|
573
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
574
|
-
method: 'DELETE',
|
|
575
|
-
qs: localVarQueryParameters,
|
|
576
|
-
headers: localVarHeaderParams,
|
|
577
|
-
uri: localVarPath,
|
|
578
|
-
useQuerystring: this._useQuerystring,
|
|
579
|
-
json: true,
|
|
580
|
-
};
|
|
581
|
-
|
|
582
|
-
let authenticationPromise = Promise.resolve();
|
|
583
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
584
|
-
|
|
585
|
-
let interceptorPromise = authenticationPromise;
|
|
586
|
-
for (const interceptor of this.interceptors) {
|
|
587
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
588
|
-
}
|
|
589
|
-
|
|
590
|
-
return interceptorPromise.then(() => {
|
|
591
|
-
if (Object.keys(localVarFormParams).length) {
|
|
592
|
-
if (localVarUseFormData) {
|
|
593
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
594
|
-
} else {
|
|
595
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
596
|
-
}
|
|
597
|
-
}
|
|
598
|
-
return new Promise<{ response: http.IncomingMessage; body: MediaFile; }>((resolve, reject) => {
|
|
599
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
600
|
-
if (error) {
|
|
601
|
-
reject(error);
|
|
602
|
-
} else {
|
|
603
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
604
|
-
body = ObjectSerializer.deserialize(body, "MediaFile");
|
|
605
|
-
resolve({ response: response, body: body });
|
|
606
|
-
} else {
|
|
607
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
608
|
-
}
|
|
609
|
-
}
|
|
610
|
-
});
|
|
611
|
-
});
|
|
612
|
-
});
|
|
613
|
-
}
|
|
614
|
-
/**
|
|
615
|
-
*
|
|
616
|
-
* @summary Get URL for file download
|
|
617
|
-
* @param fileID
|
|
618
|
-
*/
|
|
619
|
-
public async downloadFile (fileID: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: string; }> {
|
|
620
|
-
const localVarPath = this.basePath + '/v2/employee/file/download/{fileID}'
|
|
621
|
-
.replace('{' + 'fileID' + '}', encodeURIComponent(String(fileID)));
|
|
622
|
-
let localVarQueryParameters: any = {};
|
|
623
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
624
|
-
const produces = ['application/json'];
|
|
625
|
-
// give precedence to 'application/json'
|
|
626
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
627
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
628
|
-
} else {
|
|
629
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
630
|
-
}
|
|
631
|
-
let localVarFormParams: any = {};
|
|
632
|
-
|
|
633
|
-
// verify required parameter 'fileID' is not null or undefined
|
|
634
|
-
if (fileID === null || fileID === undefined) {
|
|
635
|
-
throw new Error('Required parameter fileID was null or undefined when calling downloadFile.');
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
639
|
-
|
|
640
|
-
let localVarUseFormData = false;
|
|
641
|
-
|
|
642
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
643
|
-
method: 'GET',
|
|
644
|
-
qs: localVarQueryParameters,
|
|
645
|
-
headers: localVarHeaderParams,
|
|
646
|
-
uri: localVarPath,
|
|
647
|
-
useQuerystring: this._useQuerystring,
|
|
648
|
-
json: true,
|
|
649
|
-
};
|
|
650
|
-
|
|
651
|
-
let authenticationPromise = Promise.resolve();
|
|
652
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
653
|
-
|
|
654
|
-
let interceptorPromise = authenticationPromise;
|
|
655
|
-
for (const interceptor of this.interceptors) {
|
|
656
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
657
|
-
}
|
|
658
|
-
|
|
659
|
-
return interceptorPromise.then(() => {
|
|
660
|
-
if (Object.keys(localVarFormParams).length) {
|
|
661
|
-
if (localVarUseFormData) {
|
|
662
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
663
|
-
} else {
|
|
664
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
665
|
-
}
|
|
666
|
-
}
|
|
667
|
-
return new Promise<{ response: http.IncomingMessage; body: string; }>((resolve, reject) => {
|
|
668
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
669
|
-
if (error) {
|
|
670
|
-
reject(error);
|
|
671
|
-
} else {
|
|
672
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
673
|
-
body = ObjectSerializer.deserialize(body, "string");
|
|
674
|
-
resolve({ response: response, body: body });
|
|
675
|
-
} else {
|
|
676
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
677
|
-
}
|
|
678
|
-
}
|
|
679
|
-
});
|
|
680
|
-
});
|
|
681
|
-
});
|
|
682
|
-
}
|
|
683
|
-
/**
|
|
684
|
-
*
|
|
685
|
-
* @summary Export club members
|
|
686
|
-
*/
|
|
687
|
-
public async exportClubMembers (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: string; }> {
|
|
688
|
-
const localVarPath = this.basePath + '/v2/employee/export/members';
|
|
689
|
-
let localVarQueryParameters: any = {};
|
|
690
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
691
|
-
const produces = ['application/json'];
|
|
692
|
-
// give precedence to 'application/json'
|
|
693
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
694
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
695
|
-
} else {
|
|
696
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
697
|
-
}
|
|
698
|
-
let localVarFormParams: any = {};
|
|
699
|
-
|
|
700
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
701
|
-
|
|
702
|
-
let localVarUseFormData = false;
|
|
703
|
-
|
|
704
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
705
|
-
method: 'PUT',
|
|
706
|
-
qs: localVarQueryParameters,
|
|
707
|
-
headers: localVarHeaderParams,
|
|
708
|
-
uri: localVarPath,
|
|
709
|
-
useQuerystring: this._useQuerystring,
|
|
710
|
-
json: true,
|
|
711
|
-
};
|
|
712
|
-
|
|
713
|
-
let authenticationPromise = Promise.resolve();
|
|
714
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
715
|
-
|
|
716
|
-
let interceptorPromise = authenticationPromise;
|
|
717
|
-
for (const interceptor of this.interceptors) {
|
|
718
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
719
|
-
}
|
|
720
|
-
|
|
721
|
-
return interceptorPromise.then(() => {
|
|
722
|
-
if (Object.keys(localVarFormParams).length) {
|
|
723
|
-
if (localVarUseFormData) {
|
|
724
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
725
|
-
} else {
|
|
726
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
727
|
-
}
|
|
728
|
-
}
|
|
729
|
-
return new Promise<{ response: http.IncomingMessage; body: string; }>((resolve, reject) => {
|
|
730
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
731
|
-
if (error) {
|
|
732
|
-
reject(error);
|
|
733
|
-
} else {
|
|
734
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
735
|
-
body = ObjectSerializer.deserialize(body, "string");
|
|
736
|
-
resolve({ response: response, body: body });
|
|
737
|
-
} else {
|
|
738
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
739
|
-
}
|
|
740
|
-
}
|
|
741
|
-
});
|
|
742
|
-
});
|
|
743
|
-
});
|
|
744
|
-
}
|
|
745
|
-
/**
|
|
746
|
-
*
|
|
747
|
-
* @summary Export merchant credits
|
|
748
|
-
*/
|
|
749
|
-
public async exportMerchantCredits (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: string; }> {
|
|
750
|
-
const localVarPath = this.basePath + '/v2/employee/export/merchantCredits';
|
|
751
|
-
let localVarQueryParameters: any = {};
|
|
752
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
753
|
-
const produces = ['application/json'];
|
|
754
|
-
// give precedence to 'application/json'
|
|
755
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
756
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
757
|
-
} else {
|
|
758
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
759
|
-
}
|
|
760
|
-
let localVarFormParams: any = {};
|
|
761
|
-
|
|
762
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
763
|
-
|
|
764
|
-
let localVarUseFormData = false;
|
|
765
|
-
|
|
766
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
767
|
-
method: 'PUT',
|
|
768
|
-
qs: localVarQueryParameters,
|
|
769
|
-
headers: localVarHeaderParams,
|
|
770
|
-
uri: localVarPath,
|
|
771
|
-
useQuerystring: this._useQuerystring,
|
|
772
|
-
json: true,
|
|
773
|
-
};
|
|
774
|
-
|
|
775
|
-
let authenticationPromise = Promise.resolve();
|
|
776
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
777
|
-
|
|
778
|
-
let interceptorPromise = authenticationPromise;
|
|
779
|
-
for (const interceptor of this.interceptors) {
|
|
780
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
781
|
-
}
|
|
782
|
-
|
|
783
|
-
return interceptorPromise.then(() => {
|
|
784
|
-
if (Object.keys(localVarFormParams).length) {
|
|
785
|
-
if (localVarUseFormData) {
|
|
786
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
787
|
-
} else {
|
|
788
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
789
|
-
}
|
|
790
|
-
}
|
|
791
|
-
return new Promise<{ response: http.IncomingMessage; body: string; }>((resolve, reject) => {
|
|
792
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
793
|
-
if (error) {
|
|
794
|
-
reject(error);
|
|
795
|
-
} else {
|
|
796
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
797
|
-
body = ObjectSerializer.deserialize(body, "string");
|
|
798
|
-
resolve({ response: response, body: body });
|
|
799
|
-
} else {
|
|
800
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
801
|
-
}
|
|
802
|
-
}
|
|
803
|
-
});
|
|
804
|
-
});
|
|
805
|
-
});
|
|
806
|
-
}
|
|
807
|
-
/**
|
|
808
|
-
*
|
|
809
|
-
* @summary Export static voucher campaign
|
|
810
|
-
* @param campaignID
|
|
811
|
-
*/
|
|
812
|
-
public async exportStaticVoucherCampaign (campaignID: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: string; }> {
|
|
813
|
-
const localVarPath = this.basePath + '/v2/employee/export/staticVoucherCampaign/{campaignID}'
|
|
814
|
-
.replace('{' + 'campaignID' + '}', encodeURIComponent(String(campaignID)));
|
|
815
|
-
let localVarQueryParameters: any = {};
|
|
816
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
817
|
-
const produces = ['application/json'];
|
|
818
|
-
// give precedence to 'application/json'
|
|
819
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
820
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
821
|
-
} else {
|
|
822
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
823
|
-
}
|
|
824
|
-
let localVarFormParams: any = {};
|
|
825
|
-
|
|
826
|
-
// verify required parameter 'campaignID' is not null or undefined
|
|
827
|
-
if (campaignID === null || campaignID === undefined) {
|
|
828
|
-
throw new Error('Required parameter campaignID was null or undefined when calling exportStaticVoucherCampaign.');
|
|
829
|
-
}
|
|
830
|
-
|
|
831
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
832
|
-
|
|
833
|
-
let localVarUseFormData = false;
|
|
834
|
-
|
|
835
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
836
|
-
method: 'PUT',
|
|
837
|
-
qs: localVarQueryParameters,
|
|
838
|
-
headers: localVarHeaderParams,
|
|
839
|
-
uri: localVarPath,
|
|
840
|
-
useQuerystring: this._useQuerystring,
|
|
841
|
-
json: true,
|
|
842
|
-
};
|
|
843
|
-
|
|
844
|
-
let authenticationPromise = Promise.resolve();
|
|
845
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
846
|
-
|
|
847
|
-
let interceptorPromise = authenticationPromise;
|
|
848
|
-
for (const interceptor of this.interceptors) {
|
|
849
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
850
|
-
}
|
|
851
|
-
|
|
852
|
-
return interceptorPromise.then(() => {
|
|
853
|
-
if (Object.keys(localVarFormParams).length) {
|
|
854
|
-
if (localVarUseFormData) {
|
|
855
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
856
|
-
} else {
|
|
857
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
858
|
-
}
|
|
859
|
-
}
|
|
860
|
-
return new Promise<{ response: http.IncomingMessage; body: string; }>((resolve, reject) => {
|
|
861
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
862
|
-
if (error) {
|
|
863
|
-
reject(error);
|
|
864
|
-
} else {
|
|
865
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
866
|
-
body = ObjectSerializer.deserialize(body, "string");
|
|
867
|
-
resolve({ response: response, body: body });
|
|
868
|
-
} else {
|
|
869
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
870
|
-
}
|
|
871
|
-
}
|
|
872
|
-
});
|
|
873
|
-
});
|
|
874
|
-
});
|
|
875
|
-
}
|
|
876
|
-
/**
|
|
877
|
-
*
|
|
878
|
-
* @summary Get URL to download a failed import
|
|
879
|
-
* @param fileID
|
|
880
|
-
*/
|
|
881
|
-
public async failedImport (fileID: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: string; }> {
|
|
882
|
-
const localVarPath = this.basePath + '/v2/employee/file/imports/failed/{fileID}'
|
|
883
|
-
.replace('{' + 'fileID' + '}', encodeURIComponent(String(fileID)));
|
|
884
|
-
let localVarQueryParameters: any = {};
|
|
885
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
886
|
-
const produces = ['application/json'];
|
|
887
|
-
// give precedence to 'application/json'
|
|
888
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
889
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
890
|
-
} else {
|
|
891
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
892
|
-
}
|
|
893
|
-
let localVarFormParams: any = {};
|
|
894
|
-
|
|
895
|
-
// verify required parameter 'fileID' is not null or undefined
|
|
896
|
-
if (fileID === null || fileID === undefined) {
|
|
897
|
-
throw new Error('Required parameter fileID was null or undefined when calling failedImport.');
|
|
898
|
-
}
|
|
899
|
-
|
|
900
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
901
|
-
|
|
902
|
-
let localVarUseFormData = false;
|
|
903
|
-
|
|
904
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
905
|
-
method: 'GET',
|
|
906
|
-
qs: localVarQueryParameters,
|
|
907
|
-
headers: localVarHeaderParams,
|
|
908
|
-
uri: localVarPath,
|
|
909
|
-
useQuerystring: this._useQuerystring,
|
|
910
|
-
json: true,
|
|
911
|
-
};
|
|
912
|
-
|
|
913
|
-
let authenticationPromise = Promise.resolve();
|
|
914
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
915
|
-
|
|
916
|
-
let interceptorPromise = authenticationPromise;
|
|
917
|
-
for (const interceptor of this.interceptors) {
|
|
918
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
919
|
-
}
|
|
920
|
-
|
|
921
|
-
return interceptorPromise.then(() => {
|
|
922
|
-
if (Object.keys(localVarFormParams).length) {
|
|
923
|
-
if (localVarUseFormData) {
|
|
924
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
925
|
-
} else {
|
|
926
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
927
|
-
}
|
|
928
|
-
}
|
|
929
|
-
return new Promise<{ response: http.IncomingMessage; body: string; }>((resolve, reject) => {
|
|
930
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
931
|
-
if (error) {
|
|
932
|
-
reject(error);
|
|
933
|
-
} else {
|
|
934
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
935
|
-
body = ObjectSerializer.deserialize(body, "string");
|
|
936
|
-
resolve({ response: response, body: body });
|
|
937
|
-
} else {
|
|
938
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
939
|
-
}
|
|
940
|
-
}
|
|
941
|
-
});
|
|
942
|
-
});
|
|
943
|
-
});
|
|
944
|
-
}
|
|
945
|
-
/**
|
|
946
|
-
*
|
|
947
|
-
* @summary Get all documents
|
|
948
|
-
* @param folder
|
|
949
|
-
*/
|
|
950
|
-
public async fetchDocuments (folder?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<Document>; }> {
|
|
951
|
-
const localVarPath = this.basePath + '/v2/employee/documents/all';
|
|
952
|
-
let localVarQueryParameters: any = {};
|
|
953
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
954
|
-
const produces = ['application/json'];
|
|
955
|
-
// give precedence to 'application/json'
|
|
956
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
957
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
958
|
-
} else {
|
|
959
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
960
|
-
}
|
|
961
|
-
let localVarFormParams: any = {};
|
|
962
|
-
|
|
963
|
-
if (folder !== undefined) {
|
|
964
|
-
localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
|
|
965
|
-
}
|
|
966
|
-
|
|
967
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
968
|
-
|
|
969
|
-
let localVarUseFormData = false;
|
|
970
|
-
|
|
971
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
972
|
-
method: 'GET',
|
|
973
|
-
qs: localVarQueryParameters,
|
|
974
|
-
headers: localVarHeaderParams,
|
|
975
|
-
uri: localVarPath,
|
|
976
|
-
useQuerystring: this._useQuerystring,
|
|
977
|
-
json: true,
|
|
978
|
-
};
|
|
979
|
-
|
|
980
|
-
let authenticationPromise = Promise.resolve();
|
|
981
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
982
|
-
|
|
983
|
-
let interceptorPromise = authenticationPromise;
|
|
984
|
-
for (const interceptor of this.interceptors) {
|
|
985
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
986
|
-
}
|
|
987
|
-
|
|
988
|
-
return interceptorPromise.then(() => {
|
|
989
|
-
if (Object.keys(localVarFormParams).length) {
|
|
990
|
-
if (localVarUseFormData) {
|
|
991
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
992
|
-
} else {
|
|
993
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
994
|
-
}
|
|
995
|
-
}
|
|
996
|
-
return new Promise<{ response: http.IncomingMessage; body: Array<Document>; }>((resolve, reject) => {
|
|
997
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
998
|
-
if (error) {
|
|
999
|
-
reject(error);
|
|
1000
|
-
} else {
|
|
1001
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1002
|
-
body = ObjectSerializer.deserialize(body, "Array<Document>");
|
|
1003
|
-
resolve({ response: response, body: body });
|
|
1004
|
-
} else {
|
|
1005
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
1006
|
-
}
|
|
1007
|
-
}
|
|
1008
|
-
});
|
|
1009
|
-
});
|
|
1010
|
-
});
|
|
1011
|
-
}
|
|
1012
|
-
/**
|
|
1013
|
-
*
|
|
1014
|
-
* @summary Get all dynamic vouchers
|
|
1015
|
-
* @param isArchiveIncluded
|
|
1016
|
-
*/
|
|
1017
|
-
public async fetchDynamicVouchers (isArchiveIncluded?: boolean, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<DynamicVoucher>; }> {
|
|
1018
|
-
const localVarPath = this.basePath + '/v2/employee/dynamicVouchers/all';
|
|
1019
|
-
let localVarQueryParameters: any = {};
|
|
1020
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1021
|
-
const produces = ['application/json'];
|
|
1022
|
-
// give precedence to 'application/json'
|
|
1023
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1024
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1025
|
-
} else {
|
|
1026
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1027
|
-
}
|
|
1028
|
-
let localVarFormParams: any = {};
|
|
1029
|
-
|
|
1030
|
-
if (isArchiveIncluded !== undefined) {
|
|
1031
|
-
localVarQueryParameters['isArchiveIncluded'] = ObjectSerializer.serialize(isArchiveIncluded, "boolean");
|
|
1032
|
-
}
|
|
1033
|
-
|
|
1034
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1035
|
-
|
|
1036
|
-
let localVarUseFormData = false;
|
|
1037
|
-
|
|
1038
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
1039
|
-
method: 'GET',
|
|
1040
|
-
qs: localVarQueryParameters,
|
|
1041
|
-
headers: localVarHeaderParams,
|
|
1042
|
-
uri: localVarPath,
|
|
1043
|
-
useQuerystring: this._useQuerystring,
|
|
1044
|
-
json: true,
|
|
1045
|
-
};
|
|
1046
|
-
|
|
1047
|
-
let authenticationPromise = Promise.resolve();
|
|
1048
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1049
|
-
|
|
1050
|
-
let interceptorPromise = authenticationPromise;
|
|
1051
|
-
for (const interceptor of this.interceptors) {
|
|
1052
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1053
|
-
}
|
|
1054
|
-
|
|
1055
|
-
return interceptorPromise.then(() => {
|
|
1056
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1057
|
-
if (localVarUseFormData) {
|
|
1058
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1059
|
-
} else {
|
|
1060
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1061
|
-
}
|
|
1062
|
-
}
|
|
1063
|
-
return new Promise<{ response: http.IncomingMessage; body: Array<DynamicVoucher>; }>((resolve, reject) => {
|
|
1064
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1065
|
-
if (error) {
|
|
1066
|
-
reject(error);
|
|
1067
|
-
} else {
|
|
1068
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1069
|
-
body = ObjectSerializer.deserialize(body, "Array<DynamicVoucher>");
|
|
1070
|
-
resolve({ response: response, body: body });
|
|
1071
|
-
} else {
|
|
1072
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
1073
|
-
}
|
|
1074
|
-
}
|
|
1075
|
-
});
|
|
1076
|
-
});
|
|
1077
|
-
});
|
|
1078
|
-
}
|
|
1079
|
-
/**
|
|
1080
|
-
*
|
|
1081
|
-
* @summary Get all media files
|
|
1082
|
-
* @param folder
|
|
1083
|
-
*/
|
|
1084
|
-
public async fetchMediaFiles (folder?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<MediaFile>; }> {
|
|
1085
|
-
const localVarPath = this.basePath + '/v2/employee/mediaFiles/all';
|
|
1086
|
-
let localVarQueryParameters: any = {};
|
|
1087
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1088
|
-
const produces = ['application/json'];
|
|
1089
|
-
// give precedence to 'application/json'
|
|
1090
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1091
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1092
|
-
} else {
|
|
1093
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1094
|
-
}
|
|
1095
|
-
let localVarFormParams: any = {};
|
|
1096
|
-
|
|
1097
|
-
if (folder !== undefined) {
|
|
1098
|
-
localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
|
|
1099
|
-
}
|
|
1100
|
-
|
|
1101
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1102
|
-
|
|
1103
|
-
let localVarUseFormData = false;
|
|
1104
|
-
|
|
1105
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
1106
|
-
method: 'GET',
|
|
1107
|
-
qs: localVarQueryParameters,
|
|
1108
|
-
headers: localVarHeaderParams,
|
|
1109
|
-
uri: localVarPath,
|
|
1110
|
-
useQuerystring: this._useQuerystring,
|
|
1111
|
-
json: true,
|
|
1112
|
-
};
|
|
1113
|
-
|
|
1114
|
-
let authenticationPromise = Promise.resolve();
|
|
1115
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1116
|
-
|
|
1117
|
-
let interceptorPromise = authenticationPromise;
|
|
1118
|
-
for (const interceptor of this.interceptors) {
|
|
1119
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1120
|
-
}
|
|
1121
|
-
|
|
1122
|
-
return interceptorPromise.then(() => {
|
|
1123
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1124
|
-
if (localVarUseFormData) {
|
|
1125
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1126
|
-
} else {
|
|
1127
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1128
|
-
}
|
|
1129
|
-
}
|
|
1130
|
-
return new Promise<{ response: http.IncomingMessage; body: Array<MediaFile>; }>((resolve, reject) => {
|
|
1131
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1132
|
-
if (error) {
|
|
1133
|
-
reject(error);
|
|
1134
|
-
} else {
|
|
1135
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1136
|
-
body = ObjectSerializer.deserialize(body, "Array<MediaFile>");
|
|
1137
|
-
resolve({ response: response, body: body });
|
|
1138
|
-
} else {
|
|
1139
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
1140
|
-
}
|
|
1141
|
-
}
|
|
1142
|
-
});
|
|
1143
|
-
});
|
|
1144
|
-
});
|
|
1145
|
-
}
|
|
1146
|
-
/**
|
|
1147
|
-
*
|
|
1148
|
-
* @summary Create employee alert
|
|
1149
|
-
*/
|
|
1150
|
-
public async fetchMerchant (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: any; }> {
|
|
1151
|
-
const localVarPath = this.basePath + '/v2/employee/merchant';
|
|
1152
|
-
let localVarQueryParameters: any = {};
|
|
1153
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1154
|
-
const produces = ['application/json'];
|
|
1155
|
-
// give precedence to 'application/json'
|
|
1156
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1157
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1158
|
-
} else {
|
|
1159
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1160
|
-
}
|
|
1161
|
-
let localVarFormParams: any = {};
|
|
1162
|
-
|
|
1163
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1164
|
-
|
|
1165
|
-
let localVarUseFormData = false;
|
|
1166
|
-
|
|
1167
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
1168
|
-
method: 'GET',
|
|
1169
|
-
qs: localVarQueryParameters,
|
|
1170
|
-
headers: localVarHeaderParams,
|
|
1171
|
-
uri: localVarPath,
|
|
1172
|
-
useQuerystring: this._useQuerystring,
|
|
1173
|
-
json: true,
|
|
1174
|
-
};
|
|
1175
|
-
|
|
1176
|
-
let authenticationPromise = Promise.resolve();
|
|
1177
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1178
|
-
|
|
1179
|
-
let interceptorPromise = authenticationPromise;
|
|
1180
|
-
for (const interceptor of this.interceptors) {
|
|
1181
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1182
|
-
}
|
|
1183
|
-
|
|
1184
|
-
return interceptorPromise.then(() => {
|
|
1185
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1186
|
-
if (localVarUseFormData) {
|
|
1187
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1188
|
-
} else {
|
|
1189
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1190
|
-
}
|
|
1191
|
-
}
|
|
1192
|
-
return new Promise<{ response: http.IncomingMessage; body: any; }>((resolve, reject) => {
|
|
1193
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1194
|
-
if (error) {
|
|
1195
|
-
reject(error);
|
|
1196
|
-
} else {
|
|
1197
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1198
|
-
body = ObjectSerializer.deserialize(body, "any");
|
|
1199
|
-
resolve({ response: response, body: body });
|
|
1200
|
-
} else {
|
|
1201
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
1202
|
-
}
|
|
1203
|
-
}
|
|
1204
|
-
});
|
|
1205
|
-
});
|
|
1206
|
-
});
|
|
1207
|
-
}
|
|
1208
|
-
/**
|
|
1209
|
-
*
|
|
1210
|
-
* @summary Get all messages
|
|
1211
|
-
*/
|
|
1212
|
-
public async fetchMessages (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<Message>; }> {
|
|
1213
|
-
const localVarPath = this.basePath + '/v2/employee/messages/all';
|
|
1214
|
-
let localVarQueryParameters: any = {};
|
|
1215
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1216
|
-
const produces = ['application/json'];
|
|
1217
|
-
// give precedence to 'application/json'
|
|
1218
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1219
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1220
|
-
} else {
|
|
1221
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1222
|
-
}
|
|
1223
|
-
let localVarFormParams: any = {};
|
|
1224
|
-
|
|
1225
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1226
|
-
|
|
1227
|
-
let localVarUseFormData = false;
|
|
1228
|
-
|
|
1229
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
1230
|
-
method: 'GET',
|
|
1231
|
-
qs: localVarQueryParameters,
|
|
1232
|
-
headers: localVarHeaderParams,
|
|
1233
|
-
uri: localVarPath,
|
|
1234
|
-
useQuerystring: this._useQuerystring,
|
|
1235
|
-
json: true,
|
|
1236
|
-
};
|
|
1237
|
-
|
|
1238
|
-
let authenticationPromise = Promise.resolve();
|
|
1239
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1240
|
-
|
|
1241
|
-
let interceptorPromise = authenticationPromise;
|
|
1242
|
-
for (const interceptor of this.interceptors) {
|
|
1243
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1244
|
-
}
|
|
1245
|
-
|
|
1246
|
-
return interceptorPromise.then(() => {
|
|
1247
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1248
|
-
if (localVarUseFormData) {
|
|
1249
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1250
|
-
} else {
|
|
1251
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1252
|
-
}
|
|
1253
|
-
}
|
|
1254
|
-
return new Promise<{ response: http.IncomingMessage; body: Array<Message>; }>((resolve, reject) => {
|
|
1255
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1256
|
-
if (error) {
|
|
1257
|
-
reject(error);
|
|
1258
|
-
} else {
|
|
1259
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1260
|
-
body = ObjectSerializer.deserialize(body, "Array<Message>");
|
|
1261
|
-
resolve({ response: response, body: body });
|
|
1262
|
-
} else {
|
|
1263
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
1264
|
-
}
|
|
1265
|
-
}
|
|
1266
|
-
});
|
|
1267
|
-
});
|
|
1268
|
-
});
|
|
1269
|
-
}
|
|
1270
|
-
/**
|
|
1271
|
-
*
|
|
1272
|
-
* @summary Get opt in list source
|
|
1273
|
-
* @param sourceID
|
|
1274
|
-
*/
|
|
1275
|
-
public async fetchOptInListSource (sourceID: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: OptInListSource; }> {
|
|
1276
|
-
const localVarPath = this.basePath + '/v2/employee/optInListSource/{sourceID}'
|
|
1277
|
-
.replace('{' + 'sourceID' + '}', encodeURIComponent(String(sourceID)));
|
|
1278
|
-
let localVarQueryParameters: any = {};
|
|
1279
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1280
|
-
const produces = ['application/json'];
|
|
1281
|
-
// give precedence to 'application/json'
|
|
1282
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1283
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1284
|
-
} else {
|
|
1285
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1286
|
-
}
|
|
1287
|
-
let localVarFormParams: any = {};
|
|
1288
|
-
|
|
1289
|
-
// verify required parameter 'sourceID' is not null or undefined
|
|
1290
|
-
if (sourceID === null || sourceID === undefined) {
|
|
1291
|
-
throw new Error('Required parameter sourceID was null or undefined when calling fetchOptInListSource.');
|
|
1292
|
-
}
|
|
1293
|
-
|
|
1294
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1295
|
-
|
|
1296
|
-
let localVarUseFormData = false;
|
|
1297
|
-
|
|
1298
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
1299
|
-
method: 'GET',
|
|
1300
|
-
qs: localVarQueryParameters,
|
|
1301
|
-
headers: localVarHeaderParams,
|
|
1302
|
-
uri: localVarPath,
|
|
1303
|
-
useQuerystring: this._useQuerystring,
|
|
1304
|
-
json: true,
|
|
1305
|
-
};
|
|
1306
|
-
|
|
1307
|
-
let authenticationPromise = Promise.resolve();
|
|
1308
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1309
|
-
|
|
1310
|
-
let interceptorPromise = authenticationPromise;
|
|
1311
|
-
for (const interceptor of this.interceptors) {
|
|
1312
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1313
|
-
}
|
|
1314
|
-
|
|
1315
|
-
return interceptorPromise.then(() => {
|
|
1316
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1317
|
-
if (localVarUseFormData) {
|
|
1318
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1319
|
-
} else {
|
|
1320
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1321
|
-
}
|
|
1322
|
-
}
|
|
1323
|
-
return new Promise<{ response: http.IncomingMessage; body: OptInListSource; }>((resolve, reject) => {
|
|
1324
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1325
|
-
if (error) {
|
|
1326
|
-
reject(error);
|
|
1327
|
-
} else {
|
|
1328
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1329
|
-
body = ObjectSerializer.deserialize(body, "OptInListSource");
|
|
1330
|
-
resolve({ response: response, body: body });
|
|
1331
|
-
} else {
|
|
1332
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
1333
|
-
}
|
|
1334
|
-
}
|
|
1335
|
-
});
|
|
1336
|
-
});
|
|
1337
|
-
});
|
|
1338
|
-
}
|
|
1339
|
-
/**
|
|
1340
|
-
*
|
|
1341
|
-
* @summary Get all opt in list sources
|
|
1342
|
-
*/
|
|
1343
|
-
public async fetchOptInListSourcesCreatedByEmployee (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<OptInListSource>; }> {
|
|
1344
|
-
const localVarPath = this.basePath + '/v2/employee/optInListSources/all';
|
|
1345
|
-
let localVarQueryParameters: any = {};
|
|
1346
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1347
|
-
const produces = ['application/json'];
|
|
1348
|
-
// give precedence to 'application/json'
|
|
1349
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1350
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1351
|
-
} else {
|
|
1352
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1353
|
-
}
|
|
1354
|
-
let localVarFormParams: any = {};
|
|
1355
|
-
|
|
1356
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1357
|
-
|
|
1358
|
-
let localVarUseFormData = false;
|
|
1359
|
-
|
|
1360
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
1361
|
-
method: 'GET',
|
|
1362
|
-
qs: localVarQueryParameters,
|
|
1363
|
-
headers: localVarHeaderParams,
|
|
1364
|
-
uri: localVarPath,
|
|
1365
|
-
useQuerystring: this._useQuerystring,
|
|
1366
|
-
json: true,
|
|
1367
|
-
};
|
|
1368
|
-
|
|
1369
|
-
let authenticationPromise = Promise.resolve();
|
|
1370
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1371
|
-
|
|
1372
|
-
let interceptorPromise = authenticationPromise;
|
|
1373
|
-
for (const interceptor of this.interceptors) {
|
|
1374
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1375
|
-
}
|
|
1376
|
-
|
|
1377
|
-
return interceptorPromise.then(() => {
|
|
1378
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1379
|
-
if (localVarUseFormData) {
|
|
1380
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1381
|
-
} else {
|
|
1382
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1383
|
-
}
|
|
1384
|
-
}
|
|
1385
|
-
return new Promise<{ response: http.IncomingMessage; body: Array<OptInListSource>; }>((resolve, reject) => {
|
|
1386
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1387
|
-
if (error) {
|
|
1388
|
-
reject(error);
|
|
1389
|
-
} else {
|
|
1390
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1391
|
-
body = ObjectSerializer.deserialize(body, "Array<OptInListSource>");
|
|
1392
|
-
resolve({ response: response, body: body });
|
|
1393
|
-
} else {
|
|
1394
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
1395
|
-
}
|
|
1396
|
-
}
|
|
1397
|
-
});
|
|
1398
|
-
});
|
|
1399
|
-
});
|
|
1400
|
-
}
|
|
1401
|
-
/**
|
|
1402
|
-
*
|
|
1403
|
-
* @summary Get peer activity
|
|
1404
|
-
* @param employeeID
|
|
1405
|
-
*/
|
|
1406
|
-
public async fetchPeerActivity (employeeID: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<EmployeeActivityLog>; }> {
|
|
1407
|
-
const localVarPath = this.basePath + '/v2/employee/peer/activity/{employeeID}'
|
|
1408
|
-
.replace('{' + 'employeeID' + '}', encodeURIComponent(String(employeeID)));
|
|
1409
|
-
let localVarQueryParameters: any = {};
|
|
1410
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1411
|
-
const produces = ['application/json'];
|
|
1412
|
-
// give precedence to 'application/json'
|
|
1413
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1414
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1415
|
-
} else {
|
|
1416
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1417
|
-
}
|
|
1418
|
-
let localVarFormParams: any = {};
|
|
1419
|
-
|
|
1420
|
-
// verify required parameter 'employeeID' is not null or undefined
|
|
1421
|
-
if (employeeID === null || employeeID === undefined) {
|
|
1422
|
-
throw new Error('Required parameter employeeID was null or undefined when calling fetchPeerActivity.');
|
|
1423
|
-
}
|
|
1424
|
-
|
|
1425
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1426
|
-
|
|
1427
|
-
let localVarUseFormData = false;
|
|
1428
|
-
|
|
1429
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
1430
|
-
method: 'GET',
|
|
1431
|
-
qs: localVarQueryParameters,
|
|
1432
|
-
headers: localVarHeaderParams,
|
|
1433
|
-
uri: localVarPath,
|
|
1434
|
-
useQuerystring: this._useQuerystring,
|
|
1435
|
-
json: true,
|
|
1436
|
-
};
|
|
1437
|
-
|
|
1438
|
-
let authenticationPromise = Promise.resolve();
|
|
1439
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1440
|
-
|
|
1441
|
-
let interceptorPromise = authenticationPromise;
|
|
1442
|
-
for (const interceptor of this.interceptors) {
|
|
1443
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1444
|
-
}
|
|
1445
|
-
|
|
1446
|
-
return interceptorPromise.then(() => {
|
|
1447
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1448
|
-
if (localVarUseFormData) {
|
|
1449
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1450
|
-
} else {
|
|
1451
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1452
|
-
}
|
|
1453
|
-
}
|
|
1454
|
-
return new Promise<{ response: http.IncomingMessage; body: Array<EmployeeActivityLog>; }>((resolve, reject) => {
|
|
1455
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1456
|
-
if (error) {
|
|
1457
|
-
reject(error);
|
|
1458
|
-
} else {
|
|
1459
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1460
|
-
body = ObjectSerializer.deserialize(body, "Array<EmployeeActivityLog>");
|
|
1461
|
-
resolve({ response: response, body: body });
|
|
1462
|
-
} else {
|
|
1463
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
1464
|
-
}
|
|
1465
|
-
}
|
|
1466
|
-
});
|
|
1467
|
-
});
|
|
1468
|
-
});
|
|
1469
|
-
}
|
|
1470
|
-
/**
|
|
1471
|
-
*
|
|
1472
|
-
* @summary Get peer permissions
|
|
1473
|
-
* @param userID
|
|
1474
|
-
*/
|
|
1475
|
-
public async fetchPeersPermissions (userID: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<any>; }> {
|
|
1476
|
-
const localVarPath = this.basePath + '/v2/employee/peer/permissions/{userID}'
|
|
1477
|
-
.replace('{' + 'userID' + '}', encodeURIComponent(String(userID)));
|
|
1478
|
-
let localVarQueryParameters: any = {};
|
|
1479
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1480
|
-
const produces = ['application/json'];
|
|
1481
|
-
// give precedence to 'application/json'
|
|
1482
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1483
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1484
|
-
} else {
|
|
1485
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1486
|
-
}
|
|
1487
|
-
let localVarFormParams: any = {};
|
|
1488
|
-
|
|
1489
|
-
// verify required parameter 'userID' is not null or undefined
|
|
1490
|
-
if (userID === null || userID === undefined) {
|
|
1491
|
-
throw new Error('Required parameter userID was null or undefined when calling fetchPeersPermissions.');
|
|
1492
|
-
}
|
|
1493
|
-
|
|
1494
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1495
|
-
|
|
1496
|
-
let localVarUseFormData = false;
|
|
1497
|
-
|
|
1498
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
1499
|
-
method: 'GET',
|
|
1500
|
-
qs: localVarQueryParameters,
|
|
1501
|
-
headers: localVarHeaderParams,
|
|
1502
|
-
uri: localVarPath,
|
|
1503
|
-
useQuerystring: this._useQuerystring,
|
|
1504
|
-
json: true,
|
|
1505
|
-
};
|
|
1506
|
-
|
|
1507
|
-
let authenticationPromise = Promise.resolve();
|
|
1508
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1509
|
-
|
|
1510
|
-
let interceptorPromise = authenticationPromise;
|
|
1511
|
-
for (const interceptor of this.interceptors) {
|
|
1512
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1513
|
-
}
|
|
1514
|
-
|
|
1515
|
-
return interceptorPromise.then(() => {
|
|
1516
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1517
|
-
if (localVarUseFormData) {
|
|
1518
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1519
|
-
} else {
|
|
1520
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1521
|
-
}
|
|
1522
|
-
}
|
|
1523
|
-
return new Promise<{ response: http.IncomingMessage; body: Array<any>; }>((resolve, reject) => {
|
|
1524
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1525
|
-
if (error) {
|
|
1526
|
-
reject(error);
|
|
1527
|
-
} else {
|
|
1528
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1529
|
-
body = ObjectSerializer.deserialize(body, "Array<any>");
|
|
1530
|
-
resolve({ response: response, body: body });
|
|
1531
|
-
} else {
|
|
1532
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
1533
|
-
}
|
|
1534
|
-
}
|
|
1535
|
-
});
|
|
1536
|
-
});
|
|
1537
|
-
});
|
|
1538
|
-
}
|
|
1539
|
-
/**
|
|
1540
|
-
*
|
|
1541
|
-
* @summary Get employee info
|
|
1542
|
-
*/
|
|
1543
|
-
public async fetchProfileInfo (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Employee; }> {
|
|
1544
|
-
const localVarPath = this.basePath + '/v2/employee';
|
|
1545
|
-
let localVarQueryParameters: any = {};
|
|
1546
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1547
|
-
const produces = ['application/json'];
|
|
1548
|
-
// give precedence to 'application/json'
|
|
1549
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1550
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1551
|
-
} else {
|
|
1552
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1553
|
-
}
|
|
1554
|
-
let localVarFormParams: any = {};
|
|
1555
|
-
|
|
1556
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1557
|
-
|
|
1558
|
-
let localVarUseFormData = false;
|
|
1559
|
-
|
|
1560
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
1561
|
-
method: 'GET',
|
|
1562
|
-
qs: localVarQueryParameters,
|
|
1563
|
-
headers: localVarHeaderParams,
|
|
1564
|
-
uri: localVarPath,
|
|
1565
|
-
useQuerystring: this._useQuerystring,
|
|
1566
|
-
json: true,
|
|
1567
|
-
};
|
|
1568
|
-
|
|
1569
|
-
let authenticationPromise = Promise.resolve();
|
|
1570
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1571
|
-
|
|
1572
|
-
let interceptorPromise = authenticationPromise;
|
|
1573
|
-
for (const interceptor of this.interceptors) {
|
|
1574
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1575
|
-
}
|
|
1576
|
-
|
|
1577
|
-
return interceptorPromise.then(() => {
|
|
1578
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1579
|
-
if (localVarUseFormData) {
|
|
1580
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1581
|
-
} else {
|
|
1582
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1583
|
-
}
|
|
1584
|
-
}
|
|
1585
|
-
return new Promise<{ response: http.IncomingMessage; body: Employee; }>((resolve, reject) => {
|
|
1586
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1587
|
-
if (error) {
|
|
1588
|
-
reject(error);
|
|
1589
|
-
} else {
|
|
1590
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1591
|
-
body = ObjectSerializer.deserialize(body, "Employee");
|
|
1592
|
-
resolve({ response: response, body: body });
|
|
1593
|
-
} else {
|
|
1594
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
1595
|
-
}
|
|
1596
|
-
}
|
|
1597
|
-
});
|
|
1598
|
-
});
|
|
1599
|
-
});
|
|
1600
|
-
}
|
|
1601
|
-
/**
|
|
1602
|
-
*
|
|
1603
|
-
* @summary Import club members
|
|
1604
|
-
* @param wTEmployeeImportRecords
|
|
1605
|
-
*/
|
|
1606
|
-
public async importClubMembers (wTEmployeeImportRecords: WTEmployeeImportRecords, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: string; }> {
|
|
1607
|
-
const localVarPath = this.basePath + '/v2/employee/import/members';
|
|
1608
|
-
let localVarQueryParameters: any = {};
|
|
1609
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1610
|
-
const produces = ['application/json'];
|
|
1611
|
-
// give precedence to 'application/json'
|
|
1612
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1613
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1614
|
-
} else {
|
|
1615
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1616
|
-
}
|
|
1617
|
-
let localVarFormParams: any = {};
|
|
1618
|
-
|
|
1619
|
-
// verify required parameter 'wTEmployeeImportRecords' is not null or undefined
|
|
1620
|
-
if (wTEmployeeImportRecords === null || wTEmployeeImportRecords === undefined) {
|
|
1621
|
-
throw new Error('Required parameter wTEmployeeImportRecords was null or undefined when calling importClubMembers.');
|
|
1622
|
-
}
|
|
1623
|
-
|
|
1624
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1625
|
-
|
|
1626
|
-
let localVarUseFormData = false;
|
|
1627
|
-
|
|
1628
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
1629
|
-
method: 'POST',
|
|
1630
|
-
qs: localVarQueryParameters,
|
|
1631
|
-
headers: localVarHeaderParams,
|
|
1632
|
-
uri: localVarPath,
|
|
1633
|
-
useQuerystring: this._useQuerystring,
|
|
1634
|
-
json: true,
|
|
1635
|
-
body: ObjectSerializer.serialize(wTEmployeeImportRecords, "WTEmployeeImportRecords")
|
|
1636
|
-
};
|
|
1637
|
-
|
|
1638
|
-
let authenticationPromise = Promise.resolve();
|
|
1639
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1640
|
-
|
|
1641
|
-
let interceptorPromise = authenticationPromise;
|
|
1642
|
-
for (const interceptor of this.interceptors) {
|
|
1643
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1644
|
-
}
|
|
1645
|
-
|
|
1646
|
-
return interceptorPromise.then(() => {
|
|
1647
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1648
|
-
if (localVarUseFormData) {
|
|
1649
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1650
|
-
} else {
|
|
1651
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1652
|
-
}
|
|
1653
|
-
}
|
|
1654
|
-
return new Promise<{ response: http.IncomingMessage; body: string; }>((resolve, reject) => {
|
|
1655
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1656
|
-
if (error) {
|
|
1657
|
-
reject(error);
|
|
1658
|
-
} else {
|
|
1659
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1660
|
-
body = ObjectSerializer.deserialize(body, "string");
|
|
1661
|
-
resolve({ response: response, body: body });
|
|
1662
|
-
} else {
|
|
1663
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
1664
|
-
}
|
|
1665
|
-
}
|
|
1666
|
-
});
|
|
1667
|
-
});
|
|
1668
|
-
});
|
|
1669
|
-
}
|
|
1670
|
-
/**
|
|
1671
|
-
*
|
|
1672
|
-
* @summary Import merchant credits
|
|
1673
|
-
* @param wTEmployeeImportRecords
|
|
1674
|
-
*/
|
|
1675
|
-
public async importMerchantCredits (wTEmployeeImportRecords: WTEmployeeImportRecords, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: string; }> {
|
|
1676
|
-
const localVarPath = this.basePath + '/v2/employee/import/merchantCredits';
|
|
1677
|
-
let localVarQueryParameters: any = {};
|
|
1678
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1679
|
-
const produces = ['application/json'];
|
|
1680
|
-
// give precedence to 'application/json'
|
|
1681
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1682
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1683
|
-
} else {
|
|
1684
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1685
|
-
}
|
|
1686
|
-
let localVarFormParams: any = {};
|
|
1687
|
-
|
|
1688
|
-
// verify required parameter 'wTEmployeeImportRecords' is not null or undefined
|
|
1689
|
-
if (wTEmployeeImportRecords === null || wTEmployeeImportRecords === undefined) {
|
|
1690
|
-
throw new Error('Required parameter wTEmployeeImportRecords was null or undefined when calling importMerchantCredits.');
|
|
1691
|
-
}
|
|
1692
|
-
|
|
1693
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1694
|
-
|
|
1695
|
-
let localVarUseFormData = false;
|
|
1696
|
-
|
|
1697
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
1698
|
-
method: 'POST',
|
|
1699
|
-
qs: localVarQueryParameters,
|
|
1700
|
-
headers: localVarHeaderParams,
|
|
1701
|
-
uri: localVarPath,
|
|
1702
|
-
useQuerystring: this._useQuerystring,
|
|
1703
|
-
json: true,
|
|
1704
|
-
body: ObjectSerializer.serialize(wTEmployeeImportRecords, "WTEmployeeImportRecords")
|
|
1705
|
-
};
|
|
1706
|
-
|
|
1707
|
-
let authenticationPromise = Promise.resolve();
|
|
1708
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1709
|
-
|
|
1710
|
-
let interceptorPromise = authenticationPromise;
|
|
1711
|
-
for (const interceptor of this.interceptors) {
|
|
1712
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1713
|
-
}
|
|
1714
|
-
|
|
1715
|
-
return interceptorPromise.then(() => {
|
|
1716
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1717
|
-
if (localVarUseFormData) {
|
|
1718
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1719
|
-
} else {
|
|
1720
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1721
|
-
}
|
|
1722
|
-
}
|
|
1723
|
-
return new Promise<{ response: http.IncomingMessage; body: string; }>((resolve, reject) => {
|
|
1724
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1725
|
-
if (error) {
|
|
1726
|
-
reject(error);
|
|
1727
|
-
} else {
|
|
1728
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1729
|
-
body = ObjectSerializer.deserialize(body, "string");
|
|
1730
|
-
resolve({ response: response, body: body });
|
|
1731
|
-
} else {
|
|
1732
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
1733
|
-
}
|
|
1734
|
-
}
|
|
1735
|
-
});
|
|
1736
|
-
});
|
|
1737
|
-
});
|
|
1738
|
-
}
|
|
1739
|
-
/**
|
|
1740
|
-
*
|
|
1741
|
-
* @summary Get employee\'s permissions
|
|
1742
|
-
*/
|
|
1743
|
-
public async loadWebpagesOfEmployee (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<Webpage>; }> {
|
|
1744
|
-
const localVarPath = this.basePath + '/v2/employee/webpages/all';
|
|
1745
|
-
let localVarQueryParameters: any = {};
|
|
1746
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1747
|
-
const produces = ['application/json'];
|
|
1748
|
-
// give precedence to 'application/json'
|
|
1749
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1750
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1751
|
-
} else {
|
|
1752
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1753
|
-
}
|
|
1754
|
-
let localVarFormParams: any = {};
|
|
1755
|
-
|
|
1756
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1757
|
-
|
|
1758
|
-
let localVarUseFormData = false;
|
|
1759
|
-
|
|
1760
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
1761
|
-
method: 'GET',
|
|
1762
|
-
qs: localVarQueryParameters,
|
|
1763
|
-
headers: localVarHeaderParams,
|
|
1764
|
-
uri: localVarPath,
|
|
1765
|
-
useQuerystring: this._useQuerystring,
|
|
1766
|
-
json: true,
|
|
1767
|
-
};
|
|
1768
|
-
|
|
1769
|
-
let authenticationPromise = Promise.resolve();
|
|
1770
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1771
|
-
|
|
1772
|
-
let interceptorPromise = authenticationPromise;
|
|
1773
|
-
for (const interceptor of this.interceptors) {
|
|
1774
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1775
|
-
}
|
|
1776
|
-
|
|
1777
|
-
return interceptorPromise.then(() => {
|
|
1778
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1779
|
-
if (localVarUseFormData) {
|
|
1780
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1781
|
-
} else {
|
|
1782
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1783
|
-
}
|
|
1784
|
-
}
|
|
1785
|
-
return new Promise<{ response: http.IncomingMessage; body: Array<Webpage>; }>((resolve, reject) => {
|
|
1786
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1787
|
-
if (error) {
|
|
1788
|
-
reject(error);
|
|
1789
|
-
} else {
|
|
1790
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1791
|
-
body = ObjectSerializer.deserialize(body, "Array<Webpage>");
|
|
1792
|
-
resolve({ response: response, body: body });
|
|
1793
|
-
} else {
|
|
1794
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
1795
|
-
}
|
|
1796
|
-
}
|
|
1797
|
-
});
|
|
1798
|
-
});
|
|
1799
|
-
});
|
|
1800
|
-
}
|
|
1801
|
-
/**
|
|
1802
|
-
*
|
|
1803
|
-
* @summary Modify peer\'s roles
|
|
1804
|
-
* @param userID
|
|
1805
|
-
* @param wTEmployeePeerRoles
|
|
1806
|
-
*/
|
|
1807
|
-
public async modifyPeersRoles (userID: string, wTEmployeePeerRoles: WTEmployeePeerRoles, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<any>; }> {
|
|
1808
|
-
const localVarPath = this.basePath + '/v2/employee/peer/permissions/{userID}'
|
|
1809
|
-
.replace('{' + 'userID' + '}', encodeURIComponent(String(userID)));
|
|
1810
|
-
let localVarQueryParameters: any = {};
|
|
1811
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1812
|
-
const produces = ['application/json'];
|
|
1813
|
-
// give precedence to 'application/json'
|
|
1814
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1815
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1816
|
-
} else {
|
|
1817
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1818
|
-
}
|
|
1819
|
-
let localVarFormParams: any = {};
|
|
1820
|
-
|
|
1821
|
-
// verify required parameter 'userID' is not null or undefined
|
|
1822
|
-
if (userID === null || userID === undefined) {
|
|
1823
|
-
throw new Error('Required parameter userID was null or undefined when calling modifyPeersRoles.');
|
|
1824
|
-
}
|
|
1825
|
-
|
|
1826
|
-
// verify required parameter 'wTEmployeePeerRoles' is not null or undefined
|
|
1827
|
-
if (wTEmployeePeerRoles === null || wTEmployeePeerRoles === undefined) {
|
|
1828
|
-
throw new Error('Required parameter wTEmployeePeerRoles was null or undefined when calling modifyPeersRoles.');
|
|
1829
|
-
}
|
|
1830
|
-
|
|
1831
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1832
|
-
|
|
1833
|
-
let localVarUseFormData = false;
|
|
1834
|
-
|
|
1835
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
1836
|
-
method: 'PUT',
|
|
1837
|
-
qs: localVarQueryParameters,
|
|
1838
|
-
headers: localVarHeaderParams,
|
|
1839
|
-
uri: localVarPath,
|
|
1840
|
-
useQuerystring: this._useQuerystring,
|
|
1841
|
-
json: true,
|
|
1842
|
-
body: ObjectSerializer.serialize(wTEmployeePeerRoles, "WTEmployeePeerRoles")
|
|
1843
|
-
};
|
|
1844
|
-
|
|
1845
|
-
let authenticationPromise = Promise.resolve();
|
|
1846
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1847
|
-
|
|
1848
|
-
let interceptorPromise = authenticationPromise;
|
|
1849
|
-
for (const interceptor of this.interceptors) {
|
|
1850
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1851
|
-
}
|
|
1852
|
-
|
|
1853
|
-
return interceptorPromise.then(() => {
|
|
1854
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1855
|
-
if (localVarUseFormData) {
|
|
1856
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1857
|
-
} else {
|
|
1858
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1859
|
-
}
|
|
1860
|
-
}
|
|
1861
|
-
return new Promise<{ response: http.IncomingMessage; body: Array<any>; }>((resolve, reject) => {
|
|
1862
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1863
|
-
if (error) {
|
|
1864
|
-
reject(error);
|
|
1865
|
-
} else {
|
|
1866
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1867
|
-
body = ObjectSerializer.deserialize(body, "Array<any>");
|
|
1868
|
-
resolve({ response: response, body: body });
|
|
1869
|
-
} else {
|
|
1870
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
1871
|
-
}
|
|
1872
|
-
}
|
|
1873
|
-
});
|
|
1874
|
-
});
|
|
1875
|
-
});
|
|
1876
|
-
}
|
|
1877
|
-
/**
|
|
1878
|
-
*
|
|
1879
|
-
* @summary Presign file for upload
|
|
1880
|
-
* @param wTEmployeeS3FilePresign
|
|
1881
|
-
*/
|
|
1882
|
-
public async presignFile (wTEmployeeS3FilePresign: WTEmployeeS3FilePresign, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: PresignedPost; }> {
|
|
1883
|
-
const localVarPath = this.basePath + '/v2/employee/file/presign';
|
|
1884
|
-
let localVarQueryParameters: any = {};
|
|
1885
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1886
|
-
const produces = ['application/json'];
|
|
1887
|
-
// give precedence to 'application/json'
|
|
1888
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1889
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1890
|
-
} else {
|
|
1891
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1892
|
-
}
|
|
1893
|
-
let localVarFormParams: any = {};
|
|
1894
|
-
|
|
1895
|
-
// verify required parameter 'wTEmployeeS3FilePresign' is not null or undefined
|
|
1896
|
-
if (wTEmployeeS3FilePresign === null || wTEmployeeS3FilePresign === undefined) {
|
|
1897
|
-
throw new Error('Required parameter wTEmployeeS3FilePresign was null or undefined when calling presignFile.');
|
|
1898
|
-
}
|
|
1899
|
-
|
|
1900
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1901
|
-
|
|
1902
|
-
let localVarUseFormData = false;
|
|
1903
|
-
|
|
1904
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
1905
|
-
method: 'POST',
|
|
1906
|
-
qs: localVarQueryParameters,
|
|
1907
|
-
headers: localVarHeaderParams,
|
|
1908
|
-
uri: localVarPath,
|
|
1909
|
-
useQuerystring: this._useQuerystring,
|
|
1910
|
-
json: true,
|
|
1911
|
-
body: ObjectSerializer.serialize(wTEmployeeS3FilePresign, "WTEmployeeS3FilePresign")
|
|
1912
|
-
};
|
|
1913
|
-
|
|
1914
|
-
let authenticationPromise = Promise.resolve();
|
|
1915
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1916
|
-
|
|
1917
|
-
let interceptorPromise = authenticationPromise;
|
|
1918
|
-
for (const interceptor of this.interceptors) {
|
|
1919
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1920
|
-
}
|
|
1921
|
-
|
|
1922
|
-
return interceptorPromise.then(() => {
|
|
1923
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1924
|
-
if (localVarUseFormData) {
|
|
1925
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1926
|
-
} else {
|
|
1927
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1928
|
-
}
|
|
1929
|
-
}
|
|
1930
|
-
return new Promise<{ response: http.IncomingMessage; body: PresignedPost; }>((resolve, reject) => {
|
|
1931
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1932
|
-
if (error) {
|
|
1933
|
-
reject(error);
|
|
1934
|
-
} else {
|
|
1935
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1936
|
-
body = ObjectSerializer.deserialize(body, "PresignedPost");
|
|
1937
|
-
resolve({ response: response, body: body });
|
|
1938
|
-
} else {
|
|
1939
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
1940
|
-
}
|
|
1941
|
-
}
|
|
1942
|
-
});
|
|
1943
|
-
});
|
|
1944
|
-
});
|
|
1945
|
-
}
|
|
1946
|
-
/**
|
|
1947
|
-
*
|
|
1948
|
-
* @summary Remove peer from all roles
|
|
1949
|
-
* @param userID
|
|
1950
|
-
*/
|
|
1951
|
-
public async removePeerFromAllRoles (userID: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: boolean; }> {
|
|
1952
|
-
const localVarPath = this.basePath + '/v2/employee/peer/permissions/{userID}'
|
|
1953
|
-
.replace('{' + 'userID' + '}', encodeURIComponent(String(userID)));
|
|
1954
|
-
let localVarQueryParameters: any = {};
|
|
1955
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1956
|
-
const produces = ['application/json'];
|
|
1957
|
-
// give precedence to 'application/json'
|
|
1958
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1959
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1960
|
-
} else {
|
|
1961
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1962
|
-
}
|
|
1963
|
-
let localVarFormParams: any = {};
|
|
1964
|
-
|
|
1965
|
-
// verify required parameter 'userID' is not null or undefined
|
|
1966
|
-
if (userID === null || userID === undefined) {
|
|
1967
|
-
throw new Error('Required parameter userID was null or undefined when calling removePeerFromAllRoles.');
|
|
1968
|
-
}
|
|
1969
|
-
|
|
1970
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1971
|
-
|
|
1972
|
-
let localVarUseFormData = false;
|
|
1973
|
-
|
|
1974
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
1975
|
-
method: 'DELETE',
|
|
1976
|
-
qs: localVarQueryParameters,
|
|
1977
|
-
headers: localVarHeaderParams,
|
|
1978
|
-
uri: localVarPath,
|
|
1979
|
-
useQuerystring: this._useQuerystring,
|
|
1980
|
-
json: true,
|
|
1981
|
-
};
|
|
1982
|
-
|
|
1983
|
-
let authenticationPromise = Promise.resolve();
|
|
1984
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1985
|
-
|
|
1986
|
-
let interceptorPromise = authenticationPromise;
|
|
1987
|
-
for (const interceptor of this.interceptors) {
|
|
1988
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1989
|
-
}
|
|
1990
|
-
|
|
1991
|
-
return interceptorPromise.then(() => {
|
|
1992
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1993
|
-
if (localVarUseFormData) {
|
|
1994
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1995
|
-
} else {
|
|
1996
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1997
|
-
}
|
|
1998
|
-
}
|
|
1999
|
-
return new Promise<{ response: http.IncomingMessage; body: boolean; }>((resolve, reject) => {
|
|
2000
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2001
|
-
if (error) {
|
|
2002
|
-
reject(error);
|
|
2003
|
-
} else {
|
|
2004
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2005
|
-
body = ObjectSerializer.deserialize(body, "boolean");
|
|
2006
|
-
resolve({ response: response, body: body });
|
|
2007
|
-
} else {
|
|
2008
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
2009
|
-
}
|
|
2010
|
-
}
|
|
2011
|
-
});
|
|
2012
|
-
});
|
|
2013
|
-
});
|
|
2014
|
-
}
|
|
2015
|
-
/**
|
|
2016
|
-
*
|
|
2017
|
-
* @summary Schedule Ad Credit
|
|
2018
|
-
* @param advertisementCreditID
|
|
2019
|
-
* @param wTEmployeeScheduleSimpleSMS
|
|
2020
|
-
*/
|
|
2021
|
-
public async scheduleAdvertisementCredit (advertisementCreditID: string, wTEmployeeScheduleSimpleSMS: WTEmployeeScheduleSimpleSMS, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: AdvertisementCreditBroadcast; }> {
|
|
2022
|
-
const localVarPath = this.basePath + '/v2/employee/sms/schedule/adCredit/{advertisementCreditID}'
|
|
2023
|
-
.replace('{' + 'advertisementCreditID' + '}', encodeURIComponent(String(advertisementCreditID)));
|
|
2024
|
-
let localVarQueryParameters: any = {};
|
|
2025
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
2026
|
-
const produces = ['application/json'];
|
|
2027
|
-
// give precedence to 'application/json'
|
|
2028
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2029
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2030
|
-
} else {
|
|
2031
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
2032
|
-
}
|
|
2033
|
-
let localVarFormParams: any = {};
|
|
2034
|
-
|
|
2035
|
-
// verify required parameter 'advertisementCreditID' is not null or undefined
|
|
2036
|
-
if (advertisementCreditID === null || advertisementCreditID === undefined) {
|
|
2037
|
-
throw new Error('Required parameter advertisementCreditID was null or undefined when calling scheduleAdvertisementCredit.');
|
|
2038
|
-
}
|
|
2039
|
-
|
|
2040
|
-
// verify required parameter 'wTEmployeeScheduleSimpleSMS' is not null or undefined
|
|
2041
|
-
if (wTEmployeeScheduleSimpleSMS === null || wTEmployeeScheduleSimpleSMS === undefined) {
|
|
2042
|
-
throw new Error('Required parameter wTEmployeeScheduleSimpleSMS was null or undefined when calling scheduleAdvertisementCredit.');
|
|
2043
|
-
}
|
|
2044
|
-
|
|
2045
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
2046
|
-
|
|
2047
|
-
let localVarUseFormData = false;
|
|
2048
|
-
|
|
2049
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
2050
|
-
method: 'POST',
|
|
2051
|
-
qs: localVarQueryParameters,
|
|
2052
|
-
headers: localVarHeaderParams,
|
|
2053
|
-
uri: localVarPath,
|
|
2054
|
-
useQuerystring: this._useQuerystring,
|
|
2055
|
-
json: true,
|
|
2056
|
-
body: ObjectSerializer.serialize(wTEmployeeScheduleSimpleSMS, "WTEmployeeScheduleSimpleSMS")
|
|
2057
|
-
};
|
|
2058
|
-
|
|
2059
|
-
let authenticationPromise = Promise.resolve();
|
|
2060
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2061
|
-
|
|
2062
|
-
let interceptorPromise = authenticationPromise;
|
|
2063
|
-
for (const interceptor of this.interceptors) {
|
|
2064
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
2065
|
-
}
|
|
2066
|
-
|
|
2067
|
-
return interceptorPromise.then(() => {
|
|
2068
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2069
|
-
if (localVarUseFormData) {
|
|
2070
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
2071
|
-
} else {
|
|
2072
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2073
|
-
}
|
|
2074
|
-
}
|
|
2075
|
-
return new Promise<{ response: http.IncomingMessage; body: AdvertisementCreditBroadcast; }>((resolve, reject) => {
|
|
2076
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2077
|
-
if (error) {
|
|
2078
|
-
reject(error);
|
|
2079
|
-
} else {
|
|
2080
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2081
|
-
body = ObjectSerializer.deserialize(body, "AdvertisementCreditBroadcast");
|
|
2082
|
-
resolve({ response: response, body: body });
|
|
2083
|
-
} else {
|
|
2084
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
2085
|
-
}
|
|
2086
|
-
}
|
|
2087
|
-
});
|
|
2088
|
-
});
|
|
2089
|
-
});
|
|
2090
|
-
}
|
|
2091
|
-
/**
|
|
2092
|
-
*
|
|
2093
|
-
* @summary Schedule Dynamic Voucher to list
|
|
2094
|
-
* @param dynamicVoucherID
|
|
2095
|
-
* @param wTEmployeeScheduleSimpleSMS
|
|
2096
|
-
*/
|
|
2097
|
-
public async scheduleDynamicVoucher (dynamicVoucherID: string, wTEmployeeScheduleSimpleSMS: WTEmployeeScheduleSimpleSMS, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: DynamicVoucherBroadcast; }> {
|
|
2098
|
-
const localVarPath = this.basePath + '/v2/employee/sms/schedule/dynamicVoucher/{dynamicVoucherID}'
|
|
2099
|
-
.replace('{' + 'dynamicVoucherID' + '}', encodeURIComponent(String(dynamicVoucherID)));
|
|
2100
|
-
let localVarQueryParameters: any = {};
|
|
2101
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
2102
|
-
const produces = ['application/json'];
|
|
2103
|
-
// give precedence to 'application/json'
|
|
2104
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2105
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2106
|
-
} else {
|
|
2107
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
2108
|
-
}
|
|
2109
|
-
let localVarFormParams: any = {};
|
|
2110
|
-
|
|
2111
|
-
// verify required parameter 'dynamicVoucherID' is not null or undefined
|
|
2112
|
-
if (dynamicVoucherID === null || dynamicVoucherID === undefined) {
|
|
2113
|
-
throw new Error('Required parameter dynamicVoucherID was null or undefined when calling scheduleDynamicVoucher.');
|
|
2114
|
-
}
|
|
2115
|
-
|
|
2116
|
-
// verify required parameter 'wTEmployeeScheduleSimpleSMS' is not null or undefined
|
|
2117
|
-
if (wTEmployeeScheduleSimpleSMS === null || wTEmployeeScheduleSimpleSMS === undefined) {
|
|
2118
|
-
throw new Error('Required parameter wTEmployeeScheduleSimpleSMS was null or undefined when calling scheduleDynamicVoucher.');
|
|
2119
|
-
}
|
|
2120
|
-
|
|
2121
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
2122
|
-
|
|
2123
|
-
let localVarUseFormData = false;
|
|
2124
|
-
|
|
2125
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
2126
|
-
method: 'POST',
|
|
2127
|
-
qs: localVarQueryParameters,
|
|
2128
|
-
headers: localVarHeaderParams,
|
|
2129
|
-
uri: localVarPath,
|
|
2130
|
-
useQuerystring: this._useQuerystring,
|
|
2131
|
-
json: true,
|
|
2132
|
-
body: ObjectSerializer.serialize(wTEmployeeScheduleSimpleSMS, "WTEmployeeScheduleSimpleSMS")
|
|
2133
|
-
};
|
|
2134
|
-
|
|
2135
|
-
let authenticationPromise = Promise.resolve();
|
|
2136
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2137
|
-
|
|
2138
|
-
let interceptorPromise = authenticationPromise;
|
|
2139
|
-
for (const interceptor of this.interceptors) {
|
|
2140
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
2141
|
-
}
|
|
2142
|
-
|
|
2143
|
-
return interceptorPromise.then(() => {
|
|
2144
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2145
|
-
if (localVarUseFormData) {
|
|
2146
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
2147
|
-
} else {
|
|
2148
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2149
|
-
}
|
|
2150
|
-
}
|
|
2151
|
-
return new Promise<{ response: http.IncomingMessage; body: DynamicVoucherBroadcast; }>((resolve, reject) => {
|
|
2152
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2153
|
-
if (error) {
|
|
2154
|
-
reject(error);
|
|
2155
|
-
} else {
|
|
2156
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2157
|
-
body = ObjectSerializer.deserialize(body, "DynamicVoucherBroadcast");
|
|
2158
|
-
resolve({ response: response, body: body });
|
|
2159
|
-
} else {
|
|
2160
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
2161
|
-
}
|
|
2162
|
-
}
|
|
2163
|
-
});
|
|
2164
|
-
});
|
|
2165
|
-
});
|
|
2166
|
-
}
|
|
2167
|
-
/**
|
|
2168
|
-
*
|
|
2169
|
-
* @summary Schedule Dyanamic Voucher to recipient
|
|
2170
|
-
* @param dynamicVoucherID
|
|
2171
|
-
* @param wTEmployeeScheduleSimpleSMSToRecipient
|
|
2172
|
-
*/
|
|
2173
|
-
public async scheduleDynamicVoucherToRecipient (dynamicVoucherID: string, wTEmployeeScheduleSimpleSMSToRecipient: WTEmployeeScheduleSimpleSMSToRecipient, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: DynamicVoucherBroadcast; }> {
|
|
2174
|
-
const localVarPath = this.basePath + '/v2/employee/sms/schedule/recipient/dynamicVoucher/{dynamicVoucherID}'
|
|
2175
|
-
.replace('{' + 'dynamicVoucherID' + '}', encodeURIComponent(String(dynamicVoucherID)));
|
|
2176
|
-
let localVarQueryParameters: any = {};
|
|
2177
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
2178
|
-
const produces = ['application/json'];
|
|
2179
|
-
// give precedence to 'application/json'
|
|
2180
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2181
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2182
|
-
} else {
|
|
2183
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
2184
|
-
}
|
|
2185
|
-
let localVarFormParams: any = {};
|
|
2186
|
-
|
|
2187
|
-
// verify required parameter 'dynamicVoucherID' is not null or undefined
|
|
2188
|
-
if (dynamicVoucherID === null || dynamicVoucherID === undefined) {
|
|
2189
|
-
throw new Error('Required parameter dynamicVoucherID was null or undefined when calling scheduleDynamicVoucherToRecipient.');
|
|
2190
|
-
}
|
|
2191
|
-
|
|
2192
|
-
// verify required parameter 'wTEmployeeScheduleSimpleSMSToRecipient' is not null or undefined
|
|
2193
|
-
if (wTEmployeeScheduleSimpleSMSToRecipient === null || wTEmployeeScheduleSimpleSMSToRecipient === undefined) {
|
|
2194
|
-
throw new Error('Required parameter wTEmployeeScheduleSimpleSMSToRecipient was null or undefined when calling scheduleDynamicVoucherToRecipient.');
|
|
2195
|
-
}
|
|
2196
|
-
|
|
2197
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
2198
|
-
|
|
2199
|
-
let localVarUseFormData = false;
|
|
2200
|
-
|
|
2201
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
2202
|
-
method: 'POST',
|
|
2203
|
-
qs: localVarQueryParameters,
|
|
2204
|
-
headers: localVarHeaderParams,
|
|
2205
|
-
uri: localVarPath,
|
|
2206
|
-
useQuerystring: this._useQuerystring,
|
|
2207
|
-
json: true,
|
|
2208
|
-
body: ObjectSerializer.serialize(wTEmployeeScheduleSimpleSMSToRecipient, "WTEmployeeScheduleSimpleSMSToRecipient")
|
|
2209
|
-
};
|
|
2210
|
-
|
|
2211
|
-
let authenticationPromise = Promise.resolve();
|
|
2212
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2213
|
-
|
|
2214
|
-
let interceptorPromise = authenticationPromise;
|
|
2215
|
-
for (const interceptor of this.interceptors) {
|
|
2216
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
2217
|
-
}
|
|
2218
|
-
|
|
2219
|
-
return interceptorPromise.then(() => {
|
|
2220
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2221
|
-
if (localVarUseFormData) {
|
|
2222
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
2223
|
-
} else {
|
|
2224
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2225
|
-
}
|
|
2226
|
-
}
|
|
2227
|
-
return new Promise<{ response: http.IncomingMessage; body: DynamicVoucherBroadcast; }>((resolve, reject) => {
|
|
2228
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2229
|
-
if (error) {
|
|
2230
|
-
reject(error);
|
|
2231
|
-
} else {
|
|
2232
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2233
|
-
body = ObjectSerializer.deserialize(body, "DynamicVoucherBroadcast");
|
|
2234
|
-
resolve({ response: response, body: body });
|
|
2235
|
-
} else {
|
|
2236
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
2237
|
-
}
|
|
2238
|
-
}
|
|
2239
|
-
});
|
|
2240
|
-
});
|
|
2241
|
-
});
|
|
2242
|
-
}
|
|
2243
|
-
/**
|
|
2244
|
-
*
|
|
2245
|
-
* @summary Schedule Simple SMS broadcast to list
|
|
2246
|
-
* @param wTEmployeeScheduleSimpleSMS
|
|
2247
|
-
*/
|
|
2248
|
-
public async scheduleSimpleSMS (wTEmployeeScheduleSimpleSMS: WTEmployeeScheduleSimpleSMS, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: boolean; }> {
|
|
2249
|
-
const localVarPath = this.basePath + '/v2/employee/sms/schedule/simple';
|
|
2250
|
-
let localVarQueryParameters: any = {};
|
|
2251
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
2252
|
-
const produces = ['application/json'];
|
|
2253
|
-
// give precedence to 'application/json'
|
|
2254
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2255
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2256
|
-
} else {
|
|
2257
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
2258
|
-
}
|
|
2259
|
-
let localVarFormParams: any = {};
|
|
2260
|
-
|
|
2261
|
-
// verify required parameter 'wTEmployeeScheduleSimpleSMS' is not null or undefined
|
|
2262
|
-
if (wTEmployeeScheduleSimpleSMS === null || wTEmployeeScheduleSimpleSMS === undefined) {
|
|
2263
|
-
throw new Error('Required parameter wTEmployeeScheduleSimpleSMS was null or undefined when calling scheduleSimpleSMS.');
|
|
2264
|
-
}
|
|
2265
|
-
|
|
2266
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
2267
|
-
|
|
2268
|
-
let localVarUseFormData = false;
|
|
2269
|
-
|
|
2270
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
2271
|
-
method: 'POST',
|
|
2272
|
-
qs: localVarQueryParameters,
|
|
2273
|
-
headers: localVarHeaderParams,
|
|
2274
|
-
uri: localVarPath,
|
|
2275
|
-
useQuerystring: this._useQuerystring,
|
|
2276
|
-
json: true,
|
|
2277
|
-
body: ObjectSerializer.serialize(wTEmployeeScheduleSimpleSMS, "WTEmployeeScheduleSimpleSMS")
|
|
2278
|
-
};
|
|
2279
|
-
|
|
2280
|
-
let authenticationPromise = Promise.resolve();
|
|
2281
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2282
|
-
|
|
2283
|
-
let interceptorPromise = authenticationPromise;
|
|
2284
|
-
for (const interceptor of this.interceptors) {
|
|
2285
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
2286
|
-
}
|
|
2287
|
-
|
|
2288
|
-
return interceptorPromise.then(() => {
|
|
2289
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2290
|
-
if (localVarUseFormData) {
|
|
2291
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
2292
|
-
} else {
|
|
2293
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2294
|
-
}
|
|
2295
|
-
}
|
|
2296
|
-
return new Promise<{ response: http.IncomingMessage; body: boolean; }>((resolve, reject) => {
|
|
2297
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2298
|
-
if (error) {
|
|
2299
|
-
reject(error);
|
|
2300
|
-
} else {
|
|
2301
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2302
|
-
body = ObjectSerializer.deserialize(body, "boolean");
|
|
2303
|
-
resolve({ response: response, body: body });
|
|
2304
|
-
} else {
|
|
2305
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
2306
|
-
}
|
|
2307
|
-
}
|
|
2308
|
-
});
|
|
2309
|
-
});
|
|
2310
|
-
});
|
|
2311
|
-
}
|
|
2312
|
-
/**
|
|
2313
|
-
*
|
|
2314
|
-
* @summary Schedule Simple SMS broadcast to recipient
|
|
2315
|
-
* @param wTEmployeeScheduleSimpleSMSToRecipient
|
|
2316
|
-
*/
|
|
2317
|
-
public async scheduleSimpleSMSToRecipient (wTEmployeeScheduleSimpleSMSToRecipient: WTEmployeeScheduleSimpleSMSToRecipient, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: boolean; }> {
|
|
2318
|
-
const localVarPath = this.basePath + '/v2/employee/sms/schedule/recipient/simple';
|
|
2319
|
-
let localVarQueryParameters: any = {};
|
|
2320
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
2321
|
-
const produces = ['application/json'];
|
|
2322
|
-
// give precedence to 'application/json'
|
|
2323
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2324
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2325
|
-
} else {
|
|
2326
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
2327
|
-
}
|
|
2328
|
-
let localVarFormParams: any = {};
|
|
2329
|
-
|
|
2330
|
-
// verify required parameter 'wTEmployeeScheduleSimpleSMSToRecipient' is not null or undefined
|
|
2331
|
-
if (wTEmployeeScheduleSimpleSMSToRecipient === null || wTEmployeeScheduleSimpleSMSToRecipient === undefined) {
|
|
2332
|
-
throw new Error('Required parameter wTEmployeeScheduleSimpleSMSToRecipient was null or undefined when calling scheduleSimpleSMSToRecipient.');
|
|
2333
|
-
}
|
|
2334
|
-
|
|
2335
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
2336
|
-
|
|
2337
|
-
let localVarUseFormData = false;
|
|
2338
|
-
|
|
2339
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
2340
|
-
method: 'POST',
|
|
2341
|
-
qs: localVarQueryParameters,
|
|
2342
|
-
headers: localVarHeaderParams,
|
|
2343
|
-
uri: localVarPath,
|
|
2344
|
-
useQuerystring: this._useQuerystring,
|
|
2345
|
-
json: true,
|
|
2346
|
-
body: ObjectSerializer.serialize(wTEmployeeScheduleSimpleSMSToRecipient, "WTEmployeeScheduleSimpleSMSToRecipient")
|
|
2347
|
-
};
|
|
2348
|
-
|
|
2349
|
-
let authenticationPromise = Promise.resolve();
|
|
2350
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2351
|
-
|
|
2352
|
-
let interceptorPromise = authenticationPromise;
|
|
2353
|
-
for (const interceptor of this.interceptors) {
|
|
2354
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
2355
|
-
}
|
|
2356
|
-
|
|
2357
|
-
return interceptorPromise.then(() => {
|
|
2358
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2359
|
-
if (localVarUseFormData) {
|
|
2360
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
2361
|
-
} else {
|
|
2362
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2363
|
-
}
|
|
2364
|
-
}
|
|
2365
|
-
return new Promise<{ response: http.IncomingMessage; body: boolean; }>((resolve, reject) => {
|
|
2366
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2367
|
-
if (error) {
|
|
2368
|
-
reject(error);
|
|
2369
|
-
} else {
|
|
2370
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2371
|
-
body = ObjectSerializer.deserialize(body, "boolean");
|
|
2372
|
-
resolve({ response: response, body: body });
|
|
2373
|
-
} else {
|
|
2374
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
2375
|
-
}
|
|
2376
|
-
}
|
|
2377
|
-
});
|
|
2378
|
-
});
|
|
2379
|
-
});
|
|
2380
|
-
}
|
|
2381
|
-
/**
|
|
2382
|
-
*
|
|
2383
|
-
* @summary Send help desk response
|
|
2384
|
-
* @param wTEmployeeSendHelpDeskResponse
|
|
2385
|
-
*/
|
|
2386
|
-
public async sendHelpDeskResponse (wTEmployeeSendHelpDeskResponse: WTEmployeeSendHelpDeskResponse, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: OutboundSMS; }> {
|
|
2387
|
-
const localVarPath = this.basePath + '/v2/employee/helpDesk/response';
|
|
2388
|
-
let localVarQueryParameters: any = {};
|
|
2389
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
2390
|
-
const produces = ['application/json'];
|
|
2391
|
-
// give precedence to 'application/json'
|
|
2392
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2393
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2394
|
-
} else {
|
|
2395
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
2396
|
-
}
|
|
2397
|
-
let localVarFormParams: any = {};
|
|
2398
|
-
|
|
2399
|
-
// verify required parameter 'wTEmployeeSendHelpDeskResponse' is not null or undefined
|
|
2400
|
-
if (wTEmployeeSendHelpDeskResponse === null || wTEmployeeSendHelpDeskResponse === undefined) {
|
|
2401
|
-
throw new Error('Required parameter wTEmployeeSendHelpDeskResponse was null or undefined when calling sendHelpDeskResponse.');
|
|
2402
|
-
}
|
|
2403
|
-
|
|
2404
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
2405
|
-
|
|
2406
|
-
let localVarUseFormData = false;
|
|
2407
|
-
|
|
2408
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
2409
|
-
method: 'POST',
|
|
2410
|
-
qs: localVarQueryParameters,
|
|
2411
|
-
headers: localVarHeaderParams,
|
|
2412
|
-
uri: localVarPath,
|
|
2413
|
-
useQuerystring: this._useQuerystring,
|
|
2414
|
-
json: true,
|
|
2415
|
-
body: ObjectSerializer.serialize(wTEmployeeSendHelpDeskResponse, "WTEmployeeSendHelpDeskResponse")
|
|
2416
|
-
};
|
|
2417
|
-
|
|
2418
|
-
let authenticationPromise = Promise.resolve();
|
|
2419
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2420
|
-
|
|
2421
|
-
let interceptorPromise = authenticationPromise;
|
|
2422
|
-
for (const interceptor of this.interceptors) {
|
|
2423
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
2424
|
-
}
|
|
2425
|
-
|
|
2426
|
-
return interceptorPromise.then(() => {
|
|
2427
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2428
|
-
if (localVarUseFormData) {
|
|
2429
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
2430
|
-
} else {
|
|
2431
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2432
|
-
}
|
|
2433
|
-
}
|
|
2434
|
-
return new Promise<{ response: http.IncomingMessage; body: OutboundSMS; }>((resolve, reject) => {
|
|
2435
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2436
|
-
if (error) {
|
|
2437
|
-
reject(error);
|
|
2438
|
-
} else {
|
|
2439
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2440
|
-
body = ObjectSerializer.deserialize(body, "OutboundSMS");
|
|
2441
|
-
resolve({ response: response, body: body });
|
|
2442
|
-
} else {
|
|
2443
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
2444
|
-
}
|
|
2445
|
-
}
|
|
2446
|
-
});
|
|
2447
|
-
});
|
|
2448
|
-
});
|
|
2449
|
-
}
|
|
2450
|
-
/**
|
|
2451
|
-
*
|
|
2452
|
-
* @summary Schedule SMS Campaign Broadcast
|
|
2453
|
-
* @param staticVoucherCampaignID
|
|
2454
|
-
* @param wTEmployeeScheduleSMSCampaignBroadcast
|
|
2455
|
-
*/
|
|
2456
|
-
public async sendSmsCampaignBroadcast (staticVoucherCampaignID: string, wTEmployeeScheduleSMSCampaignBroadcast: WTEmployeeScheduleSMSCampaignBroadcast, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: StaticVoucherCampaignBroadcast; }> {
|
|
2457
|
-
const localVarPath = this.basePath + '/v2/employee/sms/schedule/campaign/{staticVoucherCampaignID}'
|
|
2458
|
-
.replace('{' + 'staticVoucherCampaignID' + '}', encodeURIComponent(String(staticVoucherCampaignID)));
|
|
2459
|
-
let localVarQueryParameters: any = {};
|
|
2460
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
2461
|
-
const produces = ['application/json'];
|
|
2462
|
-
// give precedence to 'application/json'
|
|
2463
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2464
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2465
|
-
} else {
|
|
2466
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
2467
|
-
}
|
|
2468
|
-
let localVarFormParams: any = {};
|
|
2469
|
-
|
|
2470
|
-
// verify required parameter 'staticVoucherCampaignID' is not null or undefined
|
|
2471
|
-
if (staticVoucherCampaignID === null || staticVoucherCampaignID === undefined) {
|
|
2472
|
-
throw new Error('Required parameter staticVoucherCampaignID was null or undefined when calling sendSmsCampaignBroadcast.');
|
|
2473
|
-
}
|
|
2474
|
-
|
|
2475
|
-
// verify required parameter 'wTEmployeeScheduleSMSCampaignBroadcast' is not null or undefined
|
|
2476
|
-
if (wTEmployeeScheduleSMSCampaignBroadcast === null || wTEmployeeScheduleSMSCampaignBroadcast === undefined) {
|
|
2477
|
-
throw new Error('Required parameter wTEmployeeScheduleSMSCampaignBroadcast was null or undefined when calling sendSmsCampaignBroadcast.');
|
|
2478
|
-
}
|
|
2479
|
-
|
|
2480
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
2481
|
-
|
|
2482
|
-
let localVarUseFormData = false;
|
|
2483
|
-
|
|
2484
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
2485
|
-
method: 'POST',
|
|
2486
|
-
qs: localVarQueryParameters,
|
|
2487
|
-
headers: localVarHeaderParams,
|
|
2488
|
-
uri: localVarPath,
|
|
2489
|
-
useQuerystring: this._useQuerystring,
|
|
2490
|
-
json: true,
|
|
2491
|
-
body: ObjectSerializer.serialize(wTEmployeeScheduleSMSCampaignBroadcast, "WTEmployeeScheduleSMSCampaignBroadcast")
|
|
2492
|
-
};
|
|
2493
|
-
|
|
2494
|
-
let authenticationPromise = Promise.resolve();
|
|
2495
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2496
|
-
|
|
2497
|
-
let interceptorPromise = authenticationPromise;
|
|
2498
|
-
for (const interceptor of this.interceptors) {
|
|
2499
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
2500
|
-
}
|
|
2501
|
-
|
|
2502
|
-
return interceptorPromise.then(() => {
|
|
2503
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2504
|
-
if (localVarUseFormData) {
|
|
2505
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
2506
|
-
} else {
|
|
2507
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2508
|
-
}
|
|
2509
|
-
}
|
|
2510
|
-
return new Promise<{ response: http.IncomingMessage; body: StaticVoucherCampaignBroadcast; }>((resolve, reject) => {
|
|
2511
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2512
|
-
if (error) {
|
|
2513
|
-
reject(error);
|
|
2514
|
-
} else {
|
|
2515
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2516
|
-
body = ObjectSerializer.deserialize(body, "StaticVoucherCampaignBroadcast");
|
|
2517
|
-
resolve({ response: response, body: body });
|
|
2518
|
-
} else {
|
|
2519
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
2520
|
-
}
|
|
2521
|
-
}
|
|
2522
|
-
});
|
|
2523
|
-
});
|
|
2524
|
-
});
|
|
2525
|
-
}
|
|
2526
|
-
/**
|
|
2527
|
-
*
|
|
2528
|
-
* @summary Mark alerts as read
|
|
2529
|
-
*/
|
|
2530
|
-
public async setAlertsRead (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: boolean; }> {
|
|
2531
|
-
const localVarPath = this.basePath + '/v2/employee/alerts';
|
|
2532
|
-
let localVarQueryParameters: any = {};
|
|
2533
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
2534
|
-
const produces = ['application/json'];
|
|
2535
|
-
// give precedence to 'application/json'
|
|
2536
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2537
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2538
|
-
} else {
|
|
2539
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
2540
|
-
}
|
|
2541
|
-
let localVarFormParams: any = {};
|
|
2542
|
-
|
|
2543
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
2544
|
-
|
|
2545
|
-
let localVarUseFormData = false;
|
|
2546
|
-
|
|
2547
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
2548
|
-
method: 'PATCH',
|
|
2549
|
-
qs: localVarQueryParameters,
|
|
2550
|
-
headers: localVarHeaderParams,
|
|
2551
|
-
uri: localVarPath,
|
|
2552
|
-
useQuerystring: this._useQuerystring,
|
|
2553
|
-
json: true,
|
|
2554
|
-
};
|
|
2555
|
-
|
|
2556
|
-
let authenticationPromise = Promise.resolve();
|
|
2557
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2558
|
-
|
|
2559
|
-
let interceptorPromise = authenticationPromise;
|
|
2560
|
-
for (const interceptor of this.interceptors) {
|
|
2561
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
2562
|
-
}
|
|
2563
|
-
|
|
2564
|
-
return interceptorPromise.then(() => {
|
|
2565
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2566
|
-
if (localVarUseFormData) {
|
|
2567
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
2568
|
-
} else {
|
|
2569
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2570
|
-
}
|
|
2571
|
-
}
|
|
2572
|
-
return new Promise<{ response: http.IncomingMessage; body: boolean; }>((resolve, reject) => {
|
|
2573
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2574
|
-
if (error) {
|
|
2575
|
-
reject(error);
|
|
2576
|
-
} else {
|
|
2577
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2578
|
-
body = ObjectSerializer.deserialize(body, "boolean");
|
|
2579
|
-
resolve({ response: response, body: body });
|
|
2580
|
-
} else {
|
|
2581
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
2582
|
-
}
|
|
2583
|
-
}
|
|
2584
|
-
});
|
|
2585
|
-
});
|
|
2586
|
-
});
|
|
2587
|
-
}
|
|
2588
|
-
/**
|
|
2589
|
-
*
|
|
2590
|
-
* @summary Mark export data files as read
|
|
2591
|
-
*/
|
|
2592
|
-
public async setExportDataFilesRead (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: boolean; }> {
|
|
2593
|
-
const localVarPath = this.basePath + '/v2/employee/export/dataFiles';
|
|
2594
|
-
let localVarQueryParameters: any = {};
|
|
2595
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
2596
|
-
const produces = ['application/json'];
|
|
2597
|
-
// give precedence to 'application/json'
|
|
2598
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2599
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2600
|
-
} else {
|
|
2601
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
2602
|
-
}
|
|
2603
|
-
let localVarFormParams: any = {};
|
|
2604
|
-
|
|
2605
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
2606
|
-
|
|
2607
|
-
let localVarUseFormData = false;
|
|
2608
|
-
|
|
2609
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
2610
|
-
method: 'PUT',
|
|
2611
|
-
qs: localVarQueryParameters,
|
|
2612
|
-
headers: localVarHeaderParams,
|
|
2613
|
-
uri: localVarPath,
|
|
2614
|
-
useQuerystring: this._useQuerystring,
|
|
2615
|
-
json: true,
|
|
2616
|
-
};
|
|
2617
|
-
|
|
2618
|
-
let authenticationPromise = Promise.resolve();
|
|
2619
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2620
|
-
|
|
2621
|
-
let interceptorPromise = authenticationPromise;
|
|
2622
|
-
for (const interceptor of this.interceptors) {
|
|
2623
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
2624
|
-
}
|
|
2625
|
-
|
|
2626
|
-
return interceptorPromise.then(() => {
|
|
2627
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2628
|
-
if (localVarUseFormData) {
|
|
2629
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
2630
|
-
} else {
|
|
2631
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2632
|
-
}
|
|
2633
|
-
}
|
|
2634
|
-
return new Promise<{ response: http.IncomingMessage; body: boolean; }>((resolve, reject) => {
|
|
2635
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2636
|
-
if (error) {
|
|
2637
|
-
reject(error);
|
|
2638
|
-
} else {
|
|
2639
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2640
|
-
body = ObjectSerializer.deserialize(body, "boolean");
|
|
2641
|
-
resolve({ response: response, body: body });
|
|
2642
|
-
} else {
|
|
2643
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
2644
|
-
}
|
|
2645
|
-
}
|
|
2646
|
-
});
|
|
2647
|
-
});
|
|
2648
|
-
});
|
|
2649
|
-
}
|
|
2650
|
-
/**
|
|
2651
|
-
*
|
|
2652
|
-
* @summary Resolve help desk request
|
|
2653
|
-
* @param helpDeskRequestID
|
|
2654
|
-
*/
|
|
2655
|
-
public async setHelpDeskRequestResolved (helpDeskRequestID: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: HelpDeskRequest; }> {
|
|
2656
|
-
const localVarPath = this.basePath + '/v2/employee/helpDesk/request/{helpDeskRequestID}'
|
|
2657
|
-
.replace('{' + 'helpDeskRequestID' + '}', encodeURIComponent(String(helpDeskRequestID)));
|
|
2658
|
-
let localVarQueryParameters: any = {};
|
|
2659
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
2660
|
-
const produces = ['application/json'];
|
|
2661
|
-
// give precedence to 'application/json'
|
|
2662
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2663
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2664
|
-
} else {
|
|
2665
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
2666
|
-
}
|
|
2667
|
-
let localVarFormParams: any = {};
|
|
2668
|
-
|
|
2669
|
-
// verify required parameter 'helpDeskRequestID' is not null or undefined
|
|
2670
|
-
if (helpDeskRequestID === null || helpDeskRequestID === undefined) {
|
|
2671
|
-
throw new Error('Required parameter helpDeskRequestID was null or undefined when calling setHelpDeskRequestResolved.');
|
|
2672
|
-
}
|
|
2673
|
-
|
|
2674
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
2675
|
-
|
|
2676
|
-
let localVarUseFormData = false;
|
|
2677
|
-
|
|
2678
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
2679
|
-
method: 'PATCH',
|
|
2680
|
-
qs: localVarQueryParameters,
|
|
2681
|
-
headers: localVarHeaderParams,
|
|
2682
|
-
uri: localVarPath,
|
|
2683
|
-
useQuerystring: this._useQuerystring,
|
|
2684
|
-
json: true,
|
|
2685
|
-
};
|
|
2686
|
-
|
|
2687
|
-
let authenticationPromise = Promise.resolve();
|
|
2688
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2689
|
-
|
|
2690
|
-
let interceptorPromise = authenticationPromise;
|
|
2691
|
-
for (const interceptor of this.interceptors) {
|
|
2692
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
2693
|
-
}
|
|
2694
|
-
|
|
2695
|
-
return interceptorPromise.then(() => {
|
|
2696
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2697
|
-
if (localVarUseFormData) {
|
|
2698
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
2699
|
-
} else {
|
|
2700
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2701
|
-
}
|
|
2702
|
-
}
|
|
2703
|
-
return new Promise<{ response: http.IncomingMessage; body: HelpDeskRequest; }>((resolve, reject) => {
|
|
2704
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2705
|
-
if (error) {
|
|
2706
|
-
reject(error);
|
|
2707
|
-
} else {
|
|
2708
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2709
|
-
body = ObjectSerializer.deserialize(body, "HelpDeskRequest");
|
|
2710
|
-
resolve({ response: response, body: body });
|
|
2711
|
-
} else {
|
|
2712
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
2713
|
-
}
|
|
2714
|
-
}
|
|
2715
|
-
});
|
|
2716
|
-
});
|
|
2717
|
-
});
|
|
2718
|
-
}
|
|
2719
|
-
/**
|
|
2720
|
-
*
|
|
2721
|
-
* @summary Mark messages as read
|
|
2722
|
-
*/
|
|
2723
|
-
public async setMessagesRead (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: boolean; }> {
|
|
2724
|
-
const localVarPath = this.basePath + '/v2/employee/messages';
|
|
2725
|
-
let localVarQueryParameters: any = {};
|
|
2726
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
2727
|
-
const produces = ['application/json'];
|
|
2728
|
-
// give precedence to 'application/json'
|
|
2729
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2730
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2731
|
-
} else {
|
|
2732
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
2733
|
-
}
|
|
2734
|
-
let localVarFormParams: any = {};
|
|
2735
|
-
|
|
2736
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
2737
|
-
|
|
2738
|
-
let localVarUseFormData = false;
|
|
2739
|
-
|
|
2740
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
2741
|
-
method: 'PATCH',
|
|
2742
|
-
qs: localVarQueryParameters,
|
|
2743
|
-
headers: localVarHeaderParams,
|
|
2744
|
-
uri: localVarPath,
|
|
2745
|
-
useQuerystring: this._useQuerystring,
|
|
2746
|
-
json: true,
|
|
2747
|
-
};
|
|
2748
|
-
|
|
2749
|
-
let authenticationPromise = Promise.resolve();
|
|
2750
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2751
|
-
|
|
2752
|
-
let interceptorPromise = authenticationPromise;
|
|
2753
|
-
for (const interceptor of this.interceptors) {
|
|
2754
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
2755
|
-
}
|
|
2756
|
-
|
|
2757
|
-
return interceptorPromise.then(() => {
|
|
2758
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2759
|
-
if (localVarUseFormData) {
|
|
2760
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
2761
|
-
} else {
|
|
2762
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2763
|
-
}
|
|
2764
|
-
}
|
|
2765
|
-
return new Promise<{ response: http.IncomingMessage; body: boolean; }>((resolve, reject) => {
|
|
2766
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2767
|
-
if (error) {
|
|
2768
|
-
reject(error);
|
|
2769
|
-
} else {
|
|
2770
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2771
|
-
body = ObjectSerializer.deserialize(body, "boolean");
|
|
2772
|
-
resolve({ response: response, body: body });
|
|
2773
|
-
} else {
|
|
2774
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
2775
|
-
}
|
|
2776
|
-
}
|
|
2777
|
-
});
|
|
2778
|
-
});
|
|
2779
|
-
});
|
|
2780
|
-
}
|
|
2781
|
-
/**
|
|
2782
|
-
*
|
|
2783
|
-
* @summary Set profile picture
|
|
2784
|
-
* @param wTEmployeeCreateMediaFile
|
|
2785
|
-
*/
|
|
2786
|
-
public async setProfilePicture (wTEmployeeCreateMediaFile: WTEmployeeCreateMediaFile, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: string; }> {
|
|
2787
|
-
const localVarPath = this.basePath + '/v2/employee/profile/picture';
|
|
2788
|
-
let localVarQueryParameters: any = {};
|
|
2789
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
2790
|
-
const produces = ['application/json'];
|
|
2791
|
-
// give precedence to 'application/json'
|
|
2792
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2793
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2794
|
-
} else {
|
|
2795
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
2796
|
-
}
|
|
2797
|
-
let localVarFormParams: any = {};
|
|
2798
|
-
|
|
2799
|
-
// verify required parameter 'wTEmployeeCreateMediaFile' is not null or undefined
|
|
2800
|
-
if (wTEmployeeCreateMediaFile === null || wTEmployeeCreateMediaFile === undefined) {
|
|
2801
|
-
throw new Error('Required parameter wTEmployeeCreateMediaFile was null or undefined when calling setProfilePicture.');
|
|
2802
|
-
}
|
|
2803
|
-
|
|
2804
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
2805
|
-
|
|
2806
|
-
let localVarUseFormData = false;
|
|
2807
|
-
|
|
2808
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
2809
|
-
method: 'PUT',
|
|
2810
|
-
qs: localVarQueryParameters,
|
|
2811
|
-
headers: localVarHeaderParams,
|
|
2812
|
-
uri: localVarPath,
|
|
2813
|
-
useQuerystring: this._useQuerystring,
|
|
2814
|
-
json: true,
|
|
2815
|
-
body: ObjectSerializer.serialize(wTEmployeeCreateMediaFile, "WTEmployeeCreateMediaFile")
|
|
2816
|
-
};
|
|
2817
|
-
|
|
2818
|
-
let authenticationPromise = Promise.resolve();
|
|
2819
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2820
|
-
|
|
2821
|
-
let interceptorPromise = authenticationPromise;
|
|
2822
|
-
for (const interceptor of this.interceptors) {
|
|
2823
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
2824
|
-
}
|
|
2825
|
-
|
|
2826
|
-
return interceptorPromise.then(() => {
|
|
2827
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2828
|
-
if (localVarUseFormData) {
|
|
2829
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
2830
|
-
} else {
|
|
2831
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2832
|
-
}
|
|
2833
|
-
}
|
|
2834
|
-
return new Promise<{ response: http.IncomingMessage; body: string; }>((resolve, reject) => {
|
|
2835
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2836
|
-
if (error) {
|
|
2837
|
-
reject(error);
|
|
2838
|
-
} else {
|
|
2839
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2840
|
-
body = ObjectSerializer.deserialize(body, "string");
|
|
2841
|
-
resolve({ response: response, body: body });
|
|
2842
|
-
} else {
|
|
2843
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
2844
|
-
}
|
|
2845
|
-
}
|
|
2846
|
-
});
|
|
2847
|
-
});
|
|
2848
|
-
});
|
|
2849
|
-
}
|
|
2850
|
-
/**
|
|
2851
|
-
*
|
|
2852
|
-
* @summary Update club members
|
|
2853
|
-
* @param wTEmployeeUpdateRecords
|
|
2854
|
-
*/
|
|
2855
|
-
public async updateClubMembers (wTEmployeeUpdateRecords: WTEmployeeUpdateRecords, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: string; }> {
|
|
2856
|
-
const localVarPath = this.basePath + '/v2/employee/update/members';
|
|
2857
|
-
let localVarQueryParameters: any = {};
|
|
2858
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
2859
|
-
const produces = ['application/json'];
|
|
2860
|
-
// give precedence to 'application/json'
|
|
2861
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2862
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2863
|
-
} else {
|
|
2864
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
2865
|
-
}
|
|
2866
|
-
let localVarFormParams: any = {};
|
|
2867
|
-
|
|
2868
|
-
// verify required parameter 'wTEmployeeUpdateRecords' is not null or undefined
|
|
2869
|
-
if (wTEmployeeUpdateRecords === null || wTEmployeeUpdateRecords === undefined) {
|
|
2870
|
-
throw new Error('Required parameter wTEmployeeUpdateRecords was null or undefined when calling updateClubMembers.');
|
|
2871
|
-
}
|
|
2872
|
-
|
|
2873
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
2874
|
-
|
|
2875
|
-
let localVarUseFormData = false;
|
|
2876
|
-
|
|
2877
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
2878
|
-
method: 'PUT',
|
|
2879
|
-
qs: localVarQueryParameters,
|
|
2880
|
-
headers: localVarHeaderParams,
|
|
2881
|
-
uri: localVarPath,
|
|
2882
|
-
useQuerystring: this._useQuerystring,
|
|
2883
|
-
json: true,
|
|
2884
|
-
body: ObjectSerializer.serialize(wTEmployeeUpdateRecords, "WTEmployeeUpdateRecords")
|
|
2885
|
-
};
|
|
2886
|
-
|
|
2887
|
-
let authenticationPromise = Promise.resolve();
|
|
2888
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2889
|
-
|
|
2890
|
-
let interceptorPromise = authenticationPromise;
|
|
2891
|
-
for (const interceptor of this.interceptors) {
|
|
2892
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
2893
|
-
}
|
|
2894
|
-
|
|
2895
|
-
return interceptorPromise.then(() => {
|
|
2896
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2897
|
-
if (localVarUseFormData) {
|
|
2898
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
2899
|
-
} else {
|
|
2900
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2901
|
-
}
|
|
2902
|
-
}
|
|
2903
|
-
return new Promise<{ response: http.IncomingMessage; body: string; }>((resolve, reject) => {
|
|
2904
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2905
|
-
if (error) {
|
|
2906
|
-
reject(error);
|
|
2907
|
-
} else {
|
|
2908
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2909
|
-
body = ObjectSerializer.deserialize(body, "string");
|
|
2910
|
-
resolve({ response: response, body: body });
|
|
2911
|
-
} else {
|
|
2912
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
2913
|
-
}
|
|
2914
|
-
}
|
|
2915
|
-
});
|
|
2916
|
-
});
|
|
2917
|
-
});
|
|
2918
|
-
}
|
|
2919
|
-
/**
|
|
2920
|
-
*
|
|
2921
|
-
* @summary Changes the employee\'s email notification preference to enabled or disabled
|
|
2922
|
-
* @param updateEmailNotificationPreferenceRequest
|
|
2923
|
-
*/
|
|
2924
|
-
public async updateEmailNotificationPreference (updateEmailNotificationPreferenceRequest: UpdateEmailNotificationPreferenceRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Employee; }> {
|
|
2925
|
-
const localVarPath = this.basePath + '/v2/employee/emailNotificationPreference';
|
|
2926
|
-
let localVarQueryParameters: any = {};
|
|
2927
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
2928
|
-
const produces = ['application/json'];
|
|
2929
|
-
// give precedence to 'application/json'
|
|
2930
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2931
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2932
|
-
} else {
|
|
2933
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
2934
|
-
}
|
|
2935
|
-
let localVarFormParams: any = {};
|
|
2936
|
-
|
|
2937
|
-
// verify required parameter 'updateEmailNotificationPreferenceRequest' is not null or undefined
|
|
2938
|
-
if (updateEmailNotificationPreferenceRequest === null || updateEmailNotificationPreferenceRequest === undefined) {
|
|
2939
|
-
throw new Error('Required parameter updateEmailNotificationPreferenceRequest was null or undefined when calling updateEmailNotificationPreference.');
|
|
2940
|
-
}
|
|
2941
|
-
|
|
2942
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
2943
|
-
|
|
2944
|
-
let localVarUseFormData = false;
|
|
2945
|
-
|
|
2946
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
2947
|
-
method: 'PUT',
|
|
2948
|
-
qs: localVarQueryParameters,
|
|
2949
|
-
headers: localVarHeaderParams,
|
|
2950
|
-
uri: localVarPath,
|
|
2951
|
-
useQuerystring: this._useQuerystring,
|
|
2952
|
-
json: true,
|
|
2953
|
-
body: ObjectSerializer.serialize(updateEmailNotificationPreferenceRequest, "UpdateEmailNotificationPreferenceRequest")
|
|
2954
|
-
};
|
|
2955
|
-
|
|
2956
|
-
let authenticationPromise = Promise.resolve();
|
|
2957
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2958
|
-
|
|
2959
|
-
let interceptorPromise = authenticationPromise;
|
|
2960
|
-
for (const interceptor of this.interceptors) {
|
|
2961
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
2962
|
-
}
|
|
2963
|
-
|
|
2964
|
-
return interceptorPromise.then(() => {
|
|
2965
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2966
|
-
if (localVarUseFormData) {
|
|
2967
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
2968
|
-
} else {
|
|
2969
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2970
|
-
}
|
|
2971
|
-
}
|
|
2972
|
-
return new Promise<{ response: http.IncomingMessage; body: Employee; }>((resolve, reject) => {
|
|
2973
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2974
|
-
if (error) {
|
|
2975
|
-
reject(error);
|
|
2976
|
-
} else {
|
|
2977
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2978
|
-
body = ObjectSerializer.deserialize(body, "Employee");
|
|
2979
|
-
resolve({ response: response, body: body });
|
|
2980
|
-
} else {
|
|
2981
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
2982
|
-
}
|
|
2983
|
-
}
|
|
2984
|
-
});
|
|
2985
|
-
});
|
|
2986
|
-
});
|
|
2987
|
-
}
|
|
2988
|
-
/**
|
|
2989
|
-
*
|
|
2990
|
-
* @summary Update peer
|
|
2991
|
-
* @param userID
|
|
2992
|
-
* @param wTEmployeeUpdate
|
|
2993
|
-
*/
|
|
2994
|
-
public async updateEmployeePeer (userID: string, wTEmployeeUpdate: WTEmployeeUpdate, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Employee; }> {
|
|
2995
|
-
const localVarPath = this.basePath + '/v2/employee/peer/{userID}'
|
|
2996
|
-
.replace('{' + 'userID' + '}', encodeURIComponent(String(userID)));
|
|
2997
|
-
let localVarQueryParameters: any = {};
|
|
2998
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
2999
|
-
const produces = ['application/json'];
|
|
3000
|
-
// give precedence to 'application/json'
|
|
3001
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
3002
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
3003
|
-
} else {
|
|
3004
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
3005
|
-
}
|
|
3006
|
-
let localVarFormParams: any = {};
|
|
3007
|
-
|
|
3008
|
-
// verify required parameter 'userID' is not null or undefined
|
|
3009
|
-
if (userID === null || userID === undefined) {
|
|
3010
|
-
throw new Error('Required parameter userID was null or undefined when calling updateEmployeePeer.');
|
|
3011
|
-
}
|
|
3012
|
-
|
|
3013
|
-
// verify required parameter 'wTEmployeeUpdate' is not null or undefined
|
|
3014
|
-
if (wTEmployeeUpdate === null || wTEmployeeUpdate === undefined) {
|
|
3015
|
-
throw new Error('Required parameter wTEmployeeUpdate was null or undefined when calling updateEmployeePeer.');
|
|
3016
|
-
}
|
|
3017
|
-
|
|
3018
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
3019
|
-
|
|
3020
|
-
let localVarUseFormData = false;
|
|
3021
|
-
|
|
3022
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
3023
|
-
method: 'PUT',
|
|
3024
|
-
qs: localVarQueryParameters,
|
|
3025
|
-
headers: localVarHeaderParams,
|
|
3026
|
-
uri: localVarPath,
|
|
3027
|
-
useQuerystring: this._useQuerystring,
|
|
3028
|
-
json: true,
|
|
3029
|
-
body: ObjectSerializer.serialize(wTEmployeeUpdate, "WTEmployeeUpdate")
|
|
3030
|
-
};
|
|
3031
|
-
|
|
3032
|
-
let authenticationPromise = Promise.resolve();
|
|
3033
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
3034
|
-
|
|
3035
|
-
let interceptorPromise = authenticationPromise;
|
|
3036
|
-
for (const interceptor of this.interceptors) {
|
|
3037
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
3038
|
-
}
|
|
3039
|
-
|
|
3040
|
-
return interceptorPromise.then(() => {
|
|
3041
|
-
if (Object.keys(localVarFormParams).length) {
|
|
3042
|
-
if (localVarUseFormData) {
|
|
3043
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
3044
|
-
} else {
|
|
3045
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
3046
|
-
}
|
|
3047
|
-
}
|
|
3048
|
-
return new Promise<{ response: http.IncomingMessage; body: Employee; }>((resolve, reject) => {
|
|
3049
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
3050
|
-
if (error) {
|
|
3051
|
-
reject(error);
|
|
3052
|
-
} else {
|
|
3053
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
3054
|
-
body = ObjectSerializer.deserialize(body, "Employee");
|
|
3055
|
-
resolve({ response: response, body: body });
|
|
3056
|
-
} else {
|
|
3057
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
3058
|
-
}
|
|
3059
|
-
}
|
|
3060
|
-
});
|
|
3061
|
-
});
|
|
3062
|
-
});
|
|
3063
|
-
}
|
|
3064
|
-
}
|