wallet 1.1.3 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +309 -309
- package/.openapi-generator-ignore +23 -23
- package/api/advertisementCreditsApi.ts +589 -589
- package/api/analyticsApi.ts +5953 -5953
- package/api/apis.ts +86 -86
- package/api/appleWalletSubscribersApi.ts +235 -235
- package/api/billingApi.ts +680 -680
- package/api/clubMembersPointsApi.ts +798 -798
- package/api/configurationApi.ts +225 -225
- package/api/countriesApi.ts +155 -155
- package/api/customerApi.ts +737 -737
- package/api/dashboardApi.ts +1553 -1553
- package/api/dynamicVouchersApi.ts +603 -603
- package/api/employeeAccessApi.ts +165 -165
- package/api/employeesApi.ts +2933 -2933
- package/api/industriesApi.ts +155 -155
- package/api/infoGenesisReportsApi.ts +2023 -2023
- package/api/integratedTerminalsApi.ts +447 -447
- package/api/interactionsApi.ts +678 -678
- package/api/linkBookApi.ts +447 -447
- package/api/linkBookSectionApi.ts +447 -447
- package/api/loginAndLogoutApi.ts +296 -296
- package/api/membershipTiersApi.ts +729 -729
- package/api/merchantApi.ts +1534 -1534
- package/api/merchantCreditsApi.ts +798 -798
- package/api/merchantURLsApi.ts +586 -586
- package/api/mobileTerminalApi.ts +323 -323
- package/api/newsApi.ts +447 -447
- package/api/paymentDesignsApi.ts +519 -519
- package/api/performancesApi.ts +447 -447
- package/api/promoCodesApi.ts +447 -447
- package/api/sMSApi.ts +1999 -1999
- package/api/settingsApi.ts +220 -220
- package/api/staticVoucherCampaignGroupsApi.ts +165 -165
- package/api/staticVoucherCampaignsApi.ts +1484 -1484
- package/api/staticVouchersApi.ts +535 -535
- package/api/systemApi.ts +604 -604
- package/api/transactionLedgerApi.ts +203 -203
- package/api/utilitiesApi.ts +157 -157
- package/api/webTerminalApi.ts +309 -309
- package/api.ts +2 -2
- package/examples/advertisementcredits.example.ts +50 -50
- package/examples/clubmembers.example.ts +50 -50
- package/examples/linkbook.example.ts +50 -50
- package/examples/membershiptiers.example.ts +49 -49
- package/examples/merchanturls.example.ts +47 -47
- package/examples/news.example.ts +51 -51
- package/examples/paymentdesigns.example.ts +56 -56
- package/git_push.sh +57 -57
- package/model/advertisementCredit.ts +103 -103
- package/model/advertisementCreditBroadcast.ts +154 -154
- package/model/advertisementCreditScan.ts +170 -170
- package/model/agreement.ts +133 -133
- package/model/alert.ts +79 -79
- package/model/announcement.ts +67 -67
- package/model/applicableTerminals.ts +30 -30
- package/model/applicableTerminalsAnyOf.ts +17 -17
- package/model/applicableTerminalsAnyOf1.ts +17 -17
- package/model/applicableTerminalsAnyOf2.ts +17 -17
- package/model/applicableTerminalsAnyOf3.ts +17 -17
- package/model/authError.ts +55 -55
- package/model/availablePhoneNumbersRequest.ts +43 -43
- package/model/clickFunnelAmount.ts +37 -37
- package/model/clickFunnelContact.ts +248 -248
- package/model/clickFunnelContactProfile.ts +235 -235
- package/model/clickFunnelEvent.ts +38 -38
- package/model/clickFunnelOriginalAmount.ts +37 -37
- package/model/clickFunnelProduct.ts +194 -194
- package/model/clickFunnelPurchase.ts +178 -178
- package/model/createStaticVoucherCampaign.ts +109 -109
- package/model/createStaticVoucherCampaignWithVoucher.ts +109 -109
- package/model/createStaticVoucherCampaignWithVoucherWithCSV.ts +109 -109
- package/model/dashboardWidget.ts +115 -115
- package/model/duplicateRowFound.ts +55 -55
- package/model/dynamicVoucher.ts +224 -224
- package/model/dynamicVoucherBroadcast.ts +154 -154
- package/model/employee.ts +109 -109
- package/model/employeeActivityLog.ts +67 -67
- package/model/employeeAlert.ts +79 -79
- package/model/exportDataFile.ts +85 -85
- package/model/falsumError.ts +41 -41
- package/model/falsumField.ts +55 -55
- package/model/feature.ts +79 -79
- package/model/forbiddenRequest.ts +55 -55
- package/model/foreignKeyDoesNotExist.ts +55 -55
- package/model/helpDeskRequest.ts +85 -85
- package/model/importedList.ts +73 -73
- package/model/importedListRecipient.ts +73 -73
- package/model/inlineObject.ts +31 -31
- package/model/inlineObject1.ts +31 -31
- package/model/inlineObject10.ts +37 -37
- package/model/inlineObject11.ts +37 -37
- package/model/inlineObject12.ts +37 -37
- package/model/inlineObject13.ts +37 -37
- package/model/inlineObject14.ts +37 -37
- package/model/inlineObject15.ts +67 -67
- package/model/inlineObject16.ts +61 -61
- package/model/inlineObject17.ts +55 -55
- package/model/inlineObject18.ts +61 -61
- package/model/inlineObject19.ts +55 -55
- package/model/inlineObject2.ts +31 -31
- package/model/inlineObject20.ts +61 -61
- package/model/inlineObject21.ts +73 -73
- package/model/inlineObject22.ts +31 -31
- package/model/inlineObject23.ts +31 -31
- package/model/inlineObject24.ts +43 -43
- package/model/inlineObject25.ts +55 -55
- package/model/inlineObject26.ts +31 -31
- package/model/inlineObject27.ts +31 -31
- package/model/inlineObject28.ts +43 -43
- package/model/inlineObject29.ts +49 -49
- package/model/inlineObject3.ts +31 -31
- package/model/inlineObject30.ts +43 -43
- package/model/inlineObject31.ts +31 -31
- package/model/inlineObject32.ts +31 -31
- package/model/inlineObject33.ts +31 -31
- package/model/inlineObject34.ts +43 -43
- package/model/inlineObject35.ts +43 -43
- package/model/inlineObject36.ts +43 -43
- package/model/inlineObject37.ts +43 -43
- package/model/inlineObject38.ts +43 -43
- package/model/inlineObject39.ts +43 -43
- package/model/inlineObject4.ts +37 -37
- package/model/inlineObject40.ts +43 -43
- package/model/inlineObject41.ts +43 -43
- package/model/inlineObject42.ts +43 -43
- package/model/inlineObject43.ts +43 -43
- package/model/inlineObject44.ts +43 -43
- package/model/inlineObject45.ts +43 -43
- package/model/inlineObject46.ts +43 -43
- package/model/inlineObject47.ts +43 -43
- package/model/inlineObject48.ts +43 -43
- package/model/inlineObject49.ts +43 -43
- package/model/inlineObject5.ts +31 -31
- package/model/inlineObject50.ts +43 -43
- package/model/inlineObject51.ts +97 -97
- package/model/inlineObject52.ts +31 -31
- package/model/inlineObject53.ts +97 -97
- package/model/inlineObject54.ts +97 -97
- package/model/inlineObject55.ts +91 -91
- package/model/inlineObject56.ts +37 -37
- package/model/inlineObject57.ts +37 -37
- package/model/inlineObject58.ts +37 -37
- package/model/inlineObject59.ts +43 -43
- package/model/inlineObject6.ts +31 -31
- package/model/inlineObject60.ts +43 -43
- package/model/inlineObject61.ts +43 -43
- package/model/inlineObject62.ts +37 -37
- package/model/inlineObject63.ts +37 -37
- package/model/inlineObject64.ts +37 -37
- package/model/inlineObject65.ts +205 -205
- package/model/inlineObject66.ts +49 -49
- package/model/inlineObject67.ts +49 -49
- package/model/inlineObject68.ts +37 -37
- package/model/inlineObject69.ts +121 -121
- package/model/inlineObject7.ts +31 -31
- package/model/inlineObject8.ts +43 -43
- package/model/inlineObject9.ts +37 -37
- package/model/inlineResponse200.ts +37 -37
- package/model/inlineResponse2001.ts +56 -56
- package/model/inlineResponse20010.ts +109 -109
- package/model/inlineResponse20011.ts +43 -43
- package/model/inlineResponse2002.ts +31 -31
- package/model/inlineResponse2003.ts +31 -31
- package/model/inlineResponse2004.ts +43 -43
- package/model/inlineResponse2005.ts +38 -38
- package/model/inlineResponse2006.ts +97 -97
- package/model/inlineResponse2007.ts +44 -44
- package/model/inlineResponse2008.ts +31 -31
- package/model/inlineResponse2009.ts +98 -98
- package/model/internalServerError.ts +55 -55
- package/model/ledgerEntry.ts +176 -176
- package/model/linkBook.ts +85 -85
- package/model/linkBookSection.ts +61 -61
- package/model/mSMemberHistory.ts +112 -112
- package/model/mSMemberHistoryPagination.ts +53 -53
- package/model/mSMemberRedemption.ts +109 -109
- package/model/mSMemberRedemptionPagination.ts +53 -53
- package/model/mSMembershipTierHistory.ts +106 -106
- package/model/mSMembershipTierHistoryPagination.ts +53 -53
- package/model/mSMembershipTierRedemption.ts +121 -121
- package/model/mSMembershipTierRedemptionPagination.ts +53 -53
- package/model/mSMerchantCreditHistory.ts +88 -88
- package/model/mSMerchantCreditHistoryPagination.ts +53 -53
- package/model/mSMerchantCreditRedemption.ts +109 -109
- package/model/mSMerchantCreditRedemptionPagination.ts +53 -53
- package/model/mediaFile.ts +85 -85
- package/model/member.ts +118 -118
- package/model/memberSearch.ts +61 -61
- package/model/merchant.ts +133 -133
- package/model/merchantCreditSearch.ts +61 -61
- package/model/merchantNotInitialized.ts +55 -55
- package/model/merchantURL.ts +67 -67
- package/model/message.ts +74 -74
- package/model/models.ts +1015 -1015
- package/model/moduleError.ts +157 -157
- package/model/newsArticle.ts +85 -85
- package/model/optInList.ts +121 -121
- package/model/optInListSource.ts +73 -73
- package/model/optInListSubscriber.ts +104 -104
- package/model/outboundSMS.ts +157 -157
- package/model/paginatedWTMembers.ts +53 -53
- package/model/paginatedWTMerchantCredits.ts +53 -53
- package/model/paginationRequestWithSortOptions.ts +75 -75
- package/model/paymentDesign.ts +139 -139
- package/model/performance.ts +100 -100
- package/model/phoneNumber.ts +157 -157
- package/model/pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherSourceID.ts +106 -106
- package/model/pickMSMemberCreationParamsExcludeKeyofMSMemberCreationParamsMemberIdentifier.ts +67 -67
- package/model/pickMSMemberExcludeKeyofMSMemberMemberIdentifier.ts +106 -106
- package/model/pickMSMerchantCreditCreationParamsExcludeKeyofMSMerchantCreditCreationParamsMemberIdentifier.ts +43 -43
- package/model/pickMSMerchantCreditExcludeKeyofMSMerchantCreditMemberIdentifier.ts +82 -82
- package/model/pickPaginationRequestWithoutSortOptionsExcludeKeyofPaginationRequestWithoutSortOptionsIsArchiveIncluded.ts +46 -46
- package/model/pickSSImportedListUpdateParamsExcludeKeyofSSImportedListUpdateParamsId.ts +52 -52
- package/model/pickSSMobileNumberUpdateParamsExcludeKeyofSSMobileNumberUpdateParamsId.ts +100 -100
- package/model/pickSSOptInListCreateParamsExcludeKeyofSSOptInListCreateParamsEmployeeID.ts +94 -94
- package/model/pickSSOptInListUpdateParamsExcludeKeyofSSOptInListUpdateParamsId.ts +100 -100
- package/model/pickSSOptInSourceUpdateParamsExcludeKeyofSSOptInSourceUpdateParamsId.ts +46 -46
- package/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhone.ts +154 -154
- package/model/pickVSAdvertisementCreditScanExcludeKeyofVSAdvertisementCreditScanRedeemedAtOrRefundedAt.ts +137 -137
- package/model/pickVSAdvertisementCreditUpdateParamsExcludeKeyofVSAdvertisementCreditUpdateParamsId.ts +58 -58
- package/model/pickVSCampaignUpdateParamsExcludeKeyofVSCampaignUpdateParamsStartDateOrExpirationDate.ts +106 -106
- package/model/pickVSDynamicVoucherExcludeKeyofVSDynamicVoucherTemporalDecreaseFrequencyType.ts +142 -142
- package/model/pickVSPaymentDesignCreateParamsExcludeKeyofVSPaymentDesignCreateParamsBackgroundImageURLOrCompanyLogoURLOrEmployeeID.ts +94 -94
- package/model/pickVSPaymentDesignUpdateParamsExcludeKeyofVSPaymentDesignUpdateParamsId.ts +106 -106
- package/model/pickVSStaticVoucherExcludeKeyofVSStaticVoucherRedeemedAtOrRefundedAtOrLastViewedAt.ts +167 -167
- package/model/pickWTAdvertisementCreditCreateParamsExcludeKeyofWTAdvertisementCreditCreateParamsEmployeeID.ts +58 -58
- package/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmail.ts +58 -58
- package/model/pickWTMemberMemberIDOrFirstNameOrLastNameOrMembershipTierIDOrPointsAccruedOrMobileNumber.ts +76 -76
- package/model/pickWTMerchantCreditMemberIDOrCreditAmountOrMobileNumber.ts +52 -52
- package/model/pickWTMerchantURLUpdateExcludeKeyofWTMerchantURLUpdateUrlID.ts +40 -40
- package/model/pickWTNewsArticleUpdateParamsExcludeKeyofWTNewsArticleUpdateParamsId.ts +58 -58
- package/model/pickWTPaymentObjectBroadcastExcludeKeyofWTPaymentObjectBroadcastListTypeOrListID.ts +138 -138
- package/model/pickWTStaticVoucherCampaignCreateParamsExcludeKeyofWTStaticVoucherCampaignCreateParamsStartDateTimeOrExpirationDateTime.ts +112 -112
- package/model/pickWTStaticVoucherCreateParamsExcludeKeyofWTStaticVoucherCreateParamsCampaignID.ts +46 -46
- package/model/plan.ts +62 -62
- package/model/portalPage.ts +67 -67
- package/model/presignedPost.ts +41 -41
- package/model/presignedPostFields.ts +43 -43
- package/model/product.ts +74 -74
- package/model/promoCode.ts +97 -97
- package/model/reachPerformanceStats.ts +70 -70
- package/model/request.ts +349 -349
- package/model/response.ts +67 -67
- package/model/role.ts +117 -117
- package/model/roleAuditLog.ts +97 -97
- package/model/sSOptInSource.ts +73 -73
- package/model/simpleSMSBroadcast.ts +147 -147
- package/model/staticVoucher.ts +224 -224
- package/model/staticVoucherCampaign.ts +175 -175
- package/model/staticVoucherCampaignBroadcast.ts +142 -142
- package/model/staticVoucherCampaignGroup.ts +85 -85
- package/model/staticVoucherCampaignUpdate.ts +85 -85
- package/model/status.ts +30 -30
- package/model/statusAnyOf.ts +17 -17
- package/model/statusAnyOf1.ts +17 -17
- package/model/statusAnyOf2.ts +17 -17
- package/model/statusAnyOf3.ts +17 -17
- package/model/subscriptionFeature.ts +79 -79
- package/model/subscriptionPlan.ts +69 -69
- package/model/subscriptionProduct.ts +81 -81
- package/model/tcpa.ts +67 -67
- package/model/updateStaticVoucherCampaignWithVoucher.ts +109 -109
- package/model/vSCampaignGeneratedMessage.ts +43 -43
- package/model/vSCampaignGeneratedMessagePagination.ts +53 -53
- package/model/vSDynamicVoucherStatus.ts +28 -28
- package/model/wTAdvertisementCredit.ts +103 -103
- package/model/wTAdvertisementCreditScan.ts +170 -170
- package/model/wTAdvertisementCreditUpdateParams.ts +55 -55
- package/model/wTDynamicVoucher.ts +224 -224
- package/model/wTDynamicVoucherCreateParams.ts +103 -103
- package/model/wTDynamicVoucherRedemption.ts +164 -164
- package/model/wTDynamicVoucherSummary.ts +169 -169
- package/model/wTDynamicVoucherUpdateParams.ts +103 -103
- package/model/wTEmployee.ts +109 -109
- package/model/wTEmployeeCreate.ts +61 -61
- package/model/wTEmployeeUpdate.ts +55 -55
- package/model/wTImportedList.ts +73 -73
- package/model/wTLinkBookCreateParams.ts +55 -55
- package/model/wTLinkBookSectionCreateParams.ts +31 -31
- package/model/wTLinkBookSectionUpdateParams.ts +31 -31
- package/model/wTLinkBookUpdateParams.ts +55 -55
- package/model/wTMember.ts +118 -118
- package/model/wTMemberCreationParams.ts +73 -73
- package/model/wTMembershipTier.ts +106 -106
- package/model/wTMembershipTierCreationParams.ts +64 -64
- package/model/wTMembershipTierUpdateParams.ts +64 -64
- package/model/wTMembershipTierWithMemberCount.ts +115 -115
- package/model/wTMerchantCredit.ts +106 -106
- package/model/wTMerchantCreditCreationParams.ts +49 -49
- package/model/wTMerchantURLCreate.ts +37 -37
- package/model/wTMerchantURLUpdate.ts +37 -37
- package/model/wTNewsArticleCreateParams.ts +55 -55
- package/model/wTNewsArticleUpdateParams.ts +55 -55
- package/model/wTOptInList.ts +121 -121
- package/model/wTOptInListCreationParams.ts +91 -91
- package/model/wTPaymentDesign.ts +139 -139
- package/model/wTPaymentDesignCreateParams.ts +115 -115
- package/model/wTPaymentDesignUpdateParams.ts +115 -115
- package/model/wTPerformanceCreateParams.ts +70 -70
- package/model/wTPerformanceUpdateParams.ts +70 -70
- package/model/wTPosMachine.ts +88 -88
- package/model/wTPosMachineCreateParams.ts +58 -58
- package/model/wTPosMachineUpdateParams.ts +58 -58
- package/model/wTPromoCodeCreateParams.ts +67 -67
- package/model/wTPromoCodeUpdateParams.ts +67 -67
- package/model/wTRole.ts +116 -116
- package/model/wTStaticVoucher.ts +224 -224
- package/model/wTStaticVoucherCampaign.ts +175 -175
- package/model/wTStaticVoucherCreateParams.ts +49 -49
- package/model/wTStaticVoucherUpdateParams.ts +43 -43
- package/model/wTWalletPageView.ts +251 -251
- package/model/wTWalletPageViewGeoPoint.ts +37 -37
- package/model/walletPageView.ts +251 -251
- package/model/webpage.ts +85 -85
- package/package.json +28 -25
- package/readme-generator.py +42 -42
- package/tsconfig.json +25 -25
package/api/dashboardApi.ts
CHANGED
|
@@ -1,1553 +1,1553 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* wallet-api
|
|
3
|
-
* API
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.1.3
|
|
6
|
-
* Contact: development@wallet.inc
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
import localVarRequest from 'request';
|
|
15
|
-
import http from 'http';
|
|
16
|
-
|
|
17
|
-
/* tslint:disable:no-unused-locals */
|
|
18
|
-
import { AuthError } from '../model/authError';
|
|
19
|
-
import { DashboardWidget } from '../model/dashboardWidget';
|
|
20
|
-
import { FalsumError } from '../model/falsumError';
|
|
21
|
-
import { InlineResponse2002 } from '../model/inlineResponse2002';
|
|
22
|
-
import { InlineResponse2003 } from '../model/inlineResponse2003';
|
|
23
|
-
import { InternalServerError } from '../model/internalServerError';
|
|
24
|
-
|
|
25
|
-
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
|
|
26
|
-
import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models';
|
|
27
|
-
|
|
28
|
-
import { HttpError, RequestFile } from './apis';
|
|
29
|
-
|
|
30
|
-
let defaultBasePath = 'https://api.wall.et';
|
|
31
|
-
|
|
32
|
-
// ===============================================
|
|
33
|
-
// This file is autogenerated - Please do not edit
|
|
34
|
-
// ===============================================
|
|
35
|
-
|
|
36
|
-
export enum DashboardApiApiKeys {
|
|
37
|
-
api_key,
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export class DashboardApi {
|
|
41
|
-
protected _basePath = defaultBasePath;
|
|
42
|
-
protected _defaultHeaders : any = {};
|
|
43
|
-
protected _useQuerystring : boolean = false;
|
|
44
|
-
|
|
45
|
-
protected authentications = {
|
|
46
|
-
'default': <Authentication>new VoidAuth(),
|
|
47
|
-
'api_key': new ApiKeyAuth('header', 'access-token'),
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
protected interceptors: Interceptor[] = [];
|
|
51
|
-
|
|
52
|
-
constructor(basePath?: string);
|
|
53
|
-
constructor(basePathOrUsername: string, password?: string, basePath?: string) {
|
|
54
|
-
if (password) {
|
|
55
|
-
if (basePath) {
|
|
56
|
-
this.basePath = basePath;
|
|
57
|
-
}
|
|
58
|
-
} else {
|
|
59
|
-
if (basePathOrUsername) {
|
|
60
|
-
this.basePath = basePathOrUsername
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
set useQuerystring(value: boolean) {
|
|
66
|
-
this._useQuerystring = value;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
set basePath(basePath: string) {
|
|
70
|
-
this._basePath = basePath;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
set defaultHeaders(defaultHeaders: any) {
|
|
74
|
-
this._defaultHeaders = defaultHeaders;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
get defaultHeaders() {
|
|
78
|
-
return this._defaultHeaders;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
get basePath() {
|
|
82
|
-
return this._basePath;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
public setDefaultAuthentication(auth: Authentication) {
|
|
86
|
-
this.authentications.default = auth;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
public setApiKey(key: DashboardApiApiKeys, value: string) {
|
|
90
|
-
(this.authentications as any)[DashboardApiApiKeys[key]].apiKey = value;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
public addInterceptor(interceptor: Interceptor) {
|
|
94
|
-
this.interceptors.push(interceptor);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
*
|
|
99
|
-
* @summary Count active static voucher campaigns
|
|
100
|
-
* @param startDateTime
|
|
101
|
-
* @param endDateTime
|
|
102
|
-
*/
|
|
103
|
-
public async fetchDashboardActiveStaticVoucherCampaignsCount (startDateTime: Date, endDateTime: Date, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }> {
|
|
104
|
-
const localVarPath = this.basePath + '/v1/dashboard/count/staticVoucherCampaigns/active';
|
|
105
|
-
let localVarQueryParameters: any = {};
|
|
106
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
107
|
-
const produces = ['application/json'];
|
|
108
|
-
// give precedence to 'application/json'
|
|
109
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
110
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
111
|
-
} else {
|
|
112
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
113
|
-
}
|
|
114
|
-
let localVarFormParams: any = {};
|
|
115
|
-
|
|
116
|
-
// verify required parameter 'startDateTime' is not null or undefined
|
|
117
|
-
if (startDateTime === null || startDateTime === undefined) {
|
|
118
|
-
throw new Error('Required parameter startDateTime was null or undefined when calling fetchDashboardActiveStaticVoucherCampaignsCount.');
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
// verify required parameter 'endDateTime' is not null or undefined
|
|
122
|
-
if (endDateTime === null || endDateTime === undefined) {
|
|
123
|
-
throw new Error('Required parameter endDateTime was null or undefined when calling fetchDashboardActiveStaticVoucherCampaignsCount.');
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
if (startDateTime !== undefined) {
|
|
127
|
-
localVarQueryParameters['startDateTime'] = ObjectSerializer.serialize(startDateTime, "Date");
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
if (endDateTime !== undefined) {
|
|
131
|
-
localVarQueryParameters['endDateTime'] = ObjectSerializer.serialize(endDateTime, "Date");
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
135
|
-
|
|
136
|
-
let localVarUseFormData = false;
|
|
137
|
-
|
|
138
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
139
|
-
method: 'GET',
|
|
140
|
-
qs: localVarQueryParameters,
|
|
141
|
-
headers: localVarHeaderParams,
|
|
142
|
-
uri: localVarPath,
|
|
143
|
-
useQuerystring: this._useQuerystring,
|
|
144
|
-
json: true,
|
|
145
|
-
};
|
|
146
|
-
|
|
147
|
-
let authenticationPromise = Promise.resolve();
|
|
148
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
149
|
-
|
|
150
|
-
let interceptorPromise = authenticationPromise;
|
|
151
|
-
for (const interceptor of this.interceptors) {
|
|
152
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
return interceptorPromise.then(() => {
|
|
156
|
-
if (Object.keys(localVarFormParams).length) {
|
|
157
|
-
if (localVarUseFormData) {
|
|
158
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
159
|
-
} else {
|
|
160
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
return new Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }>((resolve, reject) => {
|
|
164
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
165
|
-
if (error) {
|
|
166
|
-
reject(error);
|
|
167
|
-
} else {
|
|
168
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
169
|
-
body = ObjectSerializer.deserialize(body, "InlineResponse2003");
|
|
170
|
-
resolve({ response: response, body: body });
|
|
171
|
-
} else {
|
|
172
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
});
|
|
176
|
-
});
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
/**
|
|
180
|
-
*
|
|
181
|
-
* @summary Count active static vouchers
|
|
182
|
-
* @param startDateTime
|
|
183
|
-
* @param endDateTime
|
|
184
|
-
*/
|
|
185
|
-
public async fetchDashboardActiveStaticVouchersCount (startDateTime: Date, endDateTime: Date, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }> {
|
|
186
|
-
const localVarPath = this.basePath + '/v1/dashboard/count/staticVouchers/active';
|
|
187
|
-
let localVarQueryParameters: any = {};
|
|
188
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
189
|
-
const produces = ['application/json'];
|
|
190
|
-
// give precedence to 'application/json'
|
|
191
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
192
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
193
|
-
} else {
|
|
194
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
195
|
-
}
|
|
196
|
-
let localVarFormParams: any = {};
|
|
197
|
-
|
|
198
|
-
// verify required parameter 'startDateTime' is not null or undefined
|
|
199
|
-
if (startDateTime === null || startDateTime === undefined) {
|
|
200
|
-
throw new Error('Required parameter startDateTime was null or undefined when calling fetchDashboardActiveStaticVouchersCount.');
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
// verify required parameter 'endDateTime' is not null or undefined
|
|
204
|
-
if (endDateTime === null || endDateTime === undefined) {
|
|
205
|
-
throw new Error('Required parameter endDateTime was null or undefined when calling fetchDashboardActiveStaticVouchersCount.');
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
if (startDateTime !== undefined) {
|
|
209
|
-
localVarQueryParameters['startDateTime'] = ObjectSerializer.serialize(startDateTime, "Date");
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
if (endDateTime !== undefined) {
|
|
213
|
-
localVarQueryParameters['endDateTime'] = ObjectSerializer.serialize(endDateTime, "Date");
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
217
|
-
|
|
218
|
-
let localVarUseFormData = false;
|
|
219
|
-
|
|
220
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
221
|
-
method: 'GET',
|
|
222
|
-
qs: localVarQueryParameters,
|
|
223
|
-
headers: localVarHeaderParams,
|
|
224
|
-
uri: localVarPath,
|
|
225
|
-
useQuerystring: this._useQuerystring,
|
|
226
|
-
json: true,
|
|
227
|
-
};
|
|
228
|
-
|
|
229
|
-
let authenticationPromise = Promise.resolve();
|
|
230
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
231
|
-
|
|
232
|
-
let interceptorPromise = authenticationPromise;
|
|
233
|
-
for (const interceptor of this.interceptors) {
|
|
234
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
return interceptorPromise.then(() => {
|
|
238
|
-
if (Object.keys(localVarFormParams).length) {
|
|
239
|
-
if (localVarUseFormData) {
|
|
240
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
241
|
-
} else {
|
|
242
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
return new Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }>((resolve, reject) => {
|
|
246
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
247
|
-
if (error) {
|
|
248
|
-
reject(error);
|
|
249
|
-
} else {
|
|
250
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
251
|
-
body = ObjectSerializer.deserialize(body, "InlineResponse2002");
|
|
252
|
-
resolve({ response: response, body: body });
|
|
253
|
-
} else {
|
|
254
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
});
|
|
258
|
-
});
|
|
259
|
-
});
|
|
260
|
-
}
|
|
261
|
-
/**
|
|
262
|
-
*
|
|
263
|
-
* @summary Count Apple Wallet Subscribers
|
|
264
|
-
* @param startDateTime
|
|
265
|
-
* @param endDateTime
|
|
266
|
-
*/
|
|
267
|
-
public async fetchDashboardAppleWalletSubscribersCount (startDateTime: Date, endDateTime: Date, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }> {
|
|
268
|
-
const localVarPath = this.basePath + '/v1/dashboard/count/appleWallet/subscribers';
|
|
269
|
-
let localVarQueryParameters: any = {};
|
|
270
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
271
|
-
const produces = ['application/json'];
|
|
272
|
-
// give precedence to 'application/json'
|
|
273
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
274
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
275
|
-
} else {
|
|
276
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
277
|
-
}
|
|
278
|
-
let localVarFormParams: any = {};
|
|
279
|
-
|
|
280
|
-
// verify required parameter 'startDateTime' is not null or undefined
|
|
281
|
-
if (startDateTime === null || startDateTime === undefined) {
|
|
282
|
-
throw new Error('Required parameter startDateTime was null or undefined when calling fetchDashboardAppleWalletSubscribersCount.');
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
// verify required parameter 'endDateTime' is not null or undefined
|
|
286
|
-
if (endDateTime === null || endDateTime === undefined) {
|
|
287
|
-
throw new Error('Required parameter endDateTime was null or undefined when calling fetchDashboardAppleWalletSubscribersCount.');
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
if (startDateTime !== undefined) {
|
|
291
|
-
localVarQueryParameters['startDateTime'] = ObjectSerializer.serialize(startDateTime, "Date");
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
if (endDateTime !== undefined) {
|
|
295
|
-
localVarQueryParameters['endDateTime'] = ObjectSerializer.serialize(endDateTime, "Date");
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
299
|
-
|
|
300
|
-
let localVarUseFormData = false;
|
|
301
|
-
|
|
302
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
303
|
-
method: 'GET',
|
|
304
|
-
qs: localVarQueryParameters,
|
|
305
|
-
headers: localVarHeaderParams,
|
|
306
|
-
uri: localVarPath,
|
|
307
|
-
useQuerystring: this._useQuerystring,
|
|
308
|
-
json: true,
|
|
309
|
-
};
|
|
310
|
-
|
|
311
|
-
let authenticationPromise = Promise.resolve();
|
|
312
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
313
|
-
|
|
314
|
-
let interceptorPromise = authenticationPromise;
|
|
315
|
-
for (const interceptor of this.interceptors) {
|
|
316
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
return interceptorPromise.then(() => {
|
|
320
|
-
if (Object.keys(localVarFormParams).length) {
|
|
321
|
-
if (localVarUseFormData) {
|
|
322
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
323
|
-
} else {
|
|
324
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
return new Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }>((resolve, reject) => {
|
|
328
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
329
|
-
if (error) {
|
|
330
|
-
reject(error);
|
|
331
|
-
} else {
|
|
332
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
333
|
-
body = ObjectSerializer.deserialize(body, "InlineResponse2002");
|
|
334
|
-
resolve({ response: response, body: body });
|
|
335
|
-
} else {
|
|
336
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
});
|
|
340
|
-
});
|
|
341
|
-
});
|
|
342
|
-
}
|
|
343
|
-
/**
|
|
344
|
-
*
|
|
345
|
-
* @summary Count employees
|
|
346
|
-
* @param startDateTime
|
|
347
|
-
* @param endDateTime
|
|
348
|
-
*/
|
|
349
|
-
public async fetchDashboardEmployeesCount (startDateTime: Date, endDateTime: Date, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }> {
|
|
350
|
-
const localVarPath = this.basePath + '/v1/dashboard/count/employees';
|
|
351
|
-
let localVarQueryParameters: any = {};
|
|
352
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
353
|
-
const produces = ['application/json'];
|
|
354
|
-
// give precedence to 'application/json'
|
|
355
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
356
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
357
|
-
} else {
|
|
358
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
359
|
-
}
|
|
360
|
-
let localVarFormParams: any = {};
|
|
361
|
-
|
|
362
|
-
// verify required parameter 'startDateTime' is not null or undefined
|
|
363
|
-
if (startDateTime === null || startDateTime === undefined) {
|
|
364
|
-
throw new Error('Required parameter startDateTime was null or undefined when calling fetchDashboardEmployeesCount.');
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
// verify required parameter 'endDateTime' is not null or undefined
|
|
368
|
-
if (endDateTime === null || endDateTime === undefined) {
|
|
369
|
-
throw new Error('Required parameter endDateTime was null or undefined when calling fetchDashboardEmployeesCount.');
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
if (startDateTime !== undefined) {
|
|
373
|
-
localVarQueryParameters['startDateTime'] = ObjectSerializer.serialize(startDateTime, "Date");
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
if (endDateTime !== undefined) {
|
|
377
|
-
localVarQueryParameters['endDateTime'] = ObjectSerializer.serialize(endDateTime, "Date");
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
381
|
-
|
|
382
|
-
let localVarUseFormData = false;
|
|
383
|
-
|
|
384
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
385
|
-
method: 'GET',
|
|
386
|
-
qs: localVarQueryParameters,
|
|
387
|
-
headers: localVarHeaderParams,
|
|
388
|
-
uri: localVarPath,
|
|
389
|
-
useQuerystring: this._useQuerystring,
|
|
390
|
-
json: true,
|
|
391
|
-
};
|
|
392
|
-
|
|
393
|
-
let authenticationPromise = Promise.resolve();
|
|
394
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
395
|
-
|
|
396
|
-
let interceptorPromise = authenticationPromise;
|
|
397
|
-
for (const interceptor of this.interceptors) {
|
|
398
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
return interceptorPromise.then(() => {
|
|
402
|
-
if (Object.keys(localVarFormParams).length) {
|
|
403
|
-
if (localVarUseFormData) {
|
|
404
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
405
|
-
} else {
|
|
406
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
return new Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }>((resolve, reject) => {
|
|
410
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
411
|
-
if (error) {
|
|
412
|
-
reject(error);
|
|
413
|
-
} else {
|
|
414
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
415
|
-
body = ObjectSerializer.deserialize(body, "InlineResponse2002");
|
|
416
|
-
resolve({ response: response, body: body });
|
|
417
|
-
} else {
|
|
418
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
});
|
|
422
|
-
});
|
|
423
|
-
});
|
|
424
|
-
}
|
|
425
|
-
/**
|
|
426
|
-
*
|
|
427
|
-
* @summary Count members
|
|
428
|
-
* @param startDateTime
|
|
429
|
-
* @param endDateTime
|
|
430
|
-
*/
|
|
431
|
-
public async fetchDashboardMembersCount (startDateTime: Date, endDateTime: Date, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }> {
|
|
432
|
-
const localVarPath = this.basePath + '/v1/dashboard/count/members';
|
|
433
|
-
let localVarQueryParameters: any = {};
|
|
434
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
435
|
-
const produces = ['application/json'];
|
|
436
|
-
// give precedence to 'application/json'
|
|
437
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
438
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
439
|
-
} else {
|
|
440
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
441
|
-
}
|
|
442
|
-
let localVarFormParams: any = {};
|
|
443
|
-
|
|
444
|
-
// verify required parameter 'startDateTime' is not null or undefined
|
|
445
|
-
if (startDateTime === null || startDateTime === undefined) {
|
|
446
|
-
throw new Error('Required parameter startDateTime was null or undefined when calling fetchDashboardMembersCount.');
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
// verify required parameter 'endDateTime' is not null or undefined
|
|
450
|
-
if (endDateTime === null || endDateTime === undefined) {
|
|
451
|
-
throw new Error('Required parameter endDateTime was null or undefined when calling fetchDashboardMembersCount.');
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
if (startDateTime !== undefined) {
|
|
455
|
-
localVarQueryParameters['startDateTime'] = ObjectSerializer.serialize(startDateTime, "Date");
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
if (endDateTime !== undefined) {
|
|
459
|
-
localVarQueryParameters['endDateTime'] = ObjectSerializer.serialize(endDateTime, "Date");
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
463
|
-
|
|
464
|
-
let localVarUseFormData = false;
|
|
465
|
-
|
|
466
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
467
|
-
method: 'GET',
|
|
468
|
-
qs: localVarQueryParameters,
|
|
469
|
-
headers: localVarHeaderParams,
|
|
470
|
-
uri: localVarPath,
|
|
471
|
-
useQuerystring: this._useQuerystring,
|
|
472
|
-
json: true,
|
|
473
|
-
};
|
|
474
|
-
|
|
475
|
-
let authenticationPromise = Promise.resolve();
|
|
476
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
477
|
-
|
|
478
|
-
let interceptorPromise = authenticationPromise;
|
|
479
|
-
for (const interceptor of this.interceptors) {
|
|
480
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
return interceptorPromise.then(() => {
|
|
484
|
-
if (Object.keys(localVarFormParams).length) {
|
|
485
|
-
if (localVarUseFormData) {
|
|
486
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
487
|
-
} else {
|
|
488
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
489
|
-
}
|
|
490
|
-
}
|
|
491
|
-
return new Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }>((resolve, reject) => {
|
|
492
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
493
|
-
if (error) {
|
|
494
|
-
reject(error);
|
|
495
|
-
} else {
|
|
496
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
497
|
-
body = ObjectSerializer.deserialize(body, "InlineResponse2002");
|
|
498
|
-
resolve({ response: response, body: body });
|
|
499
|
-
} else {
|
|
500
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
});
|
|
504
|
-
});
|
|
505
|
-
});
|
|
506
|
-
}
|
|
507
|
-
/**
|
|
508
|
-
*
|
|
509
|
-
* @summary Count tiers
|
|
510
|
-
* @param startDateTime
|
|
511
|
-
* @param endDateTime
|
|
512
|
-
*/
|
|
513
|
-
public async fetchDashboardMembershipTiersCount (startDateTime: Date, endDateTime: Date, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }> {
|
|
514
|
-
const localVarPath = this.basePath + '/v1/dashboard/count/membershipTiers';
|
|
515
|
-
let localVarQueryParameters: any = {};
|
|
516
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
517
|
-
const produces = ['application/json'];
|
|
518
|
-
// give precedence to 'application/json'
|
|
519
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
520
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
521
|
-
} else {
|
|
522
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
523
|
-
}
|
|
524
|
-
let localVarFormParams: any = {};
|
|
525
|
-
|
|
526
|
-
// verify required parameter 'startDateTime' is not null or undefined
|
|
527
|
-
if (startDateTime === null || startDateTime === undefined) {
|
|
528
|
-
throw new Error('Required parameter startDateTime was null or undefined when calling fetchDashboardMembershipTiersCount.');
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
// verify required parameter 'endDateTime' is not null or undefined
|
|
532
|
-
if (endDateTime === null || endDateTime === undefined) {
|
|
533
|
-
throw new Error('Required parameter endDateTime was null or undefined when calling fetchDashboardMembershipTiersCount.');
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
if (startDateTime !== undefined) {
|
|
537
|
-
localVarQueryParameters['startDateTime'] = ObjectSerializer.serialize(startDateTime, "Date");
|
|
538
|
-
}
|
|
539
|
-
|
|
540
|
-
if (endDateTime !== undefined) {
|
|
541
|
-
localVarQueryParameters['endDateTime'] = ObjectSerializer.serialize(endDateTime, "Date");
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
545
|
-
|
|
546
|
-
let localVarUseFormData = false;
|
|
547
|
-
|
|
548
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
549
|
-
method: 'GET',
|
|
550
|
-
qs: localVarQueryParameters,
|
|
551
|
-
headers: localVarHeaderParams,
|
|
552
|
-
uri: localVarPath,
|
|
553
|
-
useQuerystring: this._useQuerystring,
|
|
554
|
-
json: true,
|
|
555
|
-
};
|
|
556
|
-
|
|
557
|
-
let authenticationPromise = Promise.resolve();
|
|
558
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
559
|
-
|
|
560
|
-
let interceptorPromise = authenticationPromise;
|
|
561
|
-
for (const interceptor of this.interceptors) {
|
|
562
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
return interceptorPromise.then(() => {
|
|
566
|
-
if (Object.keys(localVarFormParams).length) {
|
|
567
|
-
if (localVarUseFormData) {
|
|
568
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
569
|
-
} else {
|
|
570
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
return new Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }>((resolve, reject) => {
|
|
574
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
575
|
-
if (error) {
|
|
576
|
-
reject(error);
|
|
577
|
-
} else {
|
|
578
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
579
|
-
body = ObjectSerializer.deserialize(body, "InlineResponse2002");
|
|
580
|
-
resolve({ response: response, body: body });
|
|
581
|
-
} else {
|
|
582
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
583
|
-
}
|
|
584
|
-
}
|
|
585
|
-
});
|
|
586
|
-
});
|
|
587
|
-
});
|
|
588
|
-
}
|
|
589
|
-
/**
|
|
590
|
-
*
|
|
591
|
-
* @summary Count News Articles
|
|
592
|
-
* @param startDateTime
|
|
593
|
-
* @param endDateTime
|
|
594
|
-
*/
|
|
595
|
-
public async fetchDashboardNewsArticlesCount (startDateTime: Date, endDateTime: Date, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }> {
|
|
596
|
-
const localVarPath = this.basePath + '/v1/dashboard/count/newsArticles';
|
|
597
|
-
let localVarQueryParameters: any = {};
|
|
598
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
599
|
-
const produces = ['application/json'];
|
|
600
|
-
// give precedence to 'application/json'
|
|
601
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
602
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
603
|
-
} else {
|
|
604
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
605
|
-
}
|
|
606
|
-
let localVarFormParams: any = {};
|
|
607
|
-
|
|
608
|
-
// verify required parameter 'startDateTime' is not null or undefined
|
|
609
|
-
if (startDateTime === null || startDateTime === undefined) {
|
|
610
|
-
throw new Error('Required parameter startDateTime was null or undefined when calling fetchDashboardNewsArticlesCount.');
|
|
611
|
-
}
|
|
612
|
-
|
|
613
|
-
// verify required parameter 'endDateTime' is not null or undefined
|
|
614
|
-
if (endDateTime === null || endDateTime === undefined) {
|
|
615
|
-
throw new Error('Required parameter endDateTime was null or undefined when calling fetchDashboardNewsArticlesCount.');
|
|
616
|
-
}
|
|
617
|
-
|
|
618
|
-
if (startDateTime !== undefined) {
|
|
619
|
-
localVarQueryParameters['startDateTime'] = ObjectSerializer.serialize(startDateTime, "Date");
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
if (endDateTime !== undefined) {
|
|
623
|
-
localVarQueryParameters['endDateTime'] = ObjectSerializer.serialize(endDateTime, "Date");
|
|
624
|
-
}
|
|
625
|
-
|
|
626
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
627
|
-
|
|
628
|
-
let localVarUseFormData = false;
|
|
629
|
-
|
|
630
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
631
|
-
method: 'GET',
|
|
632
|
-
qs: localVarQueryParameters,
|
|
633
|
-
headers: localVarHeaderParams,
|
|
634
|
-
uri: localVarPath,
|
|
635
|
-
useQuerystring: this._useQuerystring,
|
|
636
|
-
json: true,
|
|
637
|
-
};
|
|
638
|
-
|
|
639
|
-
let authenticationPromise = Promise.resolve();
|
|
640
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
641
|
-
|
|
642
|
-
let interceptorPromise = authenticationPromise;
|
|
643
|
-
for (const interceptor of this.interceptors) {
|
|
644
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
645
|
-
}
|
|
646
|
-
|
|
647
|
-
return interceptorPromise.then(() => {
|
|
648
|
-
if (Object.keys(localVarFormParams).length) {
|
|
649
|
-
if (localVarUseFormData) {
|
|
650
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
651
|
-
} else {
|
|
652
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
653
|
-
}
|
|
654
|
-
}
|
|
655
|
-
return new Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }>((resolve, reject) => {
|
|
656
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
657
|
-
if (error) {
|
|
658
|
-
reject(error);
|
|
659
|
-
} else {
|
|
660
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
661
|
-
body = ObjectSerializer.deserialize(body, "InlineResponse2002");
|
|
662
|
-
resolve({ response: response, body: body });
|
|
663
|
-
} else {
|
|
664
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
665
|
-
}
|
|
666
|
-
}
|
|
667
|
-
});
|
|
668
|
-
});
|
|
669
|
-
});
|
|
670
|
-
}
|
|
671
|
-
/**
|
|
672
|
-
*
|
|
673
|
-
* @summary Count opt in lists
|
|
674
|
-
* @param startDateTime
|
|
675
|
-
* @param endDateTime
|
|
676
|
-
*/
|
|
677
|
-
public async fetchDashboardOptInListsCount (startDateTime: Date, endDateTime: Date, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }> {
|
|
678
|
-
const localVarPath = this.basePath + '/v1/dashboard/count/optInLists';
|
|
679
|
-
let localVarQueryParameters: any = {};
|
|
680
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
681
|
-
const produces = ['application/json'];
|
|
682
|
-
// give precedence to 'application/json'
|
|
683
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
684
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
685
|
-
} else {
|
|
686
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
687
|
-
}
|
|
688
|
-
let localVarFormParams: any = {};
|
|
689
|
-
|
|
690
|
-
// verify required parameter 'startDateTime' is not null or undefined
|
|
691
|
-
if (startDateTime === null || startDateTime === undefined) {
|
|
692
|
-
throw new Error('Required parameter startDateTime was null or undefined when calling fetchDashboardOptInListsCount.');
|
|
693
|
-
}
|
|
694
|
-
|
|
695
|
-
// verify required parameter 'endDateTime' is not null or undefined
|
|
696
|
-
if (endDateTime === null || endDateTime === undefined) {
|
|
697
|
-
throw new Error('Required parameter endDateTime was null or undefined when calling fetchDashboardOptInListsCount.');
|
|
698
|
-
}
|
|
699
|
-
|
|
700
|
-
if (startDateTime !== undefined) {
|
|
701
|
-
localVarQueryParameters['startDateTime'] = ObjectSerializer.serialize(startDateTime, "Date");
|
|
702
|
-
}
|
|
703
|
-
|
|
704
|
-
if (endDateTime !== undefined) {
|
|
705
|
-
localVarQueryParameters['endDateTime'] = ObjectSerializer.serialize(endDateTime, "Date");
|
|
706
|
-
}
|
|
707
|
-
|
|
708
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
709
|
-
|
|
710
|
-
let localVarUseFormData = false;
|
|
711
|
-
|
|
712
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
713
|
-
method: 'GET',
|
|
714
|
-
qs: localVarQueryParameters,
|
|
715
|
-
headers: localVarHeaderParams,
|
|
716
|
-
uri: localVarPath,
|
|
717
|
-
useQuerystring: this._useQuerystring,
|
|
718
|
-
json: true,
|
|
719
|
-
};
|
|
720
|
-
|
|
721
|
-
let authenticationPromise = Promise.resolve();
|
|
722
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
723
|
-
|
|
724
|
-
let interceptorPromise = authenticationPromise;
|
|
725
|
-
for (const interceptor of this.interceptors) {
|
|
726
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
727
|
-
}
|
|
728
|
-
|
|
729
|
-
return interceptorPromise.then(() => {
|
|
730
|
-
if (Object.keys(localVarFormParams).length) {
|
|
731
|
-
if (localVarUseFormData) {
|
|
732
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
733
|
-
} else {
|
|
734
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
735
|
-
}
|
|
736
|
-
}
|
|
737
|
-
return new Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }>((resolve, reject) => {
|
|
738
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
739
|
-
if (error) {
|
|
740
|
-
reject(error);
|
|
741
|
-
} else {
|
|
742
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
743
|
-
body = ObjectSerializer.deserialize(body, "InlineResponse2002");
|
|
744
|
-
resolve({ response: response, body: body });
|
|
745
|
-
} else {
|
|
746
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
747
|
-
}
|
|
748
|
-
}
|
|
749
|
-
});
|
|
750
|
-
});
|
|
751
|
-
});
|
|
752
|
-
}
|
|
753
|
-
/**
|
|
754
|
-
*
|
|
755
|
-
* @summary Count opt in sources
|
|
756
|
-
* @param startDateTime
|
|
757
|
-
* @param endDateTime
|
|
758
|
-
*/
|
|
759
|
-
public async fetchDashboardOptInSourcesCount (startDateTime: Date, endDateTime: Date, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }> {
|
|
760
|
-
const localVarPath = this.basePath + '/v1/dashboard/count/optInSources';
|
|
761
|
-
let localVarQueryParameters: any = {};
|
|
762
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
763
|
-
const produces = ['application/json'];
|
|
764
|
-
// give precedence to 'application/json'
|
|
765
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
766
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
767
|
-
} else {
|
|
768
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
769
|
-
}
|
|
770
|
-
let localVarFormParams: any = {};
|
|
771
|
-
|
|
772
|
-
// verify required parameter 'startDateTime' is not null or undefined
|
|
773
|
-
if (startDateTime === null || startDateTime === undefined) {
|
|
774
|
-
throw new Error('Required parameter startDateTime was null or undefined when calling fetchDashboardOptInSourcesCount.');
|
|
775
|
-
}
|
|
776
|
-
|
|
777
|
-
// verify required parameter 'endDateTime' is not null or undefined
|
|
778
|
-
if (endDateTime === null || endDateTime === undefined) {
|
|
779
|
-
throw new Error('Required parameter endDateTime was null or undefined when calling fetchDashboardOptInSourcesCount.');
|
|
780
|
-
}
|
|
781
|
-
|
|
782
|
-
if (startDateTime !== undefined) {
|
|
783
|
-
localVarQueryParameters['startDateTime'] = ObjectSerializer.serialize(startDateTime, "Date");
|
|
784
|
-
}
|
|
785
|
-
|
|
786
|
-
if (endDateTime !== undefined) {
|
|
787
|
-
localVarQueryParameters['endDateTime'] = ObjectSerializer.serialize(endDateTime, "Date");
|
|
788
|
-
}
|
|
789
|
-
|
|
790
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
791
|
-
|
|
792
|
-
let localVarUseFormData = false;
|
|
793
|
-
|
|
794
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
795
|
-
method: 'GET',
|
|
796
|
-
qs: localVarQueryParameters,
|
|
797
|
-
headers: localVarHeaderParams,
|
|
798
|
-
uri: localVarPath,
|
|
799
|
-
useQuerystring: this._useQuerystring,
|
|
800
|
-
json: true,
|
|
801
|
-
};
|
|
802
|
-
|
|
803
|
-
let authenticationPromise = Promise.resolve();
|
|
804
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
805
|
-
|
|
806
|
-
let interceptorPromise = authenticationPromise;
|
|
807
|
-
for (const interceptor of this.interceptors) {
|
|
808
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
809
|
-
}
|
|
810
|
-
|
|
811
|
-
return interceptorPromise.then(() => {
|
|
812
|
-
if (Object.keys(localVarFormParams).length) {
|
|
813
|
-
if (localVarUseFormData) {
|
|
814
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
815
|
-
} else {
|
|
816
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
817
|
-
}
|
|
818
|
-
}
|
|
819
|
-
return new Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }>((resolve, reject) => {
|
|
820
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
821
|
-
if (error) {
|
|
822
|
-
reject(error);
|
|
823
|
-
} else {
|
|
824
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
825
|
-
body = ObjectSerializer.deserialize(body, "InlineResponse2002");
|
|
826
|
-
resolve({ response: response, body: body });
|
|
827
|
-
} else {
|
|
828
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
829
|
-
}
|
|
830
|
-
}
|
|
831
|
-
});
|
|
832
|
-
});
|
|
833
|
-
});
|
|
834
|
-
}
|
|
835
|
-
/**
|
|
836
|
-
*
|
|
837
|
-
* @summary Count Outbound SMS
|
|
838
|
-
* @param startDateTime
|
|
839
|
-
* @param endDateTime
|
|
840
|
-
*/
|
|
841
|
-
public async fetchDashboardOutboundSMSCount (startDateTime: Date, endDateTime: Date, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }> {
|
|
842
|
-
const localVarPath = this.basePath + '/v1/dashboard/count/sms/outbound';
|
|
843
|
-
let localVarQueryParameters: any = {};
|
|
844
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
845
|
-
const produces = ['application/json'];
|
|
846
|
-
// give precedence to 'application/json'
|
|
847
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
848
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
849
|
-
} else {
|
|
850
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
851
|
-
}
|
|
852
|
-
let localVarFormParams: any = {};
|
|
853
|
-
|
|
854
|
-
// verify required parameter 'startDateTime' is not null or undefined
|
|
855
|
-
if (startDateTime === null || startDateTime === undefined) {
|
|
856
|
-
throw new Error('Required parameter startDateTime was null or undefined when calling fetchDashboardOutboundSMSCount.');
|
|
857
|
-
}
|
|
858
|
-
|
|
859
|
-
// verify required parameter 'endDateTime' is not null or undefined
|
|
860
|
-
if (endDateTime === null || endDateTime === undefined) {
|
|
861
|
-
throw new Error('Required parameter endDateTime was null or undefined when calling fetchDashboardOutboundSMSCount.');
|
|
862
|
-
}
|
|
863
|
-
|
|
864
|
-
if (startDateTime !== undefined) {
|
|
865
|
-
localVarQueryParameters['startDateTime'] = ObjectSerializer.serialize(startDateTime, "Date");
|
|
866
|
-
}
|
|
867
|
-
|
|
868
|
-
if (endDateTime !== undefined) {
|
|
869
|
-
localVarQueryParameters['endDateTime'] = ObjectSerializer.serialize(endDateTime, "Date");
|
|
870
|
-
}
|
|
871
|
-
|
|
872
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
873
|
-
|
|
874
|
-
let localVarUseFormData = false;
|
|
875
|
-
|
|
876
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
877
|
-
method: 'GET',
|
|
878
|
-
qs: localVarQueryParameters,
|
|
879
|
-
headers: localVarHeaderParams,
|
|
880
|
-
uri: localVarPath,
|
|
881
|
-
useQuerystring: this._useQuerystring,
|
|
882
|
-
json: true,
|
|
883
|
-
};
|
|
884
|
-
|
|
885
|
-
let authenticationPromise = Promise.resolve();
|
|
886
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
887
|
-
|
|
888
|
-
let interceptorPromise = authenticationPromise;
|
|
889
|
-
for (const interceptor of this.interceptors) {
|
|
890
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
891
|
-
}
|
|
892
|
-
|
|
893
|
-
return interceptorPromise.then(() => {
|
|
894
|
-
if (Object.keys(localVarFormParams).length) {
|
|
895
|
-
if (localVarUseFormData) {
|
|
896
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
897
|
-
} else {
|
|
898
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
899
|
-
}
|
|
900
|
-
}
|
|
901
|
-
return new Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }>((resolve, reject) => {
|
|
902
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
903
|
-
if (error) {
|
|
904
|
-
reject(error);
|
|
905
|
-
} else {
|
|
906
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
907
|
-
body = ObjectSerializer.deserialize(body, "InlineResponse2002");
|
|
908
|
-
resolve({ response: response, body: body });
|
|
909
|
-
} else {
|
|
910
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
911
|
-
}
|
|
912
|
-
}
|
|
913
|
-
});
|
|
914
|
-
});
|
|
915
|
-
});
|
|
916
|
-
}
|
|
917
|
-
/**
|
|
918
|
-
*
|
|
919
|
-
* @summary Count POS Machines
|
|
920
|
-
* @param startDateTime
|
|
921
|
-
* @param endDateTime
|
|
922
|
-
*/
|
|
923
|
-
public async fetchDashboardPOSMachinesCount (startDateTime: Date, endDateTime: Date, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }> {
|
|
924
|
-
const localVarPath = this.basePath + '/v1/dashboard/count/pos/machines';
|
|
925
|
-
let localVarQueryParameters: any = {};
|
|
926
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
927
|
-
const produces = ['application/json'];
|
|
928
|
-
// give precedence to 'application/json'
|
|
929
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
930
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
931
|
-
} else {
|
|
932
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
933
|
-
}
|
|
934
|
-
let localVarFormParams: any = {};
|
|
935
|
-
|
|
936
|
-
// verify required parameter 'startDateTime' is not null or undefined
|
|
937
|
-
if (startDateTime === null || startDateTime === undefined) {
|
|
938
|
-
throw new Error('Required parameter startDateTime was null or undefined when calling fetchDashboardPOSMachinesCount.');
|
|
939
|
-
}
|
|
940
|
-
|
|
941
|
-
// verify required parameter 'endDateTime' is not null or undefined
|
|
942
|
-
if (endDateTime === null || endDateTime === undefined) {
|
|
943
|
-
throw new Error('Required parameter endDateTime was null or undefined when calling fetchDashboardPOSMachinesCount.');
|
|
944
|
-
}
|
|
945
|
-
|
|
946
|
-
if (startDateTime !== undefined) {
|
|
947
|
-
localVarQueryParameters['startDateTime'] = ObjectSerializer.serialize(startDateTime, "Date");
|
|
948
|
-
}
|
|
949
|
-
|
|
950
|
-
if (endDateTime !== undefined) {
|
|
951
|
-
localVarQueryParameters['endDateTime'] = ObjectSerializer.serialize(endDateTime, "Date");
|
|
952
|
-
}
|
|
953
|
-
|
|
954
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
955
|
-
|
|
956
|
-
let localVarUseFormData = false;
|
|
957
|
-
|
|
958
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
959
|
-
method: 'GET',
|
|
960
|
-
qs: localVarQueryParameters,
|
|
961
|
-
headers: localVarHeaderParams,
|
|
962
|
-
uri: localVarPath,
|
|
963
|
-
useQuerystring: this._useQuerystring,
|
|
964
|
-
json: true,
|
|
965
|
-
};
|
|
966
|
-
|
|
967
|
-
let authenticationPromise = Promise.resolve();
|
|
968
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
969
|
-
|
|
970
|
-
let interceptorPromise = authenticationPromise;
|
|
971
|
-
for (const interceptor of this.interceptors) {
|
|
972
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
973
|
-
}
|
|
974
|
-
|
|
975
|
-
return interceptorPromise.then(() => {
|
|
976
|
-
if (Object.keys(localVarFormParams).length) {
|
|
977
|
-
if (localVarUseFormData) {
|
|
978
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
979
|
-
} else {
|
|
980
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
981
|
-
}
|
|
982
|
-
}
|
|
983
|
-
return new Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }>((resolve, reject) => {
|
|
984
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
985
|
-
if (error) {
|
|
986
|
-
reject(error);
|
|
987
|
-
} else {
|
|
988
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
989
|
-
body = ObjectSerializer.deserialize(body, "InlineResponse2002");
|
|
990
|
-
resolve({ response: response, body: body });
|
|
991
|
-
} else {
|
|
992
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
993
|
-
}
|
|
994
|
-
}
|
|
995
|
-
});
|
|
996
|
-
});
|
|
997
|
-
});
|
|
998
|
-
}
|
|
999
|
-
/**
|
|
1000
|
-
*
|
|
1001
|
-
* @summary Count POS Transactions
|
|
1002
|
-
* @param startDateTime
|
|
1003
|
-
* @param endDateTime
|
|
1004
|
-
*/
|
|
1005
|
-
public async fetchDashboardPOSTransactionsCount (startDateTime: Date, endDateTime: Date, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }> {
|
|
1006
|
-
const localVarPath = this.basePath + '/v1/dashboard/count/pos/transactions';
|
|
1007
|
-
let localVarQueryParameters: any = {};
|
|
1008
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1009
|
-
const produces = ['application/json'];
|
|
1010
|
-
// give precedence to 'application/json'
|
|
1011
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1012
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1013
|
-
} else {
|
|
1014
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1015
|
-
}
|
|
1016
|
-
let localVarFormParams: any = {};
|
|
1017
|
-
|
|
1018
|
-
// verify required parameter 'startDateTime' is not null or undefined
|
|
1019
|
-
if (startDateTime === null || startDateTime === undefined) {
|
|
1020
|
-
throw new Error('Required parameter startDateTime was null or undefined when calling fetchDashboardPOSTransactionsCount.');
|
|
1021
|
-
}
|
|
1022
|
-
|
|
1023
|
-
// verify required parameter 'endDateTime' is not null or undefined
|
|
1024
|
-
if (endDateTime === null || endDateTime === undefined) {
|
|
1025
|
-
throw new Error('Required parameter endDateTime was null or undefined when calling fetchDashboardPOSTransactionsCount.');
|
|
1026
|
-
}
|
|
1027
|
-
|
|
1028
|
-
if (startDateTime !== undefined) {
|
|
1029
|
-
localVarQueryParameters['startDateTime'] = ObjectSerializer.serialize(startDateTime, "Date");
|
|
1030
|
-
}
|
|
1031
|
-
|
|
1032
|
-
if (endDateTime !== undefined) {
|
|
1033
|
-
localVarQueryParameters['endDateTime'] = ObjectSerializer.serialize(endDateTime, "Date");
|
|
1034
|
-
}
|
|
1035
|
-
|
|
1036
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1037
|
-
|
|
1038
|
-
let localVarUseFormData = false;
|
|
1039
|
-
|
|
1040
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
1041
|
-
method: 'GET',
|
|
1042
|
-
qs: localVarQueryParameters,
|
|
1043
|
-
headers: localVarHeaderParams,
|
|
1044
|
-
uri: localVarPath,
|
|
1045
|
-
useQuerystring: this._useQuerystring,
|
|
1046
|
-
json: true,
|
|
1047
|
-
};
|
|
1048
|
-
|
|
1049
|
-
let authenticationPromise = Promise.resolve();
|
|
1050
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1051
|
-
|
|
1052
|
-
let interceptorPromise = authenticationPromise;
|
|
1053
|
-
for (const interceptor of this.interceptors) {
|
|
1054
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1055
|
-
}
|
|
1056
|
-
|
|
1057
|
-
return interceptorPromise.then(() => {
|
|
1058
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1059
|
-
if (localVarUseFormData) {
|
|
1060
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1061
|
-
} else {
|
|
1062
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1063
|
-
}
|
|
1064
|
-
}
|
|
1065
|
-
return new Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }>((resolve, reject) => {
|
|
1066
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1067
|
-
if (error) {
|
|
1068
|
-
reject(error);
|
|
1069
|
-
} else {
|
|
1070
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1071
|
-
body = ObjectSerializer.deserialize(body, "InlineResponse2002");
|
|
1072
|
-
resolve({ response: response, body: body });
|
|
1073
|
-
} else {
|
|
1074
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
1075
|
-
}
|
|
1076
|
-
}
|
|
1077
|
-
});
|
|
1078
|
-
});
|
|
1079
|
-
});
|
|
1080
|
-
}
|
|
1081
|
-
/**
|
|
1082
|
-
*
|
|
1083
|
-
* @summary Count Performances
|
|
1084
|
-
* @param startDateTime
|
|
1085
|
-
* @param endDateTime
|
|
1086
|
-
*/
|
|
1087
|
-
public async fetchDashboardPerformancesCount (startDateTime: Date, endDateTime: Date, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }> {
|
|
1088
|
-
const localVarPath = this.basePath + '/v1/dashboard/count/performances';
|
|
1089
|
-
let localVarQueryParameters: any = {};
|
|
1090
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1091
|
-
const produces = ['application/json'];
|
|
1092
|
-
// give precedence to 'application/json'
|
|
1093
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1094
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1095
|
-
} else {
|
|
1096
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1097
|
-
}
|
|
1098
|
-
let localVarFormParams: any = {};
|
|
1099
|
-
|
|
1100
|
-
// verify required parameter 'startDateTime' is not null or undefined
|
|
1101
|
-
if (startDateTime === null || startDateTime === undefined) {
|
|
1102
|
-
throw new Error('Required parameter startDateTime was null or undefined when calling fetchDashboardPerformancesCount.');
|
|
1103
|
-
}
|
|
1104
|
-
|
|
1105
|
-
// verify required parameter 'endDateTime' is not null or undefined
|
|
1106
|
-
if (endDateTime === null || endDateTime === undefined) {
|
|
1107
|
-
throw new Error('Required parameter endDateTime was null or undefined when calling fetchDashboardPerformancesCount.');
|
|
1108
|
-
}
|
|
1109
|
-
|
|
1110
|
-
if (startDateTime !== undefined) {
|
|
1111
|
-
localVarQueryParameters['startDateTime'] = ObjectSerializer.serialize(startDateTime, "Date");
|
|
1112
|
-
}
|
|
1113
|
-
|
|
1114
|
-
if (endDateTime !== undefined) {
|
|
1115
|
-
localVarQueryParameters['endDateTime'] = ObjectSerializer.serialize(endDateTime, "Date");
|
|
1116
|
-
}
|
|
1117
|
-
|
|
1118
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1119
|
-
|
|
1120
|
-
let localVarUseFormData = false;
|
|
1121
|
-
|
|
1122
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
1123
|
-
method: 'GET',
|
|
1124
|
-
qs: localVarQueryParameters,
|
|
1125
|
-
headers: localVarHeaderParams,
|
|
1126
|
-
uri: localVarPath,
|
|
1127
|
-
useQuerystring: this._useQuerystring,
|
|
1128
|
-
json: true,
|
|
1129
|
-
};
|
|
1130
|
-
|
|
1131
|
-
let authenticationPromise = Promise.resolve();
|
|
1132
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1133
|
-
|
|
1134
|
-
let interceptorPromise = authenticationPromise;
|
|
1135
|
-
for (const interceptor of this.interceptors) {
|
|
1136
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1137
|
-
}
|
|
1138
|
-
|
|
1139
|
-
return interceptorPromise.then(() => {
|
|
1140
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1141
|
-
if (localVarUseFormData) {
|
|
1142
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1143
|
-
} else {
|
|
1144
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1145
|
-
}
|
|
1146
|
-
}
|
|
1147
|
-
return new Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }>((resolve, reject) => {
|
|
1148
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1149
|
-
if (error) {
|
|
1150
|
-
reject(error);
|
|
1151
|
-
} else {
|
|
1152
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1153
|
-
body = ObjectSerializer.deserialize(body, "InlineResponse2002");
|
|
1154
|
-
resolve({ response: response, body: body });
|
|
1155
|
-
} else {
|
|
1156
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
1157
|
-
}
|
|
1158
|
-
}
|
|
1159
|
-
});
|
|
1160
|
-
});
|
|
1161
|
-
});
|
|
1162
|
-
}
|
|
1163
|
-
/**
|
|
1164
|
-
*
|
|
1165
|
-
* @summary Count phone numbers
|
|
1166
|
-
* @param startDateTime
|
|
1167
|
-
* @param endDateTime
|
|
1168
|
-
*/
|
|
1169
|
-
public async fetchDashboardPhoneNumbersCount (startDateTime: Date, endDateTime: Date, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }> {
|
|
1170
|
-
const localVarPath = this.basePath + '/v1/dashboard/count/phoneNumbers';
|
|
1171
|
-
let localVarQueryParameters: any = {};
|
|
1172
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1173
|
-
const produces = ['application/json'];
|
|
1174
|
-
// give precedence to 'application/json'
|
|
1175
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1176
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1177
|
-
} else {
|
|
1178
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1179
|
-
}
|
|
1180
|
-
let localVarFormParams: any = {};
|
|
1181
|
-
|
|
1182
|
-
// verify required parameter 'startDateTime' is not null or undefined
|
|
1183
|
-
if (startDateTime === null || startDateTime === undefined) {
|
|
1184
|
-
throw new Error('Required parameter startDateTime was null or undefined when calling fetchDashboardPhoneNumbersCount.');
|
|
1185
|
-
}
|
|
1186
|
-
|
|
1187
|
-
// verify required parameter 'endDateTime' is not null or undefined
|
|
1188
|
-
if (endDateTime === null || endDateTime === undefined) {
|
|
1189
|
-
throw new Error('Required parameter endDateTime was null or undefined when calling fetchDashboardPhoneNumbersCount.');
|
|
1190
|
-
}
|
|
1191
|
-
|
|
1192
|
-
if (startDateTime !== undefined) {
|
|
1193
|
-
localVarQueryParameters['startDateTime'] = ObjectSerializer.serialize(startDateTime, "Date");
|
|
1194
|
-
}
|
|
1195
|
-
|
|
1196
|
-
if (endDateTime !== undefined) {
|
|
1197
|
-
localVarQueryParameters['endDateTime'] = ObjectSerializer.serialize(endDateTime, "Date");
|
|
1198
|
-
}
|
|
1199
|
-
|
|
1200
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1201
|
-
|
|
1202
|
-
let localVarUseFormData = false;
|
|
1203
|
-
|
|
1204
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
1205
|
-
method: 'GET',
|
|
1206
|
-
qs: localVarQueryParameters,
|
|
1207
|
-
headers: localVarHeaderParams,
|
|
1208
|
-
uri: localVarPath,
|
|
1209
|
-
useQuerystring: this._useQuerystring,
|
|
1210
|
-
json: true,
|
|
1211
|
-
};
|
|
1212
|
-
|
|
1213
|
-
let authenticationPromise = Promise.resolve();
|
|
1214
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1215
|
-
|
|
1216
|
-
let interceptorPromise = authenticationPromise;
|
|
1217
|
-
for (const interceptor of this.interceptors) {
|
|
1218
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1219
|
-
}
|
|
1220
|
-
|
|
1221
|
-
return interceptorPromise.then(() => {
|
|
1222
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1223
|
-
if (localVarUseFormData) {
|
|
1224
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1225
|
-
} else {
|
|
1226
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1227
|
-
}
|
|
1228
|
-
}
|
|
1229
|
-
return new Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }>((resolve, reject) => {
|
|
1230
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1231
|
-
if (error) {
|
|
1232
|
-
reject(error);
|
|
1233
|
-
} else {
|
|
1234
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1235
|
-
body = ObjectSerializer.deserialize(body, "InlineResponse2002");
|
|
1236
|
-
resolve({ response: response, body: body });
|
|
1237
|
-
} else {
|
|
1238
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
1239
|
-
}
|
|
1240
|
-
}
|
|
1241
|
-
});
|
|
1242
|
-
});
|
|
1243
|
-
});
|
|
1244
|
-
}
|
|
1245
|
-
/**
|
|
1246
|
-
*
|
|
1247
|
-
* @summary Count POS redemptions
|
|
1248
|
-
* @param startDateTime
|
|
1249
|
-
* @param endDateTime
|
|
1250
|
-
*/
|
|
1251
|
-
public async fetchDashboardRedemptionsCount (startDateTime: Date, endDateTime: Date, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }> {
|
|
1252
|
-
const localVarPath = this.basePath + '/v1/dashboard/count/pos/redemptions';
|
|
1253
|
-
let localVarQueryParameters: any = {};
|
|
1254
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1255
|
-
const produces = ['application/json'];
|
|
1256
|
-
// give precedence to 'application/json'
|
|
1257
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1258
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1259
|
-
} else {
|
|
1260
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1261
|
-
}
|
|
1262
|
-
let localVarFormParams: any = {};
|
|
1263
|
-
|
|
1264
|
-
// verify required parameter 'startDateTime' is not null or undefined
|
|
1265
|
-
if (startDateTime === null || startDateTime === undefined) {
|
|
1266
|
-
throw new Error('Required parameter startDateTime was null or undefined when calling fetchDashboardRedemptionsCount.');
|
|
1267
|
-
}
|
|
1268
|
-
|
|
1269
|
-
// verify required parameter 'endDateTime' is not null or undefined
|
|
1270
|
-
if (endDateTime === null || endDateTime === undefined) {
|
|
1271
|
-
throw new Error('Required parameter endDateTime was null or undefined when calling fetchDashboardRedemptionsCount.');
|
|
1272
|
-
}
|
|
1273
|
-
|
|
1274
|
-
if (startDateTime !== undefined) {
|
|
1275
|
-
localVarQueryParameters['startDateTime'] = ObjectSerializer.serialize(startDateTime, "Date");
|
|
1276
|
-
}
|
|
1277
|
-
|
|
1278
|
-
if (endDateTime !== undefined) {
|
|
1279
|
-
localVarQueryParameters['endDateTime'] = ObjectSerializer.serialize(endDateTime, "Date");
|
|
1280
|
-
}
|
|
1281
|
-
|
|
1282
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1283
|
-
|
|
1284
|
-
let localVarUseFormData = false;
|
|
1285
|
-
|
|
1286
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
1287
|
-
method: 'GET',
|
|
1288
|
-
qs: localVarQueryParameters,
|
|
1289
|
-
headers: localVarHeaderParams,
|
|
1290
|
-
uri: localVarPath,
|
|
1291
|
-
useQuerystring: this._useQuerystring,
|
|
1292
|
-
json: true,
|
|
1293
|
-
};
|
|
1294
|
-
|
|
1295
|
-
let authenticationPromise = Promise.resolve();
|
|
1296
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1297
|
-
|
|
1298
|
-
let interceptorPromise = authenticationPromise;
|
|
1299
|
-
for (const interceptor of this.interceptors) {
|
|
1300
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1301
|
-
}
|
|
1302
|
-
|
|
1303
|
-
return interceptorPromise.then(() => {
|
|
1304
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1305
|
-
if (localVarUseFormData) {
|
|
1306
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1307
|
-
} else {
|
|
1308
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1309
|
-
}
|
|
1310
|
-
}
|
|
1311
|
-
return new Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }>((resolve, reject) => {
|
|
1312
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1313
|
-
if (error) {
|
|
1314
|
-
reject(error);
|
|
1315
|
-
} else {
|
|
1316
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1317
|
-
body = ObjectSerializer.deserialize(body, "InlineResponse2002");
|
|
1318
|
-
resolve({ response: response, body: body });
|
|
1319
|
-
} else {
|
|
1320
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
1321
|
-
}
|
|
1322
|
-
}
|
|
1323
|
-
});
|
|
1324
|
-
});
|
|
1325
|
-
});
|
|
1326
|
-
}
|
|
1327
|
-
/**
|
|
1328
|
-
*
|
|
1329
|
-
* @summary Count POS refunds
|
|
1330
|
-
* @param startDateTime
|
|
1331
|
-
* @param endDateTime
|
|
1332
|
-
*/
|
|
1333
|
-
public async fetchDashboardRefundsCount (startDateTime: Date, endDateTime: Date, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }> {
|
|
1334
|
-
const localVarPath = this.basePath + '/v1/dashboard/count/pos/refunds';
|
|
1335
|
-
let localVarQueryParameters: any = {};
|
|
1336
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1337
|
-
const produces = ['application/json'];
|
|
1338
|
-
// give precedence to 'application/json'
|
|
1339
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1340
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1341
|
-
} else {
|
|
1342
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1343
|
-
}
|
|
1344
|
-
let localVarFormParams: any = {};
|
|
1345
|
-
|
|
1346
|
-
// verify required parameter 'startDateTime' is not null or undefined
|
|
1347
|
-
if (startDateTime === null || startDateTime === undefined) {
|
|
1348
|
-
throw new Error('Required parameter startDateTime was null or undefined when calling fetchDashboardRefundsCount.');
|
|
1349
|
-
}
|
|
1350
|
-
|
|
1351
|
-
// verify required parameter 'endDateTime' is not null or undefined
|
|
1352
|
-
if (endDateTime === null || endDateTime === undefined) {
|
|
1353
|
-
throw new Error('Required parameter endDateTime was null or undefined when calling fetchDashboardRefundsCount.');
|
|
1354
|
-
}
|
|
1355
|
-
|
|
1356
|
-
if (startDateTime !== undefined) {
|
|
1357
|
-
localVarQueryParameters['startDateTime'] = ObjectSerializer.serialize(startDateTime, "Date");
|
|
1358
|
-
}
|
|
1359
|
-
|
|
1360
|
-
if (endDateTime !== undefined) {
|
|
1361
|
-
localVarQueryParameters['endDateTime'] = ObjectSerializer.serialize(endDateTime, "Date");
|
|
1362
|
-
}
|
|
1363
|
-
|
|
1364
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1365
|
-
|
|
1366
|
-
let localVarUseFormData = false;
|
|
1367
|
-
|
|
1368
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
1369
|
-
method: 'GET',
|
|
1370
|
-
qs: localVarQueryParameters,
|
|
1371
|
-
headers: localVarHeaderParams,
|
|
1372
|
-
uri: localVarPath,
|
|
1373
|
-
useQuerystring: this._useQuerystring,
|
|
1374
|
-
json: true,
|
|
1375
|
-
};
|
|
1376
|
-
|
|
1377
|
-
let authenticationPromise = Promise.resolve();
|
|
1378
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1379
|
-
|
|
1380
|
-
let interceptorPromise = authenticationPromise;
|
|
1381
|
-
for (const interceptor of this.interceptors) {
|
|
1382
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1383
|
-
}
|
|
1384
|
-
|
|
1385
|
-
return interceptorPromise.then(() => {
|
|
1386
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1387
|
-
if (localVarUseFormData) {
|
|
1388
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1389
|
-
} else {
|
|
1390
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1391
|
-
}
|
|
1392
|
-
}
|
|
1393
|
-
return new Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }>((resolve, reject) => {
|
|
1394
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1395
|
-
if (error) {
|
|
1396
|
-
reject(error);
|
|
1397
|
-
} else {
|
|
1398
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1399
|
-
body = ObjectSerializer.deserialize(body, "InlineResponse2002");
|
|
1400
|
-
resolve({ response: response, body: body });
|
|
1401
|
-
} else {
|
|
1402
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
1403
|
-
}
|
|
1404
|
-
}
|
|
1405
|
-
});
|
|
1406
|
-
});
|
|
1407
|
-
});
|
|
1408
|
-
}
|
|
1409
|
-
/**
|
|
1410
|
-
*
|
|
1411
|
-
* @summary Count Wallet page views
|
|
1412
|
-
* @param startDateTime
|
|
1413
|
-
* @param endDateTime
|
|
1414
|
-
*/
|
|
1415
|
-
public async fetchDashboardWalletPageViewsCount (startDateTime: Date, endDateTime: Date, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }> {
|
|
1416
|
-
const localVarPath = this.basePath + '/v1/dashboard/count/wallet/pageViews';
|
|
1417
|
-
let localVarQueryParameters: any = {};
|
|
1418
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1419
|
-
const produces = ['application/json'];
|
|
1420
|
-
// give precedence to 'application/json'
|
|
1421
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1422
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1423
|
-
} else {
|
|
1424
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1425
|
-
}
|
|
1426
|
-
let localVarFormParams: any = {};
|
|
1427
|
-
|
|
1428
|
-
// verify required parameter 'startDateTime' is not null or undefined
|
|
1429
|
-
if (startDateTime === null || startDateTime === undefined) {
|
|
1430
|
-
throw new Error('Required parameter startDateTime was null or undefined when calling fetchDashboardWalletPageViewsCount.');
|
|
1431
|
-
}
|
|
1432
|
-
|
|
1433
|
-
// verify required parameter 'endDateTime' is not null or undefined
|
|
1434
|
-
if (endDateTime === null || endDateTime === undefined) {
|
|
1435
|
-
throw new Error('Required parameter endDateTime was null or undefined when calling fetchDashboardWalletPageViewsCount.');
|
|
1436
|
-
}
|
|
1437
|
-
|
|
1438
|
-
if (startDateTime !== undefined) {
|
|
1439
|
-
localVarQueryParameters['startDateTime'] = ObjectSerializer.serialize(startDateTime, "Date");
|
|
1440
|
-
}
|
|
1441
|
-
|
|
1442
|
-
if (endDateTime !== undefined) {
|
|
1443
|
-
localVarQueryParameters['endDateTime'] = ObjectSerializer.serialize(endDateTime, "Date");
|
|
1444
|
-
}
|
|
1445
|
-
|
|
1446
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1447
|
-
|
|
1448
|
-
let localVarUseFormData = false;
|
|
1449
|
-
|
|
1450
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
1451
|
-
method: 'GET',
|
|
1452
|
-
qs: localVarQueryParameters,
|
|
1453
|
-
headers: localVarHeaderParams,
|
|
1454
|
-
uri: localVarPath,
|
|
1455
|
-
useQuerystring: this._useQuerystring,
|
|
1456
|
-
json: true,
|
|
1457
|
-
};
|
|
1458
|
-
|
|
1459
|
-
let authenticationPromise = Promise.resolve();
|
|
1460
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1461
|
-
|
|
1462
|
-
let interceptorPromise = authenticationPromise;
|
|
1463
|
-
for (const interceptor of this.interceptors) {
|
|
1464
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1465
|
-
}
|
|
1466
|
-
|
|
1467
|
-
return interceptorPromise.then(() => {
|
|
1468
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1469
|
-
if (localVarUseFormData) {
|
|
1470
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1471
|
-
} else {
|
|
1472
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1473
|
-
}
|
|
1474
|
-
}
|
|
1475
|
-
return new Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }>((resolve, reject) => {
|
|
1476
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1477
|
-
if (error) {
|
|
1478
|
-
reject(error);
|
|
1479
|
-
} else {
|
|
1480
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1481
|
-
body = ObjectSerializer.deserialize(body, "InlineResponse2002");
|
|
1482
|
-
resolve({ response: response, body: body });
|
|
1483
|
-
} else {
|
|
1484
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
1485
|
-
}
|
|
1486
|
-
}
|
|
1487
|
-
});
|
|
1488
|
-
});
|
|
1489
|
-
});
|
|
1490
|
-
}
|
|
1491
|
-
/**
|
|
1492
|
-
*
|
|
1493
|
-
* @summary Fetch widgets catalog
|
|
1494
|
-
*/
|
|
1495
|
-
public async fetchDashboardWidgetsCatalog (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<DashboardWidget>; }> {
|
|
1496
|
-
const localVarPath = this.basePath + '/v1/dashboard/widgets';
|
|
1497
|
-
let localVarQueryParameters: any = {};
|
|
1498
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1499
|
-
const produces = ['application/json'];
|
|
1500
|
-
// give precedence to 'application/json'
|
|
1501
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1502
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1503
|
-
} else {
|
|
1504
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1505
|
-
}
|
|
1506
|
-
let localVarFormParams: any = {};
|
|
1507
|
-
|
|
1508
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1509
|
-
|
|
1510
|
-
let localVarUseFormData = false;
|
|
1511
|
-
|
|
1512
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
1513
|
-
method: 'GET',
|
|
1514
|
-
qs: localVarQueryParameters,
|
|
1515
|
-
headers: localVarHeaderParams,
|
|
1516
|
-
uri: localVarPath,
|
|
1517
|
-
useQuerystring: this._useQuerystring,
|
|
1518
|
-
json: true,
|
|
1519
|
-
};
|
|
1520
|
-
|
|
1521
|
-
let authenticationPromise = Promise.resolve();
|
|
1522
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1523
|
-
|
|
1524
|
-
let interceptorPromise = authenticationPromise;
|
|
1525
|
-
for (const interceptor of this.interceptors) {
|
|
1526
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1527
|
-
}
|
|
1528
|
-
|
|
1529
|
-
return interceptorPromise.then(() => {
|
|
1530
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1531
|
-
if (localVarUseFormData) {
|
|
1532
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1533
|
-
} else {
|
|
1534
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1535
|
-
}
|
|
1536
|
-
}
|
|
1537
|
-
return new Promise<{ response: http.IncomingMessage; body: Array<DashboardWidget>; }>((resolve, reject) => {
|
|
1538
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1539
|
-
if (error) {
|
|
1540
|
-
reject(error);
|
|
1541
|
-
} else {
|
|
1542
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1543
|
-
body = ObjectSerializer.deserialize(body, "Array<DashboardWidget>");
|
|
1544
|
-
resolve({ response: response, body: body });
|
|
1545
|
-
} else {
|
|
1546
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
1547
|
-
}
|
|
1548
|
-
}
|
|
1549
|
-
});
|
|
1550
|
-
});
|
|
1551
|
-
});
|
|
1552
|
-
}
|
|
1553
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* wallet-api
|
|
3
|
+
* API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.1.3
|
|
6
|
+
* Contact: development@wallet.inc
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
import localVarRequest from 'request';
|
|
15
|
+
import http from 'http';
|
|
16
|
+
|
|
17
|
+
/* tslint:disable:no-unused-locals */
|
|
18
|
+
import { AuthError } from '../model/authError';
|
|
19
|
+
import { DashboardWidget } from '../model/dashboardWidget';
|
|
20
|
+
import { FalsumError } from '../model/falsumError';
|
|
21
|
+
import { InlineResponse2002 } from '../model/inlineResponse2002';
|
|
22
|
+
import { InlineResponse2003 } from '../model/inlineResponse2003';
|
|
23
|
+
import { InternalServerError } from '../model/internalServerError';
|
|
24
|
+
|
|
25
|
+
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
|
|
26
|
+
import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models';
|
|
27
|
+
|
|
28
|
+
import { HttpError, RequestFile } from './apis';
|
|
29
|
+
|
|
30
|
+
let defaultBasePath = 'https://api.wall.et';
|
|
31
|
+
|
|
32
|
+
// ===============================================
|
|
33
|
+
// This file is autogenerated - Please do not edit
|
|
34
|
+
// ===============================================
|
|
35
|
+
|
|
36
|
+
export enum DashboardApiApiKeys {
|
|
37
|
+
api_key,
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export class DashboardApi {
|
|
41
|
+
protected _basePath = defaultBasePath;
|
|
42
|
+
protected _defaultHeaders : any = {};
|
|
43
|
+
protected _useQuerystring : boolean = false;
|
|
44
|
+
|
|
45
|
+
protected authentications = {
|
|
46
|
+
'default': <Authentication>new VoidAuth(),
|
|
47
|
+
'api_key': new ApiKeyAuth('header', 'access-token'),
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
protected interceptors: Interceptor[] = [];
|
|
51
|
+
|
|
52
|
+
constructor(basePath?: string);
|
|
53
|
+
constructor(basePathOrUsername: string, password?: string, basePath?: string) {
|
|
54
|
+
if (password) {
|
|
55
|
+
if (basePath) {
|
|
56
|
+
this.basePath = basePath;
|
|
57
|
+
}
|
|
58
|
+
} else {
|
|
59
|
+
if (basePathOrUsername) {
|
|
60
|
+
this.basePath = basePathOrUsername
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
set useQuerystring(value: boolean) {
|
|
66
|
+
this._useQuerystring = value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
set basePath(basePath: string) {
|
|
70
|
+
this._basePath = basePath;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
set defaultHeaders(defaultHeaders: any) {
|
|
74
|
+
this._defaultHeaders = defaultHeaders;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
get defaultHeaders() {
|
|
78
|
+
return this._defaultHeaders;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
get basePath() {
|
|
82
|
+
return this._basePath;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
public setDefaultAuthentication(auth: Authentication) {
|
|
86
|
+
this.authentications.default = auth;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
public setApiKey(key: DashboardApiApiKeys, value: string) {
|
|
90
|
+
(this.authentications as any)[DashboardApiApiKeys[key]].apiKey = value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
public addInterceptor(interceptor: Interceptor) {
|
|
94
|
+
this.interceptors.push(interceptor);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @summary Count active static voucher campaigns
|
|
100
|
+
* @param startDateTime
|
|
101
|
+
* @param endDateTime
|
|
102
|
+
*/
|
|
103
|
+
public async fetchDashboardActiveStaticVoucherCampaignsCount (startDateTime: Date, endDateTime: Date, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }> {
|
|
104
|
+
const localVarPath = this.basePath + '/v1/dashboard/count/staticVoucherCampaigns/active';
|
|
105
|
+
let localVarQueryParameters: any = {};
|
|
106
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
107
|
+
const produces = ['application/json'];
|
|
108
|
+
// give precedence to 'application/json'
|
|
109
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
110
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
111
|
+
} else {
|
|
112
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
113
|
+
}
|
|
114
|
+
let localVarFormParams: any = {};
|
|
115
|
+
|
|
116
|
+
// verify required parameter 'startDateTime' is not null or undefined
|
|
117
|
+
if (startDateTime === null || startDateTime === undefined) {
|
|
118
|
+
throw new Error('Required parameter startDateTime was null or undefined when calling fetchDashboardActiveStaticVoucherCampaignsCount.');
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// verify required parameter 'endDateTime' is not null or undefined
|
|
122
|
+
if (endDateTime === null || endDateTime === undefined) {
|
|
123
|
+
throw new Error('Required parameter endDateTime was null or undefined when calling fetchDashboardActiveStaticVoucherCampaignsCount.');
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
if (startDateTime !== undefined) {
|
|
127
|
+
localVarQueryParameters['startDateTime'] = ObjectSerializer.serialize(startDateTime, "Date");
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
if (endDateTime !== undefined) {
|
|
131
|
+
localVarQueryParameters['endDateTime'] = ObjectSerializer.serialize(endDateTime, "Date");
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
135
|
+
|
|
136
|
+
let localVarUseFormData = false;
|
|
137
|
+
|
|
138
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
139
|
+
method: 'GET',
|
|
140
|
+
qs: localVarQueryParameters,
|
|
141
|
+
headers: localVarHeaderParams,
|
|
142
|
+
uri: localVarPath,
|
|
143
|
+
useQuerystring: this._useQuerystring,
|
|
144
|
+
json: true,
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
let authenticationPromise = Promise.resolve();
|
|
148
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
149
|
+
|
|
150
|
+
let interceptorPromise = authenticationPromise;
|
|
151
|
+
for (const interceptor of this.interceptors) {
|
|
152
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
return interceptorPromise.then(() => {
|
|
156
|
+
if (Object.keys(localVarFormParams).length) {
|
|
157
|
+
if (localVarUseFormData) {
|
|
158
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
159
|
+
} else {
|
|
160
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
return new Promise<{ response: http.IncomingMessage; body: InlineResponse2003; }>((resolve, reject) => {
|
|
164
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
165
|
+
if (error) {
|
|
166
|
+
reject(error);
|
|
167
|
+
} else {
|
|
168
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
169
|
+
body = ObjectSerializer.deserialize(body, "InlineResponse2003");
|
|
170
|
+
resolve({ response: response, body: body });
|
|
171
|
+
} else {
|
|
172
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
});
|
|
176
|
+
});
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
*
|
|
181
|
+
* @summary Count active static vouchers
|
|
182
|
+
* @param startDateTime
|
|
183
|
+
* @param endDateTime
|
|
184
|
+
*/
|
|
185
|
+
public async fetchDashboardActiveStaticVouchersCount (startDateTime: Date, endDateTime: Date, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }> {
|
|
186
|
+
const localVarPath = this.basePath + '/v1/dashboard/count/staticVouchers/active';
|
|
187
|
+
let localVarQueryParameters: any = {};
|
|
188
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
189
|
+
const produces = ['application/json'];
|
|
190
|
+
// give precedence to 'application/json'
|
|
191
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
192
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
193
|
+
} else {
|
|
194
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
195
|
+
}
|
|
196
|
+
let localVarFormParams: any = {};
|
|
197
|
+
|
|
198
|
+
// verify required parameter 'startDateTime' is not null or undefined
|
|
199
|
+
if (startDateTime === null || startDateTime === undefined) {
|
|
200
|
+
throw new Error('Required parameter startDateTime was null or undefined when calling fetchDashboardActiveStaticVouchersCount.');
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
// verify required parameter 'endDateTime' is not null or undefined
|
|
204
|
+
if (endDateTime === null || endDateTime === undefined) {
|
|
205
|
+
throw new Error('Required parameter endDateTime was null or undefined when calling fetchDashboardActiveStaticVouchersCount.');
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
if (startDateTime !== undefined) {
|
|
209
|
+
localVarQueryParameters['startDateTime'] = ObjectSerializer.serialize(startDateTime, "Date");
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
if (endDateTime !== undefined) {
|
|
213
|
+
localVarQueryParameters['endDateTime'] = ObjectSerializer.serialize(endDateTime, "Date");
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
217
|
+
|
|
218
|
+
let localVarUseFormData = false;
|
|
219
|
+
|
|
220
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
221
|
+
method: 'GET',
|
|
222
|
+
qs: localVarQueryParameters,
|
|
223
|
+
headers: localVarHeaderParams,
|
|
224
|
+
uri: localVarPath,
|
|
225
|
+
useQuerystring: this._useQuerystring,
|
|
226
|
+
json: true,
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
let authenticationPromise = Promise.resolve();
|
|
230
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
231
|
+
|
|
232
|
+
let interceptorPromise = authenticationPromise;
|
|
233
|
+
for (const interceptor of this.interceptors) {
|
|
234
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
return interceptorPromise.then(() => {
|
|
238
|
+
if (Object.keys(localVarFormParams).length) {
|
|
239
|
+
if (localVarUseFormData) {
|
|
240
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
241
|
+
} else {
|
|
242
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
return new Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }>((resolve, reject) => {
|
|
246
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
247
|
+
if (error) {
|
|
248
|
+
reject(error);
|
|
249
|
+
} else {
|
|
250
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
251
|
+
body = ObjectSerializer.deserialize(body, "InlineResponse2002");
|
|
252
|
+
resolve({ response: response, body: body });
|
|
253
|
+
} else {
|
|
254
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
});
|
|
258
|
+
});
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
*
|
|
263
|
+
* @summary Count Apple Wallet Subscribers
|
|
264
|
+
* @param startDateTime
|
|
265
|
+
* @param endDateTime
|
|
266
|
+
*/
|
|
267
|
+
public async fetchDashboardAppleWalletSubscribersCount (startDateTime: Date, endDateTime: Date, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }> {
|
|
268
|
+
const localVarPath = this.basePath + '/v1/dashboard/count/appleWallet/subscribers';
|
|
269
|
+
let localVarQueryParameters: any = {};
|
|
270
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
271
|
+
const produces = ['application/json'];
|
|
272
|
+
// give precedence to 'application/json'
|
|
273
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
274
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
275
|
+
} else {
|
|
276
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
277
|
+
}
|
|
278
|
+
let localVarFormParams: any = {};
|
|
279
|
+
|
|
280
|
+
// verify required parameter 'startDateTime' is not null or undefined
|
|
281
|
+
if (startDateTime === null || startDateTime === undefined) {
|
|
282
|
+
throw new Error('Required parameter startDateTime was null or undefined when calling fetchDashboardAppleWalletSubscribersCount.');
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
// verify required parameter 'endDateTime' is not null or undefined
|
|
286
|
+
if (endDateTime === null || endDateTime === undefined) {
|
|
287
|
+
throw new Error('Required parameter endDateTime was null or undefined when calling fetchDashboardAppleWalletSubscribersCount.');
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
if (startDateTime !== undefined) {
|
|
291
|
+
localVarQueryParameters['startDateTime'] = ObjectSerializer.serialize(startDateTime, "Date");
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
if (endDateTime !== undefined) {
|
|
295
|
+
localVarQueryParameters['endDateTime'] = ObjectSerializer.serialize(endDateTime, "Date");
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
299
|
+
|
|
300
|
+
let localVarUseFormData = false;
|
|
301
|
+
|
|
302
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
303
|
+
method: 'GET',
|
|
304
|
+
qs: localVarQueryParameters,
|
|
305
|
+
headers: localVarHeaderParams,
|
|
306
|
+
uri: localVarPath,
|
|
307
|
+
useQuerystring: this._useQuerystring,
|
|
308
|
+
json: true,
|
|
309
|
+
};
|
|
310
|
+
|
|
311
|
+
let authenticationPromise = Promise.resolve();
|
|
312
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
313
|
+
|
|
314
|
+
let interceptorPromise = authenticationPromise;
|
|
315
|
+
for (const interceptor of this.interceptors) {
|
|
316
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
return interceptorPromise.then(() => {
|
|
320
|
+
if (Object.keys(localVarFormParams).length) {
|
|
321
|
+
if (localVarUseFormData) {
|
|
322
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
323
|
+
} else {
|
|
324
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
return new Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }>((resolve, reject) => {
|
|
328
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
329
|
+
if (error) {
|
|
330
|
+
reject(error);
|
|
331
|
+
} else {
|
|
332
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
333
|
+
body = ObjectSerializer.deserialize(body, "InlineResponse2002");
|
|
334
|
+
resolve({ response: response, body: body });
|
|
335
|
+
} else {
|
|
336
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
});
|
|
340
|
+
});
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
*
|
|
345
|
+
* @summary Count employees
|
|
346
|
+
* @param startDateTime
|
|
347
|
+
* @param endDateTime
|
|
348
|
+
*/
|
|
349
|
+
public async fetchDashboardEmployeesCount (startDateTime: Date, endDateTime: Date, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }> {
|
|
350
|
+
const localVarPath = this.basePath + '/v1/dashboard/count/employees';
|
|
351
|
+
let localVarQueryParameters: any = {};
|
|
352
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
353
|
+
const produces = ['application/json'];
|
|
354
|
+
// give precedence to 'application/json'
|
|
355
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
356
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
357
|
+
} else {
|
|
358
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
359
|
+
}
|
|
360
|
+
let localVarFormParams: any = {};
|
|
361
|
+
|
|
362
|
+
// verify required parameter 'startDateTime' is not null or undefined
|
|
363
|
+
if (startDateTime === null || startDateTime === undefined) {
|
|
364
|
+
throw new Error('Required parameter startDateTime was null or undefined when calling fetchDashboardEmployeesCount.');
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
// verify required parameter 'endDateTime' is not null or undefined
|
|
368
|
+
if (endDateTime === null || endDateTime === undefined) {
|
|
369
|
+
throw new Error('Required parameter endDateTime was null or undefined when calling fetchDashboardEmployeesCount.');
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
if (startDateTime !== undefined) {
|
|
373
|
+
localVarQueryParameters['startDateTime'] = ObjectSerializer.serialize(startDateTime, "Date");
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
if (endDateTime !== undefined) {
|
|
377
|
+
localVarQueryParameters['endDateTime'] = ObjectSerializer.serialize(endDateTime, "Date");
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
381
|
+
|
|
382
|
+
let localVarUseFormData = false;
|
|
383
|
+
|
|
384
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
385
|
+
method: 'GET',
|
|
386
|
+
qs: localVarQueryParameters,
|
|
387
|
+
headers: localVarHeaderParams,
|
|
388
|
+
uri: localVarPath,
|
|
389
|
+
useQuerystring: this._useQuerystring,
|
|
390
|
+
json: true,
|
|
391
|
+
};
|
|
392
|
+
|
|
393
|
+
let authenticationPromise = Promise.resolve();
|
|
394
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
395
|
+
|
|
396
|
+
let interceptorPromise = authenticationPromise;
|
|
397
|
+
for (const interceptor of this.interceptors) {
|
|
398
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
return interceptorPromise.then(() => {
|
|
402
|
+
if (Object.keys(localVarFormParams).length) {
|
|
403
|
+
if (localVarUseFormData) {
|
|
404
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
405
|
+
} else {
|
|
406
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
return new Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }>((resolve, reject) => {
|
|
410
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
411
|
+
if (error) {
|
|
412
|
+
reject(error);
|
|
413
|
+
} else {
|
|
414
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
415
|
+
body = ObjectSerializer.deserialize(body, "InlineResponse2002");
|
|
416
|
+
resolve({ response: response, body: body });
|
|
417
|
+
} else {
|
|
418
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
});
|
|
422
|
+
});
|
|
423
|
+
});
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
*
|
|
427
|
+
* @summary Count members
|
|
428
|
+
* @param startDateTime
|
|
429
|
+
* @param endDateTime
|
|
430
|
+
*/
|
|
431
|
+
public async fetchDashboardMembersCount (startDateTime: Date, endDateTime: Date, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }> {
|
|
432
|
+
const localVarPath = this.basePath + '/v1/dashboard/count/members';
|
|
433
|
+
let localVarQueryParameters: any = {};
|
|
434
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
435
|
+
const produces = ['application/json'];
|
|
436
|
+
// give precedence to 'application/json'
|
|
437
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
438
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
439
|
+
} else {
|
|
440
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
441
|
+
}
|
|
442
|
+
let localVarFormParams: any = {};
|
|
443
|
+
|
|
444
|
+
// verify required parameter 'startDateTime' is not null or undefined
|
|
445
|
+
if (startDateTime === null || startDateTime === undefined) {
|
|
446
|
+
throw new Error('Required parameter startDateTime was null or undefined when calling fetchDashboardMembersCount.');
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
// verify required parameter 'endDateTime' is not null or undefined
|
|
450
|
+
if (endDateTime === null || endDateTime === undefined) {
|
|
451
|
+
throw new Error('Required parameter endDateTime was null or undefined when calling fetchDashboardMembersCount.');
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
if (startDateTime !== undefined) {
|
|
455
|
+
localVarQueryParameters['startDateTime'] = ObjectSerializer.serialize(startDateTime, "Date");
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
if (endDateTime !== undefined) {
|
|
459
|
+
localVarQueryParameters['endDateTime'] = ObjectSerializer.serialize(endDateTime, "Date");
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
463
|
+
|
|
464
|
+
let localVarUseFormData = false;
|
|
465
|
+
|
|
466
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
467
|
+
method: 'GET',
|
|
468
|
+
qs: localVarQueryParameters,
|
|
469
|
+
headers: localVarHeaderParams,
|
|
470
|
+
uri: localVarPath,
|
|
471
|
+
useQuerystring: this._useQuerystring,
|
|
472
|
+
json: true,
|
|
473
|
+
};
|
|
474
|
+
|
|
475
|
+
let authenticationPromise = Promise.resolve();
|
|
476
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
477
|
+
|
|
478
|
+
let interceptorPromise = authenticationPromise;
|
|
479
|
+
for (const interceptor of this.interceptors) {
|
|
480
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
return interceptorPromise.then(() => {
|
|
484
|
+
if (Object.keys(localVarFormParams).length) {
|
|
485
|
+
if (localVarUseFormData) {
|
|
486
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
487
|
+
} else {
|
|
488
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
return new Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }>((resolve, reject) => {
|
|
492
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
493
|
+
if (error) {
|
|
494
|
+
reject(error);
|
|
495
|
+
} else {
|
|
496
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
497
|
+
body = ObjectSerializer.deserialize(body, "InlineResponse2002");
|
|
498
|
+
resolve({ response: response, body: body });
|
|
499
|
+
} else {
|
|
500
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
});
|
|
504
|
+
});
|
|
505
|
+
});
|
|
506
|
+
}
|
|
507
|
+
/**
|
|
508
|
+
*
|
|
509
|
+
* @summary Count tiers
|
|
510
|
+
* @param startDateTime
|
|
511
|
+
* @param endDateTime
|
|
512
|
+
*/
|
|
513
|
+
public async fetchDashboardMembershipTiersCount (startDateTime: Date, endDateTime: Date, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }> {
|
|
514
|
+
const localVarPath = this.basePath + '/v1/dashboard/count/membershipTiers';
|
|
515
|
+
let localVarQueryParameters: any = {};
|
|
516
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
517
|
+
const produces = ['application/json'];
|
|
518
|
+
// give precedence to 'application/json'
|
|
519
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
520
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
521
|
+
} else {
|
|
522
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
523
|
+
}
|
|
524
|
+
let localVarFormParams: any = {};
|
|
525
|
+
|
|
526
|
+
// verify required parameter 'startDateTime' is not null or undefined
|
|
527
|
+
if (startDateTime === null || startDateTime === undefined) {
|
|
528
|
+
throw new Error('Required parameter startDateTime was null or undefined when calling fetchDashboardMembershipTiersCount.');
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
// verify required parameter 'endDateTime' is not null or undefined
|
|
532
|
+
if (endDateTime === null || endDateTime === undefined) {
|
|
533
|
+
throw new Error('Required parameter endDateTime was null or undefined when calling fetchDashboardMembershipTiersCount.');
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
if (startDateTime !== undefined) {
|
|
537
|
+
localVarQueryParameters['startDateTime'] = ObjectSerializer.serialize(startDateTime, "Date");
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
if (endDateTime !== undefined) {
|
|
541
|
+
localVarQueryParameters['endDateTime'] = ObjectSerializer.serialize(endDateTime, "Date");
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
545
|
+
|
|
546
|
+
let localVarUseFormData = false;
|
|
547
|
+
|
|
548
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
549
|
+
method: 'GET',
|
|
550
|
+
qs: localVarQueryParameters,
|
|
551
|
+
headers: localVarHeaderParams,
|
|
552
|
+
uri: localVarPath,
|
|
553
|
+
useQuerystring: this._useQuerystring,
|
|
554
|
+
json: true,
|
|
555
|
+
};
|
|
556
|
+
|
|
557
|
+
let authenticationPromise = Promise.resolve();
|
|
558
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
559
|
+
|
|
560
|
+
let interceptorPromise = authenticationPromise;
|
|
561
|
+
for (const interceptor of this.interceptors) {
|
|
562
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
return interceptorPromise.then(() => {
|
|
566
|
+
if (Object.keys(localVarFormParams).length) {
|
|
567
|
+
if (localVarUseFormData) {
|
|
568
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
569
|
+
} else {
|
|
570
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
return new Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }>((resolve, reject) => {
|
|
574
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
575
|
+
if (error) {
|
|
576
|
+
reject(error);
|
|
577
|
+
} else {
|
|
578
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
579
|
+
body = ObjectSerializer.deserialize(body, "InlineResponse2002");
|
|
580
|
+
resolve({ response: response, body: body });
|
|
581
|
+
} else {
|
|
582
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
});
|
|
586
|
+
});
|
|
587
|
+
});
|
|
588
|
+
}
|
|
589
|
+
/**
|
|
590
|
+
*
|
|
591
|
+
* @summary Count News Articles
|
|
592
|
+
* @param startDateTime
|
|
593
|
+
* @param endDateTime
|
|
594
|
+
*/
|
|
595
|
+
public async fetchDashboardNewsArticlesCount (startDateTime: Date, endDateTime: Date, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }> {
|
|
596
|
+
const localVarPath = this.basePath + '/v1/dashboard/count/newsArticles';
|
|
597
|
+
let localVarQueryParameters: any = {};
|
|
598
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
599
|
+
const produces = ['application/json'];
|
|
600
|
+
// give precedence to 'application/json'
|
|
601
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
602
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
603
|
+
} else {
|
|
604
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
605
|
+
}
|
|
606
|
+
let localVarFormParams: any = {};
|
|
607
|
+
|
|
608
|
+
// verify required parameter 'startDateTime' is not null or undefined
|
|
609
|
+
if (startDateTime === null || startDateTime === undefined) {
|
|
610
|
+
throw new Error('Required parameter startDateTime was null or undefined when calling fetchDashboardNewsArticlesCount.');
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
// verify required parameter 'endDateTime' is not null or undefined
|
|
614
|
+
if (endDateTime === null || endDateTime === undefined) {
|
|
615
|
+
throw new Error('Required parameter endDateTime was null or undefined when calling fetchDashboardNewsArticlesCount.');
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
if (startDateTime !== undefined) {
|
|
619
|
+
localVarQueryParameters['startDateTime'] = ObjectSerializer.serialize(startDateTime, "Date");
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
if (endDateTime !== undefined) {
|
|
623
|
+
localVarQueryParameters['endDateTime'] = ObjectSerializer.serialize(endDateTime, "Date");
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
627
|
+
|
|
628
|
+
let localVarUseFormData = false;
|
|
629
|
+
|
|
630
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
631
|
+
method: 'GET',
|
|
632
|
+
qs: localVarQueryParameters,
|
|
633
|
+
headers: localVarHeaderParams,
|
|
634
|
+
uri: localVarPath,
|
|
635
|
+
useQuerystring: this._useQuerystring,
|
|
636
|
+
json: true,
|
|
637
|
+
};
|
|
638
|
+
|
|
639
|
+
let authenticationPromise = Promise.resolve();
|
|
640
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
641
|
+
|
|
642
|
+
let interceptorPromise = authenticationPromise;
|
|
643
|
+
for (const interceptor of this.interceptors) {
|
|
644
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
return interceptorPromise.then(() => {
|
|
648
|
+
if (Object.keys(localVarFormParams).length) {
|
|
649
|
+
if (localVarUseFormData) {
|
|
650
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
651
|
+
} else {
|
|
652
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
return new Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }>((resolve, reject) => {
|
|
656
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
657
|
+
if (error) {
|
|
658
|
+
reject(error);
|
|
659
|
+
} else {
|
|
660
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
661
|
+
body = ObjectSerializer.deserialize(body, "InlineResponse2002");
|
|
662
|
+
resolve({ response: response, body: body });
|
|
663
|
+
} else {
|
|
664
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
});
|
|
668
|
+
});
|
|
669
|
+
});
|
|
670
|
+
}
|
|
671
|
+
/**
|
|
672
|
+
*
|
|
673
|
+
* @summary Count opt in lists
|
|
674
|
+
* @param startDateTime
|
|
675
|
+
* @param endDateTime
|
|
676
|
+
*/
|
|
677
|
+
public async fetchDashboardOptInListsCount (startDateTime: Date, endDateTime: Date, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }> {
|
|
678
|
+
const localVarPath = this.basePath + '/v1/dashboard/count/optInLists';
|
|
679
|
+
let localVarQueryParameters: any = {};
|
|
680
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
681
|
+
const produces = ['application/json'];
|
|
682
|
+
// give precedence to 'application/json'
|
|
683
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
684
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
685
|
+
} else {
|
|
686
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
687
|
+
}
|
|
688
|
+
let localVarFormParams: any = {};
|
|
689
|
+
|
|
690
|
+
// verify required parameter 'startDateTime' is not null or undefined
|
|
691
|
+
if (startDateTime === null || startDateTime === undefined) {
|
|
692
|
+
throw new Error('Required parameter startDateTime was null or undefined when calling fetchDashboardOptInListsCount.');
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
// verify required parameter 'endDateTime' is not null or undefined
|
|
696
|
+
if (endDateTime === null || endDateTime === undefined) {
|
|
697
|
+
throw new Error('Required parameter endDateTime was null or undefined when calling fetchDashboardOptInListsCount.');
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
if (startDateTime !== undefined) {
|
|
701
|
+
localVarQueryParameters['startDateTime'] = ObjectSerializer.serialize(startDateTime, "Date");
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
if (endDateTime !== undefined) {
|
|
705
|
+
localVarQueryParameters['endDateTime'] = ObjectSerializer.serialize(endDateTime, "Date");
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
709
|
+
|
|
710
|
+
let localVarUseFormData = false;
|
|
711
|
+
|
|
712
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
713
|
+
method: 'GET',
|
|
714
|
+
qs: localVarQueryParameters,
|
|
715
|
+
headers: localVarHeaderParams,
|
|
716
|
+
uri: localVarPath,
|
|
717
|
+
useQuerystring: this._useQuerystring,
|
|
718
|
+
json: true,
|
|
719
|
+
};
|
|
720
|
+
|
|
721
|
+
let authenticationPromise = Promise.resolve();
|
|
722
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
723
|
+
|
|
724
|
+
let interceptorPromise = authenticationPromise;
|
|
725
|
+
for (const interceptor of this.interceptors) {
|
|
726
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
return interceptorPromise.then(() => {
|
|
730
|
+
if (Object.keys(localVarFormParams).length) {
|
|
731
|
+
if (localVarUseFormData) {
|
|
732
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
733
|
+
} else {
|
|
734
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
return new Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }>((resolve, reject) => {
|
|
738
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
739
|
+
if (error) {
|
|
740
|
+
reject(error);
|
|
741
|
+
} else {
|
|
742
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
743
|
+
body = ObjectSerializer.deserialize(body, "InlineResponse2002");
|
|
744
|
+
resolve({ response: response, body: body });
|
|
745
|
+
} else {
|
|
746
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
});
|
|
750
|
+
});
|
|
751
|
+
});
|
|
752
|
+
}
|
|
753
|
+
/**
|
|
754
|
+
*
|
|
755
|
+
* @summary Count opt in sources
|
|
756
|
+
* @param startDateTime
|
|
757
|
+
* @param endDateTime
|
|
758
|
+
*/
|
|
759
|
+
public async fetchDashboardOptInSourcesCount (startDateTime: Date, endDateTime: Date, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }> {
|
|
760
|
+
const localVarPath = this.basePath + '/v1/dashboard/count/optInSources';
|
|
761
|
+
let localVarQueryParameters: any = {};
|
|
762
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
763
|
+
const produces = ['application/json'];
|
|
764
|
+
// give precedence to 'application/json'
|
|
765
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
766
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
767
|
+
} else {
|
|
768
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
769
|
+
}
|
|
770
|
+
let localVarFormParams: any = {};
|
|
771
|
+
|
|
772
|
+
// verify required parameter 'startDateTime' is not null or undefined
|
|
773
|
+
if (startDateTime === null || startDateTime === undefined) {
|
|
774
|
+
throw new Error('Required parameter startDateTime was null or undefined when calling fetchDashboardOptInSourcesCount.');
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
// verify required parameter 'endDateTime' is not null or undefined
|
|
778
|
+
if (endDateTime === null || endDateTime === undefined) {
|
|
779
|
+
throw new Error('Required parameter endDateTime was null or undefined when calling fetchDashboardOptInSourcesCount.');
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
if (startDateTime !== undefined) {
|
|
783
|
+
localVarQueryParameters['startDateTime'] = ObjectSerializer.serialize(startDateTime, "Date");
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
if (endDateTime !== undefined) {
|
|
787
|
+
localVarQueryParameters['endDateTime'] = ObjectSerializer.serialize(endDateTime, "Date");
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
791
|
+
|
|
792
|
+
let localVarUseFormData = false;
|
|
793
|
+
|
|
794
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
795
|
+
method: 'GET',
|
|
796
|
+
qs: localVarQueryParameters,
|
|
797
|
+
headers: localVarHeaderParams,
|
|
798
|
+
uri: localVarPath,
|
|
799
|
+
useQuerystring: this._useQuerystring,
|
|
800
|
+
json: true,
|
|
801
|
+
};
|
|
802
|
+
|
|
803
|
+
let authenticationPromise = Promise.resolve();
|
|
804
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
805
|
+
|
|
806
|
+
let interceptorPromise = authenticationPromise;
|
|
807
|
+
for (const interceptor of this.interceptors) {
|
|
808
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
return interceptorPromise.then(() => {
|
|
812
|
+
if (Object.keys(localVarFormParams).length) {
|
|
813
|
+
if (localVarUseFormData) {
|
|
814
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
815
|
+
} else {
|
|
816
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
return new Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }>((resolve, reject) => {
|
|
820
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
821
|
+
if (error) {
|
|
822
|
+
reject(error);
|
|
823
|
+
} else {
|
|
824
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
825
|
+
body = ObjectSerializer.deserialize(body, "InlineResponse2002");
|
|
826
|
+
resolve({ response: response, body: body });
|
|
827
|
+
} else {
|
|
828
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
});
|
|
832
|
+
});
|
|
833
|
+
});
|
|
834
|
+
}
|
|
835
|
+
/**
|
|
836
|
+
*
|
|
837
|
+
* @summary Count Outbound SMS
|
|
838
|
+
* @param startDateTime
|
|
839
|
+
* @param endDateTime
|
|
840
|
+
*/
|
|
841
|
+
public async fetchDashboardOutboundSMSCount (startDateTime: Date, endDateTime: Date, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }> {
|
|
842
|
+
const localVarPath = this.basePath + '/v1/dashboard/count/sms/outbound';
|
|
843
|
+
let localVarQueryParameters: any = {};
|
|
844
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
845
|
+
const produces = ['application/json'];
|
|
846
|
+
// give precedence to 'application/json'
|
|
847
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
848
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
849
|
+
} else {
|
|
850
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
851
|
+
}
|
|
852
|
+
let localVarFormParams: any = {};
|
|
853
|
+
|
|
854
|
+
// verify required parameter 'startDateTime' is not null or undefined
|
|
855
|
+
if (startDateTime === null || startDateTime === undefined) {
|
|
856
|
+
throw new Error('Required parameter startDateTime was null or undefined when calling fetchDashboardOutboundSMSCount.');
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
// verify required parameter 'endDateTime' is not null or undefined
|
|
860
|
+
if (endDateTime === null || endDateTime === undefined) {
|
|
861
|
+
throw new Error('Required parameter endDateTime was null or undefined when calling fetchDashboardOutboundSMSCount.');
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
if (startDateTime !== undefined) {
|
|
865
|
+
localVarQueryParameters['startDateTime'] = ObjectSerializer.serialize(startDateTime, "Date");
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
if (endDateTime !== undefined) {
|
|
869
|
+
localVarQueryParameters['endDateTime'] = ObjectSerializer.serialize(endDateTime, "Date");
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
873
|
+
|
|
874
|
+
let localVarUseFormData = false;
|
|
875
|
+
|
|
876
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
877
|
+
method: 'GET',
|
|
878
|
+
qs: localVarQueryParameters,
|
|
879
|
+
headers: localVarHeaderParams,
|
|
880
|
+
uri: localVarPath,
|
|
881
|
+
useQuerystring: this._useQuerystring,
|
|
882
|
+
json: true,
|
|
883
|
+
};
|
|
884
|
+
|
|
885
|
+
let authenticationPromise = Promise.resolve();
|
|
886
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
887
|
+
|
|
888
|
+
let interceptorPromise = authenticationPromise;
|
|
889
|
+
for (const interceptor of this.interceptors) {
|
|
890
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
return interceptorPromise.then(() => {
|
|
894
|
+
if (Object.keys(localVarFormParams).length) {
|
|
895
|
+
if (localVarUseFormData) {
|
|
896
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
897
|
+
} else {
|
|
898
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
return new Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }>((resolve, reject) => {
|
|
902
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
903
|
+
if (error) {
|
|
904
|
+
reject(error);
|
|
905
|
+
} else {
|
|
906
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
907
|
+
body = ObjectSerializer.deserialize(body, "InlineResponse2002");
|
|
908
|
+
resolve({ response: response, body: body });
|
|
909
|
+
} else {
|
|
910
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
});
|
|
914
|
+
});
|
|
915
|
+
});
|
|
916
|
+
}
|
|
917
|
+
/**
|
|
918
|
+
*
|
|
919
|
+
* @summary Count POS Machines
|
|
920
|
+
* @param startDateTime
|
|
921
|
+
* @param endDateTime
|
|
922
|
+
*/
|
|
923
|
+
public async fetchDashboardPOSMachinesCount (startDateTime: Date, endDateTime: Date, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }> {
|
|
924
|
+
const localVarPath = this.basePath + '/v1/dashboard/count/pos/machines';
|
|
925
|
+
let localVarQueryParameters: any = {};
|
|
926
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
927
|
+
const produces = ['application/json'];
|
|
928
|
+
// give precedence to 'application/json'
|
|
929
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
930
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
931
|
+
} else {
|
|
932
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
933
|
+
}
|
|
934
|
+
let localVarFormParams: any = {};
|
|
935
|
+
|
|
936
|
+
// verify required parameter 'startDateTime' is not null or undefined
|
|
937
|
+
if (startDateTime === null || startDateTime === undefined) {
|
|
938
|
+
throw new Error('Required parameter startDateTime was null or undefined when calling fetchDashboardPOSMachinesCount.');
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
// verify required parameter 'endDateTime' is not null or undefined
|
|
942
|
+
if (endDateTime === null || endDateTime === undefined) {
|
|
943
|
+
throw new Error('Required parameter endDateTime was null or undefined when calling fetchDashboardPOSMachinesCount.');
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
if (startDateTime !== undefined) {
|
|
947
|
+
localVarQueryParameters['startDateTime'] = ObjectSerializer.serialize(startDateTime, "Date");
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
if (endDateTime !== undefined) {
|
|
951
|
+
localVarQueryParameters['endDateTime'] = ObjectSerializer.serialize(endDateTime, "Date");
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
955
|
+
|
|
956
|
+
let localVarUseFormData = false;
|
|
957
|
+
|
|
958
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
959
|
+
method: 'GET',
|
|
960
|
+
qs: localVarQueryParameters,
|
|
961
|
+
headers: localVarHeaderParams,
|
|
962
|
+
uri: localVarPath,
|
|
963
|
+
useQuerystring: this._useQuerystring,
|
|
964
|
+
json: true,
|
|
965
|
+
};
|
|
966
|
+
|
|
967
|
+
let authenticationPromise = Promise.resolve();
|
|
968
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
969
|
+
|
|
970
|
+
let interceptorPromise = authenticationPromise;
|
|
971
|
+
for (const interceptor of this.interceptors) {
|
|
972
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
return interceptorPromise.then(() => {
|
|
976
|
+
if (Object.keys(localVarFormParams).length) {
|
|
977
|
+
if (localVarUseFormData) {
|
|
978
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
979
|
+
} else {
|
|
980
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
return new Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }>((resolve, reject) => {
|
|
984
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
985
|
+
if (error) {
|
|
986
|
+
reject(error);
|
|
987
|
+
} else {
|
|
988
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
989
|
+
body = ObjectSerializer.deserialize(body, "InlineResponse2002");
|
|
990
|
+
resolve({ response: response, body: body });
|
|
991
|
+
} else {
|
|
992
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
993
|
+
}
|
|
994
|
+
}
|
|
995
|
+
});
|
|
996
|
+
});
|
|
997
|
+
});
|
|
998
|
+
}
|
|
999
|
+
/**
|
|
1000
|
+
*
|
|
1001
|
+
* @summary Count POS Transactions
|
|
1002
|
+
* @param startDateTime
|
|
1003
|
+
* @param endDateTime
|
|
1004
|
+
*/
|
|
1005
|
+
public async fetchDashboardPOSTransactionsCount (startDateTime: Date, endDateTime: Date, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }> {
|
|
1006
|
+
const localVarPath = this.basePath + '/v1/dashboard/count/pos/transactions';
|
|
1007
|
+
let localVarQueryParameters: any = {};
|
|
1008
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1009
|
+
const produces = ['application/json'];
|
|
1010
|
+
// give precedence to 'application/json'
|
|
1011
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1012
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1013
|
+
} else {
|
|
1014
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1015
|
+
}
|
|
1016
|
+
let localVarFormParams: any = {};
|
|
1017
|
+
|
|
1018
|
+
// verify required parameter 'startDateTime' is not null or undefined
|
|
1019
|
+
if (startDateTime === null || startDateTime === undefined) {
|
|
1020
|
+
throw new Error('Required parameter startDateTime was null or undefined when calling fetchDashboardPOSTransactionsCount.');
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
// verify required parameter 'endDateTime' is not null or undefined
|
|
1024
|
+
if (endDateTime === null || endDateTime === undefined) {
|
|
1025
|
+
throw new Error('Required parameter endDateTime was null or undefined when calling fetchDashboardPOSTransactionsCount.');
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
if (startDateTime !== undefined) {
|
|
1029
|
+
localVarQueryParameters['startDateTime'] = ObjectSerializer.serialize(startDateTime, "Date");
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
if (endDateTime !== undefined) {
|
|
1033
|
+
localVarQueryParameters['endDateTime'] = ObjectSerializer.serialize(endDateTime, "Date");
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1037
|
+
|
|
1038
|
+
let localVarUseFormData = false;
|
|
1039
|
+
|
|
1040
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
1041
|
+
method: 'GET',
|
|
1042
|
+
qs: localVarQueryParameters,
|
|
1043
|
+
headers: localVarHeaderParams,
|
|
1044
|
+
uri: localVarPath,
|
|
1045
|
+
useQuerystring: this._useQuerystring,
|
|
1046
|
+
json: true,
|
|
1047
|
+
};
|
|
1048
|
+
|
|
1049
|
+
let authenticationPromise = Promise.resolve();
|
|
1050
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1051
|
+
|
|
1052
|
+
let interceptorPromise = authenticationPromise;
|
|
1053
|
+
for (const interceptor of this.interceptors) {
|
|
1054
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
return interceptorPromise.then(() => {
|
|
1058
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1059
|
+
if (localVarUseFormData) {
|
|
1060
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1061
|
+
} else {
|
|
1062
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1065
|
+
return new Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }>((resolve, reject) => {
|
|
1066
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1067
|
+
if (error) {
|
|
1068
|
+
reject(error);
|
|
1069
|
+
} else {
|
|
1070
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1071
|
+
body = ObjectSerializer.deserialize(body, "InlineResponse2002");
|
|
1072
|
+
resolve({ response: response, body: body });
|
|
1073
|
+
} else {
|
|
1074
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
});
|
|
1078
|
+
});
|
|
1079
|
+
});
|
|
1080
|
+
}
|
|
1081
|
+
/**
|
|
1082
|
+
*
|
|
1083
|
+
* @summary Count Performances
|
|
1084
|
+
* @param startDateTime
|
|
1085
|
+
* @param endDateTime
|
|
1086
|
+
*/
|
|
1087
|
+
public async fetchDashboardPerformancesCount (startDateTime: Date, endDateTime: Date, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }> {
|
|
1088
|
+
const localVarPath = this.basePath + '/v1/dashboard/count/performances';
|
|
1089
|
+
let localVarQueryParameters: any = {};
|
|
1090
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1091
|
+
const produces = ['application/json'];
|
|
1092
|
+
// give precedence to 'application/json'
|
|
1093
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1094
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1095
|
+
} else {
|
|
1096
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1097
|
+
}
|
|
1098
|
+
let localVarFormParams: any = {};
|
|
1099
|
+
|
|
1100
|
+
// verify required parameter 'startDateTime' is not null or undefined
|
|
1101
|
+
if (startDateTime === null || startDateTime === undefined) {
|
|
1102
|
+
throw new Error('Required parameter startDateTime was null or undefined when calling fetchDashboardPerformancesCount.');
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
// verify required parameter 'endDateTime' is not null or undefined
|
|
1106
|
+
if (endDateTime === null || endDateTime === undefined) {
|
|
1107
|
+
throw new Error('Required parameter endDateTime was null or undefined when calling fetchDashboardPerformancesCount.');
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
if (startDateTime !== undefined) {
|
|
1111
|
+
localVarQueryParameters['startDateTime'] = ObjectSerializer.serialize(startDateTime, "Date");
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1114
|
+
if (endDateTime !== undefined) {
|
|
1115
|
+
localVarQueryParameters['endDateTime'] = ObjectSerializer.serialize(endDateTime, "Date");
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1119
|
+
|
|
1120
|
+
let localVarUseFormData = false;
|
|
1121
|
+
|
|
1122
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
1123
|
+
method: 'GET',
|
|
1124
|
+
qs: localVarQueryParameters,
|
|
1125
|
+
headers: localVarHeaderParams,
|
|
1126
|
+
uri: localVarPath,
|
|
1127
|
+
useQuerystring: this._useQuerystring,
|
|
1128
|
+
json: true,
|
|
1129
|
+
};
|
|
1130
|
+
|
|
1131
|
+
let authenticationPromise = Promise.resolve();
|
|
1132
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1133
|
+
|
|
1134
|
+
let interceptorPromise = authenticationPromise;
|
|
1135
|
+
for (const interceptor of this.interceptors) {
|
|
1136
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
return interceptorPromise.then(() => {
|
|
1140
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1141
|
+
if (localVarUseFormData) {
|
|
1142
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1143
|
+
} else {
|
|
1144
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
return new Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }>((resolve, reject) => {
|
|
1148
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1149
|
+
if (error) {
|
|
1150
|
+
reject(error);
|
|
1151
|
+
} else {
|
|
1152
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1153
|
+
body = ObjectSerializer.deserialize(body, "InlineResponse2002");
|
|
1154
|
+
resolve({ response: response, body: body });
|
|
1155
|
+
} else {
|
|
1156
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
});
|
|
1160
|
+
});
|
|
1161
|
+
});
|
|
1162
|
+
}
|
|
1163
|
+
/**
|
|
1164
|
+
*
|
|
1165
|
+
* @summary Count phone numbers
|
|
1166
|
+
* @param startDateTime
|
|
1167
|
+
* @param endDateTime
|
|
1168
|
+
*/
|
|
1169
|
+
public async fetchDashboardPhoneNumbersCount (startDateTime: Date, endDateTime: Date, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }> {
|
|
1170
|
+
const localVarPath = this.basePath + '/v1/dashboard/count/phoneNumbers';
|
|
1171
|
+
let localVarQueryParameters: any = {};
|
|
1172
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1173
|
+
const produces = ['application/json'];
|
|
1174
|
+
// give precedence to 'application/json'
|
|
1175
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1176
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1177
|
+
} else {
|
|
1178
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1179
|
+
}
|
|
1180
|
+
let localVarFormParams: any = {};
|
|
1181
|
+
|
|
1182
|
+
// verify required parameter 'startDateTime' is not null or undefined
|
|
1183
|
+
if (startDateTime === null || startDateTime === undefined) {
|
|
1184
|
+
throw new Error('Required parameter startDateTime was null or undefined when calling fetchDashboardPhoneNumbersCount.');
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
// verify required parameter 'endDateTime' is not null or undefined
|
|
1188
|
+
if (endDateTime === null || endDateTime === undefined) {
|
|
1189
|
+
throw new Error('Required parameter endDateTime was null or undefined when calling fetchDashboardPhoneNumbersCount.');
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
if (startDateTime !== undefined) {
|
|
1193
|
+
localVarQueryParameters['startDateTime'] = ObjectSerializer.serialize(startDateTime, "Date");
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
if (endDateTime !== undefined) {
|
|
1197
|
+
localVarQueryParameters['endDateTime'] = ObjectSerializer.serialize(endDateTime, "Date");
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1201
|
+
|
|
1202
|
+
let localVarUseFormData = false;
|
|
1203
|
+
|
|
1204
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
1205
|
+
method: 'GET',
|
|
1206
|
+
qs: localVarQueryParameters,
|
|
1207
|
+
headers: localVarHeaderParams,
|
|
1208
|
+
uri: localVarPath,
|
|
1209
|
+
useQuerystring: this._useQuerystring,
|
|
1210
|
+
json: true,
|
|
1211
|
+
};
|
|
1212
|
+
|
|
1213
|
+
let authenticationPromise = Promise.resolve();
|
|
1214
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1215
|
+
|
|
1216
|
+
let interceptorPromise = authenticationPromise;
|
|
1217
|
+
for (const interceptor of this.interceptors) {
|
|
1218
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1221
|
+
return interceptorPromise.then(() => {
|
|
1222
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1223
|
+
if (localVarUseFormData) {
|
|
1224
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1225
|
+
} else {
|
|
1226
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1227
|
+
}
|
|
1228
|
+
}
|
|
1229
|
+
return new Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }>((resolve, reject) => {
|
|
1230
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1231
|
+
if (error) {
|
|
1232
|
+
reject(error);
|
|
1233
|
+
} else {
|
|
1234
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1235
|
+
body = ObjectSerializer.deserialize(body, "InlineResponse2002");
|
|
1236
|
+
resolve({ response: response, body: body });
|
|
1237
|
+
} else {
|
|
1238
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
1239
|
+
}
|
|
1240
|
+
}
|
|
1241
|
+
});
|
|
1242
|
+
});
|
|
1243
|
+
});
|
|
1244
|
+
}
|
|
1245
|
+
/**
|
|
1246
|
+
*
|
|
1247
|
+
* @summary Count POS redemptions
|
|
1248
|
+
* @param startDateTime
|
|
1249
|
+
* @param endDateTime
|
|
1250
|
+
*/
|
|
1251
|
+
public async fetchDashboardRedemptionsCount (startDateTime: Date, endDateTime: Date, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }> {
|
|
1252
|
+
const localVarPath = this.basePath + '/v1/dashboard/count/pos/redemptions';
|
|
1253
|
+
let localVarQueryParameters: any = {};
|
|
1254
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1255
|
+
const produces = ['application/json'];
|
|
1256
|
+
// give precedence to 'application/json'
|
|
1257
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1258
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1259
|
+
} else {
|
|
1260
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1261
|
+
}
|
|
1262
|
+
let localVarFormParams: any = {};
|
|
1263
|
+
|
|
1264
|
+
// verify required parameter 'startDateTime' is not null or undefined
|
|
1265
|
+
if (startDateTime === null || startDateTime === undefined) {
|
|
1266
|
+
throw new Error('Required parameter startDateTime was null or undefined when calling fetchDashboardRedemptionsCount.');
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
// verify required parameter 'endDateTime' is not null or undefined
|
|
1270
|
+
if (endDateTime === null || endDateTime === undefined) {
|
|
1271
|
+
throw new Error('Required parameter endDateTime was null or undefined when calling fetchDashboardRedemptionsCount.');
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
if (startDateTime !== undefined) {
|
|
1275
|
+
localVarQueryParameters['startDateTime'] = ObjectSerializer.serialize(startDateTime, "Date");
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
if (endDateTime !== undefined) {
|
|
1279
|
+
localVarQueryParameters['endDateTime'] = ObjectSerializer.serialize(endDateTime, "Date");
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1282
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1283
|
+
|
|
1284
|
+
let localVarUseFormData = false;
|
|
1285
|
+
|
|
1286
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
1287
|
+
method: 'GET',
|
|
1288
|
+
qs: localVarQueryParameters,
|
|
1289
|
+
headers: localVarHeaderParams,
|
|
1290
|
+
uri: localVarPath,
|
|
1291
|
+
useQuerystring: this._useQuerystring,
|
|
1292
|
+
json: true,
|
|
1293
|
+
};
|
|
1294
|
+
|
|
1295
|
+
let authenticationPromise = Promise.resolve();
|
|
1296
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1297
|
+
|
|
1298
|
+
let interceptorPromise = authenticationPromise;
|
|
1299
|
+
for (const interceptor of this.interceptors) {
|
|
1300
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1301
|
+
}
|
|
1302
|
+
|
|
1303
|
+
return interceptorPromise.then(() => {
|
|
1304
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1305
|
+
if (localVarUseFormData) {
|
|
1306
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1307
|
+
} else {
|
|
1308
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1309
|
+
}
|
|
1310
|
+
}
|
|
1311
|
+
return new Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }>((resolve, reject) => {
|
|
1312
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1313
|
+
if (error) {
|
|
1314
|
+
reject(error);
|
|
1315
|
+
} else {
|
|
1316
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1317
|
+
body = ObjectSerializer.deserialize(body, "InlineResponse2002");
|
|
1318
|
+
resolve({ response: response, body: body });
|
|
1319
|
+
} else {
|
|
1320
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
1321
|
+
}
|
|
1322
|
+
}
|
|
1323
|
+
});
|
|
1324
|
+
});
|
|
1325
|
+
});
|
|
1326
|
+
}
|
|
1327
|
+
/**
|
|
1328
|
+
*
|
|
1329
|
+
* @summary Count POS refunds
|
|
1330
|
+
* @param startDateTime
|
|
1331
|
+
* @param endDateTime
|
|
1332
|
+
*/
|
|
1333
|
+
public async fetchDashboardRefundsCount (startDateTime: Date, endDateTime: Date, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }> {
|
|
1334
|
+
const localVarPath = this.basePath + '/v1/dashboard/count/pos/refunds';
|
|
1335
|
+
let localVarQueryParameters: any = {};
|
|
1336
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1337
|
+
const produces = ['application/json'];
|
|
1338
|
+
// give precedence to 'application/json'
|
|
1339
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1340
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1341
|
+
} else {
|
|
1342
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1343
|
+
}
|
|
1344
|
+
let localVarFormParams: any = {};
|
|
1345
|
+
|
|
1346
|
+
// verify required parameter 'startDateTime' is not null or undefined
|
|
1347
|
+
if (startDateTime === null || startDateTime === undefined) {
|
|
1348
|
+
throw new Error('Required parameter startDateTime was null or undefined when calling fetchDashboardRefundsCount.');
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1351
|
+
// verify required parameter 'endDateTime' is not null or undefined
|
|
1352
|
+
if (endDateTime === null || endDateTime === undefined) {
|
|
1353
|
+
throw new Error('Required parameter endDateTime was null or undefined when calling fetchDashboardRefundsCount.');
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
if (startDateTime !== undefined) {
|
|
1357
|
+
localVarQueryParameters['startDateTime'] = ObjectSerializer.serialize(startDateTime, "Date");
|
|
1358
|
+
}
|
|
1359
|
+
|
|
1360
|
+
if (endDateTime !== undefined) {
|
|
1361
|
+
localVarQueryParameters['endDateTime'] = ObjectSerializer.serialize(endDateTime, "Date");
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1365
|
+
|
|
1366
|
+
let localVarUseFormData = false;
|
|
1367
|
+
|
|
1368
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
1369
|
+
method: 'GET',
|
|
1370
|
+
qs: localVarQueryParameters,
|
|
1371
|
+
headers: localVarHeaderParams,
|
|
1372
|
+
uri: localVarPath,
|
|
1373
|
+
useQuerystring: this._useQuerystring,
|
|
1374
|
+
json: true,
|
|
1375
|
+
};
|
|
1376
|
+
|
|
1377
|
+
let authenticationPromise = Promise.resolve();
|
|
1378
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1379
|
+
|
|
1380
|
+
let interceptorPromise = authenticationPromise;
|
|
1381
|
+
for (const interceptor of this.interceptors) {
|
|
1382
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1383
|
+
}
|
|
1384
|
+
|
|
1385
|
+
return interceptorPromise.then(() => {
|
|
1386
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1387
|
+
if (localVarUseFormData) {
|
|
1388
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1389
|
+
} else {
|
|
1390
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1391
|
+
}
|
|
1392
|
+
}
|
|
1393
|
+
return new Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }>((resolve, reject) => {
|
|
1394
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1395
|
+
if (error) {
|
|
1396
|
+
reject(error);
|
|
1397
|
+
} else {
|
|
1398
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1399
|
+
body = ObjectSerializer.deserialize(body, "InlineResponse2002");
|
|
1400
|
+
resolve({ response: response, body: body });
|
|
1401
|
+
} else {
|
|
1402
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
1403
|
+
}
|
|
1404
|
+
}
|
|
1405
|
+
});
|
|
1406
|
+
});
|
|
1407
|
+
});
|
|
1408
|
+
}
|
|
1409
|
+
/**
|
|
1410
|
+
*
|
|
1411
|
+
* @summary Count Wallet page views
|
|
1412
|
+
* @param startDateTime
|
|
1413
|
+
* @param endDateTime
|
|
1414
|
+
*/
|
|
1415
|
+
public async fetchDashboardWalletPageViewsCount (startDateTime: Date, endDateTime: Date, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }> {
|
|
1416
|
+
const localVarPath = this.basePath + '/v1/dashboard/count/wallet/pageViews';
|
|
1417
|
+
let localVarQueryParameters: any = {};
|
|
1418
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1419
|
+
const produces = ['application/json'];
|
|
1420
|
+
// give precedence to 'application/json'
|
|
1421
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1422
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1423
|
+
} else {
|
|
1424
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1425
|
+
}
|
|
1426
|
+
let localVarFormParams: any = {};
|
|
1427
|
+
|
|
1428
|
+
// verify required parameter 'startDateTime' is not null or undefined
|
|
1429
|
+
if (startDateTime === null || startDateTime === undefined) {
|
|
1430
|
+
throw new Error('Required parameter startDateTime was null or undefined when calling fetchDashboardWalletPageViewsCount.');
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
// verify required parameter 'endDateTime' is not null or undefined
|
|
1434
|
+
if (endDateTime === null || endDateTime === undefined) {
|
|
1435
|
+
throw new Error('Required parameter endDateTime was null or undefined when calling fetchDashboardWalletPageViewsCount.');
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1438
|
+
if (startDateTime !== undefined) {
|
|
1439
|
+
localVarQueryParameters['startDateTime'] = ObjectSerializer.serialize(startDateTime, "Date");
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
if (endDateTime !== undefined) {
|
|
1443
|
+
localVarQueryParameters['endDateTime'] = ObjectSerializer.serialize(endDateTime, "Date");
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1447
|
+
|
|
1448
|
+
let localVarUseFormData = false;
|
|
1449
|
+
|
|
1450
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
1451
|
+
method: 'GET',
|
|
1452
|
+
qs: localVarQueryParameters,
|
|
1453
|
+
headers: localVarHeaderParams,
|
|
1454
|
+
uri: localVarPath,
|
|
1455
|
+
useQuerystring: this._useQuerystring,
|
|
1456
|
+
json: true,
|
|
1457
|
+
};
|
|
1458
|
+
|
|
1459
|
+
let authenticationPromise = Promise.resolve();
|
|
1460
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1461
|
+
|
|
1462
|
+
let interceptorPromise = authenticationPromise;
|
|
1463
|
+
for (const interceptor of this.interceptors) {
|
|
1464
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
return interceptorPromise.then(() => {
|
|
1468
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1469
|
+
if (localVarUseFormData) {
|
|
1470
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1471
|
+
} else {
|
|
1472
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1473
|
+
}
|
|
1474
|
+
}
|
|
1475
|
+
return new Promise<{ response: http.IncomingMessage; body: InlineResponse2002; }>((resolve, reject) => {
|
|
1476
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1477
|
+
if (error) {
|
|
1478
|
+
reject(error);
|
|
1479
|
+
} else {
|
|
1480
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1481
|
+
body = ObjectSerializer.deserialize(body, "InlineResponse2002");
|
|
1482
|
+
resolve({ response: response, body: body });
|
|
1483
|
+
} else {
|
|
1484
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
1485
|
+
}
|
|
1486
|
+
}
|
|
1487
|
+
});
|
|
1488
|
+
});
|
|
1489
|
+
});
|
|
1490
|
+
}
|
|
1491
|
+
/**
|
|
1492
|
+
*
|
|
1493
|
+
* @summary Fetch widgets catalog
|
|
1494
|
+
*/
|
|
1495
|
+
public async fetchDashboardWidgetsCatalog (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<DashboardWidget>; }> {
|
|
1496
|
+
const localVarPath = this.basePath + '/v1/dashboard/widgets';
|
|
1497
|
+
let localVarQueryParameters: any = {};
|
|
1498
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1499
|
+
const produces = ['application/json'];
|
|
1500
|
+
// give precedence to 'application/json'
|
|
1501
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1502
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1503
|
+
} else {
|
|
1504
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1505
|
+
}
|
|
1506
|
+
let localVarFormParams: any = {};
|
|
1507
|
+
|
|
1508
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1509
|
+
|
|
1510
|
+
let localVarUseFormData = false;
|
|
1511
|
+
|
|
1512
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
1513
|
+
method: 'GET',
|
|
1514
|
+
qs: localVarQueryParameters,
|
|
1515
|
+
headers: localVarHeaderParams,
|
|
1516
|
+
uri: localVarPath,
|
|
1517
|
+
useQuerystring: this._useQuerystring,
|
|
1518
|
+
json: true,
|
|
1519
|
+
};
|
|
1520
|
+
|
|
1521
|
+
let authenticationPromise = Promise.resolve();
|
|
1522
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1523
|
+
|
|
1524
|
+
let interceptorPromise = authenticationPromise;
|
|
1525
|
+
for (const interceptor of this.interceptors) {
|
|
1526
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1529
|
+
return interceptorPromise.then(() => {
|
|
1530
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1531
|
+
if (localVarUseFormData) {
|
|
1532
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1533
|
+
} else {
|
|
1534
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1535
|
+
}
|
|
1536
|
+
}
|
|
1537
|
+
return new Promise<{ response: http.IncomingMessage; body: Array<DashboardWidget>; }>((resolve, reject) => {
|
|
1538
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1539
|
+
if (error) {
|
|
1540
|
+
reject(error);
|
|
1541
|
+
} else {
|
|
1542
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1543
|
+
body = ObjectSerializer.deserialize(body, "Array<DashboardWidget>");
|
|
1544
|
+
resolve({ response: response, body: body });
|
|
1545
|
+
} else {
|
|
1546
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
1547
|
+
}
|
|
1548
|
+
}
|
|
1549
|
+
});
|
|
1550
|
+
});
|
|
1551
|
+
});
|
|
1552
|
+
}
|
|
1553
|
+
}
|