yellowgrid-api-ts 3.2.249-dev.0 → 3.2.250-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api.js CHANGED
@@ -84,11 +84,11 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
84
84
  return to.concat(ar || Array.prototype.slice.call(from));
85
85
  };
86
86
  Object.defineProperty(exports, "__esModule", { value: true });
87
- exports.ShippingServiceDTOCourierEnum = exports.ShippingRequestDTOPrinterEnum = exports.ShippingRequestDTOCourierEnum = exports.ShipmentRequestDTOCourierEnum = exports.ShipmentDTOCourierEnum = exports.ServiceStatusDTOStatusEnum = exports.ServiceHealthDTOGlobalStatusEnum = exports.SeriesDTOTypeEnum = exports.SdrReferenceType = exports.RmaSummaryDTOStatusEnum = exports.RmaRequestDTORequestedResolutionEnum = exports.RmaRequestDTOReasonEnum = exports.RmaItemDTOStatusEnum = exports.RmaDTOStatusEnum = exports.RmaDTOResolutionEnum = exports.RmaDTOReasonEnum = exports.RmaCreditItemRequestDTORefundPercentageEnum = exports.ResolutionRequestModelResolutionEnum = exports.ReportRequestDTOGraphTypeEnum = exports.ReportRequestDTOReportEnum = exports.ReasonRequestModelReasonEnum = exports.ProspectDTOStatusEnum = exports.PostGetServicePlansRequestPlanGroupEnum = exports.PatchUpdateTcxHostingPriceListRequestPriceListEnum = exports.PatchUpdatePriceListRequestPriceListEnum = exports.PasswordSenderDTOIntervalTypeEnum = exports.OrderTotalModelCurrencyEnum = exports.OrderRequestModelSchoolTypeEnum = exports.OrderRequestModelLicenceTypeEnum = exports.MultiTenantChangeResponseModelTypeEnum = exports.ItemResolutionRequestModelResolutionEnum = exports.ItemDiscountEntityTypeEnum = exports.HostingRegionDTOCodeEnum = exports.HostingChangeResponseModelTypeEnum = exports.GraphDTOCurrencyEnum = exports.EventDTOStatusEnum = exports.DivertResponseModelStatusEnum = exports.CustomerRateType = exports.AxisDataDTOTypeEnum = exports.AuditLogEntityTypeEnum = exports.AuditLogEntityActionEnum = exports.AdminUserModelPermissionsEnum = exports.AdminUserModelRoleEnum = exports.AdminRmaSummaryDTOStatusEnum = exports.AdminRmaItemDTOResolutionEnum = exports.AdminRmaItemDTOStatusEnum = exports.AdminRmaDTOStatusEnum = exports.AdminRmaDTOResolutionEnum = exports.AdminRmaDTOReasonEnum = exports.AdminOrderRequestDTOPaymentMethodEnum = void 0;
88
- exports.GetGetInstallationsInstallTypeEnum = exports.GetGetInstallationsHostingEnum = exports.GetGetInstallationsStatusEnum = exports.Class3CXInstallationsApi = exports.Class3CXInstallationsApiFactory = exports.Class3CXInstallationsApiFp = exports.Class3CXInstallationsApiAxiosParamCreator = exports.Class3CXInstallationWizardApi = exports.Class3CXInstallationWizardApiFactory = exports.Class3CXInstallationWizardApiFp = exports.Class3CXInstallationWizardApiAxiosParamCreator = exports.Class3CXApi = exports.Class3CXApiFactory = exports.Class3CXApiFp = exports.Class3CXApiAxiosParamCreator = exports.GetGetCrmActivitiesTypeEnum = exports.CRMApi = exports.CRMApiFactory = exports.CRMApiFp = exports.CRMApiAxiosParamCreator = exports.GetGetServicesPlanDetailsTypeEnum = exports.GetGetConnectionsTypeEnum = exports.BillingApi = exports.BillingApiFactory = exports.BillingApiFp = exports.BillingApiAxiosParamCreator = exports.PatchSetPrizePromoStateEnum = exports.PatchSetPortalAccessStateEnum = exports.PatchSetOnHoldStateEnum = exports.PatchSetAccountStatusStateEnum = exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = exports.UpgradeRequestModelSchoolTypeEnum = exports.UpgradeRequestModelLicenceTypeEnum = exports.TcxWizardModelInstallationStatusEnum = exports.TcxWizardModelInstallTypeEnum = exports.TcxSetupEntityRegionEnum = exports.TcxSetupEntityInstallTypeEnum = exports.TcxMultiTenantModelPackageEnum = exports.StockReportItemModelCurrencyEnum = exports.StockOrderModelPaidEnum = exports.StockOrderModelDeliveryMethodEnum = exports.SmsResponseModelEventTypeEnum = exports.SmsPhoneNumberModelStatusEnum = exports.SmsAccountRequestDTOTypeEnum = exports.SmsAccountRequestDTOProviderEnum = exports.SipTrunkChangeResponseModelTypeEnum = exports.ShippingServiceModelCourierEnum = void 0;
89
- exports.PostSendPriceListCategoryEnum = exports.PostSendPriceListFormatEnum = exports.PostSendPriceListTypeEnum = exports.GetGetPriceListCategoryEnum = exports.GetGetPriceListFormatEnum = exports.GetGetPriceListTypeEnum = exports.PricingApi = exports.PricingApiFactory = exports.PricingApiFp = exports.PricingApiAxiosParamCreator = exports.PostPrintShippingLabelPrinterEnum = exports.GetGetOrdersFilterEnum = exports.GetGetOrdersStatusEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.PostAuthoriseScopeEnum = exports.PostAccessTokenTokenExchangeTypeEnum = exports.PostAccessTokenScopeEnum = exports.PostAccessTokenGrantTypeEnum = exports.OAuth20Api = exports.OAuth20ApiFactory = exports.OAuth20ApiFp = exports.OAuth20ApiAxiosParamCreator = exports.NumberPortingApi = exports.NumberPortingApiFactory = exports.NumberPortingApiFp = exports.NumberPortingApiAxiosParamCreator = exports.MyPBXToolsApi = exports.MyPBXToolsApiFactory = exports.MyPBXToolsApiFp = exports.MyPBXToolsApiAxiosParamCreator = exports.MiscApi = exports.MiscApiFactory = exports.MiscApiFp = exports.MiscApiAxiosParamCreator = exports.GetGetTenantsStatusEnum = exports.Class3CXMultiTenantApi = exports.Class3CXMultiTenantApiFactory = exports.Class3CXMultiTenantApiFp = exports.Class3CXMultiTenantApiAxiosParamCreator = exports.GetGetPriceSchoolTypeEnum = exports.GetGetPriceLicenceTypeEnum = exports.Class3CXIntegrationsApi = exports.Class3CXIntegrationsApiFactory = exports.Class3CXIntegrationsApiFp = exports.Class3CXIntegrationsApiAxiosParamCreator = exports.PostResizeInstanceSizeEnum = exports.PostFailoverInstanceTypeEnum = void 0;
90
- exports.SystemApiAxiosParamCreator = exports.SuppliersApi = exports.SuppliersApiFactory = exports.SuppliersApiFp = exports.SuppliersApiAxiosParamCreator = exports.StockManagementApi = exports.StockManagementApiFactory = exports.StockManagementApiFp = exports.StockManagementApiAxiosParamCreator = exports.ShippingApi = exports.ShippingApiFactory = exports.ShippingApiFp = exports.ShippingApiAxiosParamCreator = exports.ServicesApi = exports.ServicesApiFactory = exports.ServicesApiFp = exports.ServicesApiAxiosParamCreator = exports.SMSApi = exports.SMSApiFactory = exports.SMSApiFp = exports.SMSApiAxiosParamCreator = exports.SIPTrunksApi = exports.SIPTrunksApiFactory = exports.SIPTrunksApiFp = exports.SIPTrunksApiAxiosParamCreator = exports.ReportsApi = exports.ReportsApiFactory = exports.ReportsApiFp = exports.ReportsApiAxiosParamCreator = exports.RMAApi = exports.RMAApiFactory = exports.RMAApiFp = exports.RMAApiAxiosParamCreator = exports.ProvisioningApi = exports.ProvisioningApiFactory = exports.ProvisioningApiFp = exports.ProvisioningApiAxiosParamCreator = exports.ProspectsApi = exports.ProspectsApiFactory = exports.ProspectsApiFp = exports.ProspectsApiAxiosParamCreator = exports.PromotionsApi = exports.PromotionsApiFactory = exports.PromotionsApiFp = exports.PromotionsApiAxiosParamCreator = exports.GetGetLegacyStockListFormatEnum = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = void 0;
91
- exports.PostAddWebhookWebhookUriEnum = exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.TicketsApi = exports.TicketsApiFactory = exports.TicketsApiFp = exports.TicketsApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = void 0;
87
+ exports.ShippingRequestDTOCourierEnum = exports.ShipmentRequestDTOCourierEnum = exports.ShipmentDTOCourierEnum = exports.ServiceStatusDTOStatusEnum = exports.ServiceHealthDTOGlobalStatusEnum = exports.SeriesDTOTypeEnum = exports.SdrReferenceType = exports.RmaSummaryDTOStatusEnum = exports.RmaRequestDTORequestedResolutionEnum = exports.RmaRequestDTOReasonEnum = exports.RmaItemDTOStatusEnum = exports.RmaDTOStatusEnum = exports.RmaDTOResolutionEnum = exports.RmaDTOReasonEnum = exports.RmaCreditItemRequestDTORefundPercentageEnum = exports.ResolutionRequestModelResolutionEnum = exports.ReportRequestDTOGraphTypeEnum = exports.ReportRequestDTOReportEnum = exports.ReasonRequestModelReasonEnum = exports.ProspectDTOStatusEnum = exports.PostGetServicePlansRequestPlanGroupEnum = exports.PatchUpdateTcxHostingPriceListRequestPriceListEnum = exports.PatchUpdatePriceListRequestPriceListEnum = exports.PasswordSenderDTOIntervalTypeEnum = exports.OrderTotalModelCurrencyEnum = exports.OrderRequestModelSchoolTypeEnum = exports.OrderRequestModelLicenceTypeEnum = exports.MultiTenantChangeResponseModelTypeEnum = exports.ItemResolutionRequestModelResolutionEnum = exports.ItemDiscountEntityTypeEnum = exports.HostingRegionDTOCodeEnum = exports.HostingChangeResponseModelTypeEnum = exports.GraphDTOCurrencyEnum = exports.EventDTOStatusEnum = exports.DivertResponseModelStatusEnum = exports.CustomerRateType = exports.BrandedVideoSummaryDTOStatusEnum = exports.BrandedVideoSummaryDTOTypeEnum = exports.AxisDataDTOTypeEnum = exports.AuditLogEntityTypeEnum = exports.AuditLogEntityActionEnum = exports.AdminUserModelPermissionsEnum = exports.AdminUserModelRoleEnum = exports.AdminRmaSummaryDTOStatusEnum = exports.AdminRmaItemDTOResolutionEnum = exports.AdminRmaItemDTOStatusEnum = exports.AdminRmaDTOStatusEnum = exports.AdminRmaDTOResolutionEnum = exports.AdminRmaDTOReasonEnum = exports.AdminOrderRequestDTOPaymentMethodEnum = void 0;
88
+ exports.Class3CXInstallationWizardApi = exports.Class3CXInstallationWizardApiFactory = exports.Class3CXInstallationWizardApiFp = exports.Class3CXInstallationWizardApiAxiosParamCreator = exports.Class3CXApi = exports.Class3CXApiFactory = exports.Class3CXApiFp = exports.Class3CXApiAxiosParamCreator = exports.GetGetCrmActivitiesTypeEnum = exports.CRMApi = exports.CRMApiFactory = exports.CRMApiFp = exports.CRMApiAxiosParamCreator = exports.GetGetBrandedVideosTypeEnum = exports.BrandedVideosApi = exports.BrandedVideosApiFactory = exports.BrandedVideosApiFp = exports.BrandedVideosApiAxiosParamCreator = exports.GetGetServicesPlanDetailsTypeEnum = exports.GetGetConnectionsTypeEnum = exports.BillingApi = exports.BillingApiFactory = exports.BillingApiFp = exports.BillingApiAxiosParamCreator = exports.PatchSetPrizePromoStateEnum = exports.PatchSetPortalAccessStateEnum = exports.PatchSetOnHoldStateEnum = exports.PatchSetAccountStatusStateEnum = exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = exports.UpgradeRequestModelSchoolTypeEnum = exports.UpgradeRequestModelLicenceTypeEnum = exports.TcxWizardModelInstallationStatusEnum = exports.TcxWizardModelInstallTypeEnum = exports.TcxSetupEntityRegionEnum = exports.TcxSetupEntityInstallTypeEnum = exports.TcxMultiTenantModelPackageEnum = exports.StockReportItemModelCurrencyEnum = exports.StockOrderModelPaidEnum = exports.StockOrderModelDeliveryMethodEnum = exports.SmsResponseModelEventTypeEnum = exports.SmsPhoneNumberModelStatusEnum = exports.SmsAccountRequestDTOTypeEnum = exports.SmsAccountRequestDTOProviderEnum = exports.SipTrunkChangeResponseModelTypeEnum = exports.ShippingServiceModelCourierEnum = exports.ShippingServiceDTOCourierEnum = exports.ShippingRequestDTOPrinterEnum = void 0;
89
+ exports.PricingApiFactory = exports.PricingApiFp = exports.PricingApiAxiosParamCreator = exports.PostPrintShippingLabelPrinterEnum = exports.GetGetOrdersFilterEnum = exports.GetGetOrdersStatusEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.PostAuthoriseScopeEnum = exports.PostAccessTokenTokenExchangeTypeEnum = exports.PostAccessTokenScopeEnum = exports.PostAccessTokenGrantTypeEnum = exports.OAuth20Api = exports.OAuth20ApiFactory = exports.OAuth20ApiFp = exports.OAuth20ApiAxiosParamCreator = exports.NumberPortingApi = exports.NumberPortingApiFactory = exports.NumberPortingApiFp = exports.NumberPortingApiAxiosParamCreator = exports.MyPBXToolsApi = exports.MyPBXToolsApiFactory = exports.MyPBXToolsApiFp = exports.MyPBXToolsApiAxiosParamCreator = exports.MiscApi = exports.MiscApiFactory = exports.MiscApiFp = exports.MiscApiAxiosParamCreator = exports.GetGetTenantsStatusEnum = exports.Class3CXMultiTenantApi = exports.Class3CXMultiTenantApiFactory = exports.Class3CXMultiTenantApiFp = exports.Class3CXMultiTenantApiAxiosParamCreator = exports.GetGetPriceSchoolTypeEnum = exports.GetGetPriceLicenceTypeEnum = exports.Class3CXIntegrationsApi = exports.Class3CXIntegrationsApiFactory = exports.Class3CXIntegrationsApiFp = exports.Class3CXIntegrationsApiAxiosParamCreator = exports.PostResizeInstanceSizeEnum = exports.PostFailoverInstanceTypeEnum = exports.GetGetInstallationsInstallTypeEnum = exports.GetGetInstallationsHostingEnum = exports.GetGetInstallationsStatusEnum = exports.Class3CXInstallationsApi = exports.Class3CXInstallationsApiFactory = exports.Class3CXInstallationsApiFp = exports.Class3CXInstallationsApiAxiosParamCreator = void 0;
90
+ exports.StockManagementApiFp = exports.StockManagementApiAxiosParamCreator = exports.ShippingApi = exports.ShippingApiFactory = exports.ShippingApiFp = exports.ShippingApiAxiosParamCreator = exports.ServicesApi = exports.ServicesApiFactory = exports.ServicesApiFp = exports.ServicesApiAxiosParamCreator = exports.SMSApi = exports.SMSApiFactory = exports.SMSApiFp = exports.SMSApiAxiosParamCreator = exports.SIPTrunksApi = exports.SIPTrunksApiFactory = exports.SIPTrunksApiFp = exports.SIPTrunksApiAxiosParamCreator = exports.ReportsApi = exports.ReportsApiFactory = exports.ReportsApiFp = exports.ReportsApiAxiosParamCreator = exports.RMAApi = exports.RMAApiFactory = exports.RMAApiFp = exports.RMAApiAxiosParamCreator = exports.ProvisioningApi = exports.ProvisioningApiFactory = exports.ProvisioningApiFp = exports.ProvisioningApiAxiosParamCreator = exports.ProspectsApi = exports.ProspectsApiFactory = exports.ProspectsApiFp = exports.ProspectsApiAxiosParamCreator = exports.PromotionsApi = exports.PromotionsApiFactory = exports.PromotionsApiFp = exports.PromotionsApiAxiosParamCreator = exports.GetGetLegacyStockListFormatEnum = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.PostSendPriceListCategoryEnum = exports.PostSendPriceListFormatEnum = exports.PostSendPriceListTypeEnum = exports.GetGetPriceListCategoryEnum = exports.GetGetPriceListFormatEnum = exports.GetGetPriceListTypeEnum = exports.PricingApi = void 0;
91
+ exports.PostAddWebhookWebhookUriEnum = exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.TicketsApi = exports.TicketsApiFactory = exports.TicketsApiFp = exports.TicketsApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = exports.SystemApiAxiosParamCreator = exports.SuppliersApi = exports.SuppliersApiFactory = exports.SuppliersApiFp = exports.SuppliersApiAxiosParamCreator = exports.StockManagementApi = exports.StockManagementApiFactory = void 0;
92
92
  var axios_1 = require("axios");
93
93
  // Some imports not used depending on template conditions
94
94
  // @ts-ignore
@@ -115,6 +115,7 @@ exports.AdminRmaDTOStatusEnum = {
115
115
  NUMBER_3: 3,
116
116
  NUMBER_4: 4,
117
117
  NUMBER_5: 5,
118
+ NUMBER_6: 6,
118
119
  };
119
120
  exports.AdminRmaItemDTOStatusEnum = {
120
121
  NUMBER_1: 1,
@@ -134,6 +135,7 @@ exports.AdminRmaSummaryDTOStatusEnum = {
134
135
  NUMBER_3: 3,
135
136
  NUMBER_4: 4,
136
137
  NUMBER_5: 5,
138
+ NUMBER_6: 6,
137
139
  };
138
140
  exports.AdminUserModelRoleEnum = {
139
141
  NUMBER_0: 0,
@@ -237,6 +239,7 @@ exports.AuditLogEntityTypeEnum = {
237
239
  Pops3cxSipTrunks: 'pops_3cx_sip_trunks',
238
240
  Pops3cxUsers: 'pops_3cx_users',
239
241
  PopsUsers: 'pops_users',
242
+ PopsVideoRequests: 'pops_video_requests',
240
243
  Webhook: 'webhook',
241
244
  PopsXeroLog: 'pops_xero_log',
242
245
  Oauth2Clients: 'oauth2_clients',
@@ -248,6 +251,17 @@ exports.AxisDataDTOTypeEnum = {
248
251
  Time: 'time',
249
252
  Log: 'log',
250
253
  };
254
+ exports.BrandedVideoSummaryDTOTypeEnum = {
255
+ Paid: 'paid',
256
+ Reward: 'reward',
257
+ Sample: 'sample',
258
+ };
259
+ exports.BrandedVideoSummaryDTOStatusEnum = {
260
+ Pending: 'pending',
261
+ Complete: 'complete',
262
+ Incomplete: 'incomplete',
263
+ Unpaid: 'unpaid',
264
+ };
251
265
  exports.CustomerRateType = {
252
266
  Fixed: 'FIXED',
253
267
  MarkupPercent: 'MARKUP_PERCENT',
@@ -475,6 +489,7 @@ exports.RmaDTOStatusEnum = {
475
489
  NUMBER_3: 3,
476
490
  NUMBER_4: 4,
477
491
  NUMBER_5: 5,
492
+ NUMBER_6: 6,
478
493
  };
479
494
  exports.RmaItemDTOStatusEnum = {
480
495
  NUMBER_1: 1,
@@ -497,6 +512,7 @@ exports.RmaSummaryDTOStatusEnum = {
497
512
  NUMBER_3: 3,
498
513
  NUMBER_4: 4,
499
514
  NUMBER_5: 5,
515
+ NUMBER_6: 6,
500
516
  };
501
517
  exports.SdrReferenceType = {
502
518
  SipTrunk: 'SIP_TRUNK',
@@ -10242,6 +10258,690 @@ exports.GetGetServicesPlanDetailsTypeEnum = {
10242
10258
  Cfd: 'CFD',
10243
10259
  EdTechPro: 'EdTechPro',
10244
10260
  };
10261
+ /**
10262
+ * BrandedVideosApi - axios parameter creator
10263
+ */
10264
+ var BrandedVideosApiAxiosParamCreator = function (configuration) {
10265
+ var _this = this;
10266
+ return {
10267
+ /**
10268
+ * Send Branded Video Email
10269
+ * @param {number} id Video ID
10270
+ * @param {number} [customerId] Customer ID
10271
+ * @param {*} [options] Override http request option.
10272
+ * @throws {RequiredError}
10273
+ */
10274
+ deleteDeleteVideoRequest: function (id_1, customerId_1) {
10275
+ var args_1 = [];
10276
+ for (var _i = 2; _i < arguments.length; _i++) {
10277
+ args_1[_i - 2] = arguments[_i];
10278
+ }
10279
+ return __awaiter(_this, __spreadArray([id_1, customerId_1], args_1, true), void 0, function (id, customerId, options) {
10280
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
10281
+ if (options === void 0) { options = {}; }
10282
+ return __generator(this, function (_a) {
10283
+ // verify required parameter 'id' is not null or undefined
10284
+ (0, common_1.assertParamExists)('deleteDeleteVideoRequest', 'id', id);
10285
+ localVarPath = "/marketing/videos/{id}"
10286
+ .replace('{id}', encodeURIComponent(String(id)));
10287
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10288
+ if (configuration) {
10289
+ baseOptions = configuration.baseOptions;
10290
+ }
10291
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
10292
+ localVarHeaderParameter = {};
10293
+ localVarQueryParameter = {};
10294
+ if (customerId !== undefined) {
10295
+ localVarQueryParameter['customerId'] = customerId;
10296
+ }
10297
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10298
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10299
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10300
+ return [2 /*return*/, {
10301
+ url: (0, common_1.toPathString)(localVarUrlObj),
10302
+ options: localVarRequestOptions,
10303
+ }];
10304
+ });
10305
+ });
10306
+ },
10307
+ /**
10308
+ * Get Customer Logo
10309
+ * @param {number} [customerId] Customer ID
10310
+ * @param {*} [options] Override http request option.
10311
+ * @throws {RequiredError}
10312
+ */
10313
+ getDownloadLogo: function (customerId_1) {
10314
+ var args_1 = [];
10315
+ for (var _i = 1; _i < arguments.length; _i++) {
10316
+ args_1[_i - 1] = arguments[_i];
10317
+ }
10318
+ return __awaiter(_this, __spreadArray([customerId_1], args_1, true), void 0, function (customerId, options) {
10319
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
10320
+ if (options === void 0) { options = {}; }
10321
+ return __generator(this, function (_a) {
10322
+ localVarPath = "/marketing/videos/logo";
10323
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10324
+ if (configuration) {
10325
+ baseOptions = configuration.baseOptions;
10326
+ }
10327
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
10328
+ localVarHeaderParameter = {};
10329
+ localVarQueryParameter = {};
10330
+ if (customerId !== undefined) {
10331
+ localVarQueryParameter['customerId'] = customerId;
10332
+ }
10333
+ localVarHeaderParameter['Accept'] = 'application/json';
10334
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10335
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10336
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10337
+ return [2 /*return*/, {
10338
+ url: (0, common_1.toPathString)(localVarUrlObj),
10339
+ options: localVarRequestOptions,
10340
+ }];
10341
+ });
10342
+ });
10343
+ },
10344
+ /**
10345
+ * Get Branded Videos
10346
+ * @param {number} [pageSize] Number Of Results
10347
+ * @param {number} [page] Page Number
10348
+ * @param {string} [search] Search
10349
+ * @param {GetGetBrandedVideosTypeEnum} [type] Type
10350
+ * @param {boolean} [outstanding] Outstanding
10351
+ * @param {boolean} [overdue] Overdue
10352
+ * @param {number} [customerId] Customer ID
10353
+ * @param {*} [options] Override http request option.
10354
+ * @throws {RequiredError}
10355
+ */
10356
+ getGetBrandedVideos: function (pageSize_1, page_1, search_1, type_1, outstanding_1, overdue_1, customerId_1) {
10357
+ var args_1 = [];
10358
+ for (var _i = 7; _i < arguments.length; _i++) {
10359
+ args_1[_i - 7] = arguments[_i];
10360
+ }
10361
+ return __awaiter(_this, __spreadArray([pageSize_1, page_1, search_1, type_1, outstanding_1, overdue_1, customerId_1], args_1, true), void 0, function (pageSize, page, search, type, outstanding, overdue, customerId, options) {
10362
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
10363
+ if (options === void 0) { options = {}; }
10364
+ return __generator(this, function (_a) {
10365
+ localVarPath = "/marketing/videos";
10366
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10367
+ if (configuration) {
10368
+ baseOptions = configuration.baseOptions;
10369
+ }
10370
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
10371
+ localVarHeaderParameter = {};
10372
+ localVarQueryParameter = {};
10373
+ if (pageSize !== undefined) {
10374
+ localVarQueryParameter['pageSize'] = pageSize;
10375
+ }
10376
+ if (page !== undefined) {
10377
+ localVarQueryParameter['page'] = page;
10378
+ }
10379
+ if (search !== undefined) {
10380
+ localVarQueryParameter['search'] = search;
10381
+ }
10382
+ if (type !== undefined) {
10383
+ localVarQueryParameter['type'] = type;
10384
+ }
10385
+ if (outstanding !== undefined) {
10386
+ localVarQueryParameter['outstanding'] = outstanding;
10387
+ }
10388
+ if (overdue !== undefined) {
10389
+ localVarQueryParameter['overdue'] = overdue;
10390
+ }
10391
+ if (customerId !== undefined) {
10392
+ localVarQueryParameter['customerId'] = customerId;
10393
+ }
10394
+ localVarHeaderParameter['Accept'] = 'application/json';
10395
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10396
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10397
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10398
+ return [2 /*return*/, {
10399
+ url: (0, common_1.toPathString)(localVarUrlObj),
10400
+ options: localVarRequestOptions,
10401
+ }];
10402
+ });
10403
+ });
10404
+ },
10405
+ /**
10406
+ * Get Thumbnails
10407
+ * @param {*} [options] Override http request option.
10408
+ * @throws {RequiredError}
10409
+ */
10410
+ getGetThumbnails: function () {
10411
+ var args_1 = [];
10412
+ for (var _i = 0; _i < arguments.length; _i++) {
10413
+ args_1[_i] = arguments[_i];
10414
+ }
10415
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
10416
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
10417
+ if (options === void 0) { options = {}; }
10418
+ return __generator(this, function (_a) {
10419
+ localVarPath = "/marketing/videos/thumbnails";
10420
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10421
+ if (configuration) {
10422
+ baseOptions = configuration.baseOptions;
10423
+ }
10424
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
10425
+ localVarHeaderParameter = {};
10426
+ localVarQueryParameter = {};
10427
+ localVarHeaderParameter['Accept'] = 'application/json';
10428
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10429
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10430
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10431
+ return [2 /*return*/, {
10432
+ url: (0, common_1.toPathString)(localVarUrlObj),
10433
+ options: localVarRequestOptions,
10434
+ }];
10435
+ });
10436
+ });
10437
+ },
10438
+ /**
10439
+ * Upload logo
10440
+ * @param {File} logo Logo
10441
+ * @param {number} [customerId] Customer ID
10442
+ * @param {*} [options] Override http request option.
10443
+ * @throws {RequiredError}
10444
+ */
10445
+ postDownloadLogo: function (logo_1, customerId_1) {
10446
+ var args_1 = [];
10447
+ for (var _i = 2; _i < arguments.length; _i++) {
10448
+ args_1[_i - 2] = arguments[_i];
10449
+ }
10450
+ return __awaiter(_this, __spreadArray([logo_1, customerId_1], args_1, true), void 0, function (logo, customerId, options) {
10451
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
10452
+ if (options === void 0) { options = {}; }
10453
+ return __generator(this, function (_a) {
10454
+ // verify required parameter 'logo' is not null or undefined
10455
+ (0, common_1.assertParamExists)('postDownloadLogo', 'logo', logo);
10456
+ localVarPath = "/marketing/videos/logo";
10457
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10458
+ if (configuration) {
10459
+ baseOptions = configuration.baseOptions;
10460
+ }
10461
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
10462
+ localVarHeaderParameter = {};
10463
+ localVarQueryParameter = {};
10464
+ localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
10465
+ if (customerId !== undefined) {
10466
+ localVarQueryParameter['customerId'] = customerId;
10467
+ }
10468
+ if (logo !== undefined) {
10469
+ localVarFormParams.append('logo', logo);
10470
+ }
10471
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
10472
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10473
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10474
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10475
+ localVarRequestOptions.data = localVarFormParams;
10476
+ return [2 /*return*/, {
10477
+ url: (0, common_1.toPathString)(localVarUrlObj),
10478
+ options: localVarRequestOptions,
10479
+ }];
10480
+ });
10481
+ });
10482
+ },
10483
+ /**
10484
+ * Send Branded Video Email
10485
+ * @param {string} email Email
10486
+ * @param {number} id Video ID
10487
+ * @param {number} [customerId] Customer ID
10488
+ * @param {*} [options] Override http request option.
10489
+ * @throws {RequiredError}
10490
+ */
10491
+ postSendBrandedVideoEmail: function (email_1, id_1, customerId_1) {
10492
+ var args_1 = [];
10493
+ for (var _i = 3; _i < arguments.length; _i++) {
10494
+ args_1[_i - 3] = arguments[_i];
10495
+ }
10496
+ return __awaiter(_this, __spreadArray([email_1, id_1, customerId_1], args_1, true), void 0, function (email, id, customerId, options) {
10497
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
10498
+ if (options === void 0) { options = {}; }
10499
+ return __generator(this, function (_a) {
10500
+ // verify required parameter 'email' is not null or undefined
10501
+ (0, common_1.assertParamExists)('postSendBrandedVideoEmail', 'email', email);
10502
+ // verify required parameter 'id' is not null or undefined
10503
+ (0, common_1.assertParamExists)('postSendBrandedVideoEmail', 'id', id);
10504
+ localVarPath = "/marketing/videos/{id}/send"
10505
+ .replace('{id}', encodeURIComponent(String(id)));
10506
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10507
+ if (configuration) {
10508
+ baseOptions = configuration.baseOptions;
10509
+ }
10510
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
10511
+ localVarHeaderParameter = {};
10512
+ localVarQueryParameter = {};
10513
+ if (customerId !== undefined) {
10514
+ localVarQueryParameter['customerId'] = customerId;
10515
+ }
10516
+ if (email !== undefined) {
10517
+ localVarQueryParameter['email'] = email;
10518
+ }
10519
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10520
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10521
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10522
+ return [2 /*return*/, {
10523
+ url: (0, common_1.toPathString)(localVarUrlObj),
10524
+ options: localVarRequestOptions,
10525
+ }];
10526
+ });
10527
+ });
10528
+ },
10529
+ /**
10530
+ * Upload Video
10531
+ * @param {string} thumbnailId Thumbnail ID
10532
+ * @param {number} id Video ID
10533
+ * @param {File} video Video
10534
+ * @param {number} [customerId] Customer ID
10535
+ * @param {*} [options] Override http request option.
10536
+ * @throws {RequiredError}
10537
+ */
10538
+ postUploadVideo: function (thumbnailId_1, id_1, video_1, customerId_1) {
10539
+ var args_1 = [];
10540
+ for (var _i = 4; _i < arguments.length; _i++) {
10541
+ args_1[_i - 4] = arguments[_i];
10542
+ }
10543
+ return __awaiter(_this, __spreadArray([thumbnailId_1, id_1, video_1, customerId_1], args_1, true), void 0, function (thumbnailId, id, video, customerId, options) {
10544
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
10545
+ if (options === void 0) { options = {}; }
10546
+ return __generator(this, function (_a) {
10547
+ // verify required parameter 'thumbnailId' is not null or undefined
10548
+ (0, common_1.assertParamExists)('postUploadVideo', 'thumbnailId', thumbnailId);
10549
+ // verify required parameter 'id' is not null or undefined
10550
+ (0, common_1.assertParamExists)('postUploadVideo', 'id', id);
10551
+ // verify required parameter 'video' is not null or undefined
10552
+ (0, common_1.assertParamExists)('postUploadVideo', 'video', video);
10553
+ localVarPath = "/marketing/videos/{id}/upload"
10554
+ .replace('{id}', encodeURIComponent(String(id)));
10555
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10556
+ if (configuration) {
10557
+ baseOptions = configuration.baseOptions;
10558
+ }
10559
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
10560
+ localVarHeaderParameter = {};
10561
+ localVarQueryParameter = {};
10562
+ localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
10563
+ if (customerId !== undefined) {
10564
+ localVarQueryParameter['customerId'] = customerId;
10565
+ }
10566
+ if (thumbnailId !== undefined) {
10567
+ localVarQueryParameter['thumbnailId'] = thumbnailId;
10568
+ }
10569
+ if (video !== undefined) {
10570
+ localVarFormParams.append('video', video);
10571
+ }
10572
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
10573
+ localVarHeaderParameter['Accept'] = 'application/json';
10574
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10575
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10576
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10577
+ localVarRequestOptions.data = localVarFormParams;
10578
+ return [2 /*return*/, {
10579
+ url: (0, common_1.toPathString)(localVarUrlObj),
10580
+ options: localVarRequestOptions,
10581
+ }];
10582
+ });
10583
+ });
10584
+ },
10585
+ };
10586
+ };
10587
+ exports.BrandedVideosApiAxiosParamCreator = BrandedVideosApiAxiosParamCreator;
10588
+ /**
10589
+ * BrandedVideosApi - functional programming interface
10590
+ */
10591
+ var BrandedVideosApiFp = function (configuration) {
10592
+ var localVarAxiosParamCreator = (0, exports.BrandedVideosApiAxiosParamCreator)(configuration);
10593
+ return {
10594
+ /**
10595
+ * Send Branded Video Email
10596
+ * @param {number} id Video ID
10597
+ * @param {number} [customerId] Customer ID
10598
+ * @param {*} [options] Override http request option.
10599
+ * @throws {RequiredError}
10600
+ */
10601
+ deleteDeleteVideoRequest: function (id, customerId, options) {
10602
+ return __awaiter(this, void 0, void 0, function () {
10603
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
10604
+ var _a, _b, _c;
10605
+ return __generator(this, function (_d) {
10606
+ switch (_d.label) {
10607
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteDeleteVideoRequest(id, customerId, options)];
10608
+ case 1:
10609
+ localVarAxiosArgs = _d.sent();
10610
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
10611
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrandedVideosApi.deleteDeleteVideoRequest']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
10612
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
10613
+ }
10614
+ });
10615
+ });
10616
+ },
10617
+ /**
10618
+ * Get Customer Logo
10619
+ * @param {number} [customerId] Customer ID
10620
+ * @param {*} [options] Override http request option.
10621
+ * @throws {RequiredError}
10622
+ */
10623
+ getDownloadLogo: function (customerId, options) {
10624
+ return __awaiter(this, void 0, void 0, function () {
10625
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
10626
+ var _a, _b, _c;
10627
+ return __generator(this, function (_d) {
10628
+ switch (_d.label) {
10629
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getDownloadLogo(customerId, options)];
10630
+ case 1:
10631
+ localVarAxiosArgs = _d.sent();
10632
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
10633
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrandedVideosApi.getDownloadLogo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
10634
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
10635
+ }
10636
+ });
10637
+ });
10638
+ },
10639
+ /**
10640
+ * Get Branded Videos
10641
+ * @param {number} [pageSize] Number Of Results
10642
+ * @param {number} [page] Page Number
10643
+ * @param {string} [search] Search
10644
+ * @param {GetGetBrandedVideosTypeEnum} [type] Type
10645
+ * @param {boolean} [outstanding] Outstanding
10646
+ * @param {boolean} [overdue] Overdue
10647
+ * @param {number} [customerId] Customer ID
10648
+ * @param {*} [options] Override http request option.
10649
+ * @throws {RequiredError}
10650
+ */
10651
+ getGetBrandedVideos: function (pageSize, page, search, type, outstanding, overdue, customerId, options) {
10652
+ return __awaiter(this, void 0, void 0, function () {
10653
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
10654
+ var _a, _b, _c;
10655
+ return __generator(this, function (_d) {
10656
+ switch (_d.label) {
10657
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetBrandedVideos(pageSize, page, search, type, outstanding, overdue, customerId, options)];
10658
+ case 1:
10659
+ localVarAxiosArgs = _d.sent();
10660
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
10661
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrandedVideosApi.getGetBrandedVideos']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
10662
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
10663
+ }
10664
+ });
10665
+ });
10666
+ },
10667
+ /**
10668
+ * Get Thumbnails
10669
+ * @param {*} [options] Override http request option.
10670
+ * @throws {RequiredError}
10671
+ */
10672
+ getGetThumbnails: function (options) {
10673
+ return __awaiter(this, void 0, void 0, function () {
10674
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
10675
+ var _a, _b, _c;
10676
+ return __generator(this, function (_d) {
10677
+ switch (_d.label) {
10678
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetThumbnails(options)];
10679
+ case 1:
10680
+ localVarAxiosArgs = _d.sent();
10681
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
10682
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrandedVideosApi.getGetThumbnails']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
10683
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
10684
+ }
10685
+ });
10686
+ });
10687
+ },
10688
+ /**
10689
+ * Upload logo
10690
+ * @param {File} logo Logo
10691
+ * @param {number} [customerId] Customer ID
10692
+ * @param {*} [options] Override http request option.
10693
+ * @throws {RequiredError}
10694
+ */
10695
+ postDownloadLogo: function (logo, customerId, options) {
10696
+ return __awaiter(this, void 0, void 0, function () {
10697
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
10698
+ var _a, _b, _c;
10699
+ return __generator(this, function (_d) {
10700
+ switch (_d.label) {
10701
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postDownloadLogo(logo, customerId, options)];
10702
+ case 1:
10703
+ localVarAxiosArgs = _d.sent();
10704
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
10705
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrandedVideosApi.postDownloadLogo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
10706
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
10707
+ }
10708
+ });
10709
+ });
10710
+ },
10711
+ /**
10712
+ * Send Branded Video Email
10713
+ * @param {string} email Email
10714
+ * @param {number} id Video ID
10715
+ * @param {number} [customerId] Customer ID
10716
+ * @param {*} [options] Override http request option.
10717
+ * @throws {RequiredError}
10718
+ */
10719
+ postSendBrandedVideoEmail: function (email, id, customerId, options) {
10720
+ return __awaiter(this, void 0, void 0, function () {
10721
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
10722
+ var _a, _b, _c;
10723
+ return __generator(this, function (_d) {
10724
+ switch (_d.label) {
10725
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postSendBrandedVideoEmail(email, id, customerId, options)];
10726
+ case 1:
10727
+ localVarAxiosArgs = _d.sent();
10728
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
10729
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrandedVideosApi.postSendBrandedVideoEmail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
10730
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
10731
+ }
10732
+ });
10733
+ });
10734
+ },
10735
+ /**
10736
+ * Upload Video
10737
+ * @param {string} thumbnailId Thumbnail ID
10738
+ * @param {number} id Video ID
10739
+ * @param {File} video Video
10740
+ * @param {number} [customerId] Customer ID
10741
+ * @param {*} [options] Override http request option.
10742
+ * @throws {RequiredError}
10743
+ */
10744
+ postUploadVideo: function (thumbnailId, id, video, customerId, options) {
10745
+ return __awaiter(this, void 0, void 0, function () {
10746
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
10747
+ var _a, _b, _c;
10748
+ return __generator(this, function (_d) {
10749
+ switch (_d.label) {
10750
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postUploadVideo(thumbnailId, id, video, customerId, options)];
10751
+ case 1:
10752
+ localVarAxiosArgs = _d.sent();
10753
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
10754
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrandedVideosApi.postUploadVideo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
10755
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
10756
+ }
10757
+ });
10758
+ });
10759
+ },
10760
+ };
10761
+ };
10762
+ exports.BrandedVideosApiFp = BrandedVideosApiFp;
10763
+ /**
10764
+ * BrandedVideosApi - factory interface
10765
+ */
10766
+ var BrandedVideosApiFactory = function (configuration, basePath, axios) {
10767
+ var localVarFp = (0, exports.BrandedVideosApiFp)(configuration);
10768
+ return {
10769
+ /**
10770
+ * Send Branded Video Email
10771
+ * @param {number} id Video ID
10772
+ * @param {number} [customerId] Customer ID
10773
+ * @param {*} [options] Override http request option.
10774
+ * @throws {RequiredError}
10775
+ */
10776
+ deleteDeleteVideoRequest: function (id, customerId, options) {
10777
+ return localVarFp.deleteDeleteVideoRequest(id, customerId, options).then(function (request) { return request(axios, basePath); });
10778
+ },
10779
+ /**
10780
+ * Get Customer Logo
10781
+ * @param {number} [customerId] Customer ID
10782
+ * @param {*} [options] Override http request option.
10783
+ * @throws {RequiredError}
10784
+ */
10785
+ getDownloadLogo: function (customerId, options) {
10786
+ return localVarFp.getDownloadLogo(customerId, options).then(function (request) { return request(axios, basePath); });
10787
+ },
10788
+ /**
10789
+ * Get Branded Videos
10790
+ * @param {number} [pageSize] Number Of Results
10791
+ * @param {number} [page] Page Number
10792
+ * @param {string} [search] Search
10793
+ * @param {GetGetBrandedVideosTypeEnum} [type] Type
10794
+ * @param {boolean} [outstanding] Outstanding
10795
+ * @param {boolean} [overdue] Overdue
10796
+ * @param {number} [customerId] Customer ID
10797
+ * @param {*} [options] Override http request option.
10798
+ * @throws {RequiredError}
10799
+ */
10800
+ getGetBrandedVideos: function (pageSize, page, search, type, outstanding, overdue, customerId, options) {
10801
+ return localVarFp.getGetBrandedVideos(pageSize, page, search, type, outstanding, overdue, customerId, options).then(function (request) { return request(axios, basePath); });
10802
+ },
10803
+ /**
10804
+ * Get Thumbnails
10805
+ * @param {*} [options] Override http request option.
10806
+ * @throws {RequiredError}
10807
+ */
10808
+ getGetThumbnails: function (options) {
10809
+ return localVarFp.getGetThumbnails(options).then(function (request) { return request(axios, basePath); });
10810
+ },
10811
+ /**
10812
+ * Upload logo
10813
+ * @param {File} logo Logo
10814
+ * @param {number} [customerId] Customer ID
10815
+ * @param {*} [options] Override http request option.
10816
+ * @throws {RequiredError}
10817
+ */
10818
+ postDownloadLogo: function (logo, customerId, options) {
10819
+ return localVarFp.postDownloadLogo(logo, customerId, options).then(function (request) { return request(axios, basePath); });
10820
+ },
10821
+ /**
10822
+ * Send Branded Video Email
10823
+ * @param {string} email Email
10824
+ * @param {number} id Video ID
10825
+ * @param {number} [customerId] Customer ID
10826
+ * @param {*} [options] Override http request option.
10827
+ * @throws {RequiredError}
10828
+ */
10829
+ postSendBrandedVideoEmail: function (email, id, customerId, options) {
10830
+ return localVarFp.postSendBrandedVideoEmail(email, id, customerId, options).then(function (request) { return request(axios, basePath); });
10831
+ },
10832
+ /**
10833
+ * Upload Video
10834
+ * @param {string} thumbnailId Thumbnail ID
10835
+ * @param {number} id Video ID
10836
+ * @param {File} video Video
10837
+ * @param {number} [customerId] Customer ID
10838
+ * @param {*} [options] Override http request option.
10839
+ * @throws {RequiredError}
10840
+ */
10841
+ postUploadVideo: function (thumbnailId, id, video, customerId, options) {
10842
+ return localVarFp.postUploadVideo(thumbnailId, id, video, customerId, options).then(function (request) { return request(axios, basePath); });
10843
+ },
10844
+ };
10845
+ };
10846
+ exports.BrandedVideosApiFactory = BrandedVideosApiFactory;
10847
+ /**
10848
+ * BrandedVideosApi - object-oriented interface
10849
+ */
10850
+ var BrandedVideosApi = /** @class */ (function (_super) {
10851
+ __extends(BrandedVideosApi, _super);
10852
+ function BrandedVideosApi() {
10853
+ return _super !== null && _super.apply(this, arguments) || this;
10854
+ }
10855
+ /**
10856
+ * Send Branded Video Email
10857
+ * @param {number} id Video ID
10858
+ * @param {number} [customerId] Customer ID
10859
+ * @param {*} [options] Override http request option.
10860
+ * @throws {RequiredError}
10861
+ */
10862
+ BrandedVideosApi.prototype.deleteDeleteVideoRequest = function (id, customerId, options) {
10863
+ var _this = this;
10864
+ return (0, exports.BrandedVideosApiFp)(this.configuration).deleteDeleteVideoRequest(id, customerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
10865
+ };
10866
+ /**
10867
+ * Get Customer Logo
10868
+ * @param {number} [customerId] Customer ID
10869
+ * @param {*} [options] Override http request option.
10870
+ * @throws {RequiredError}
10871
+ */
10872
+ BrandedVideosApi.prototype.getDownloadLogo = function (customerId, options) {
10873
+ var _this = this;
10874
+ return (0, exports.BrandedVideosApiFp)(this.configuration).getDownloadLogo(customerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
10875
+ };
10876
+ /**
10877
+ * Get Branded Videos
10878
+ * @param {number} [pageSize] Number Of Results
10879
+ * @param {number} [page] Page Number
10880
+ * @param {string} [search] Search
10881
+ * @param {GetGetBrandedVideosTypeEnum} [type] Type
10882
+ * @param {boolean} [outstanding] Outstanding
10883
+ * @param {boolean} [overdue] Overdue
10884
+ * @param {number} [customerId] Customer ID
10885
+ * @param {*} [options] Override http request option.
10886
+ * @throws {RequiredError}
10887
+ */
10888
+ BrandedVideosApi.prototype.getGetBrandedVideos = function (pageSize, page, search, type, outstanding, overdue, customerId, options) {
10889
+ var _this = this;
10890
+ return (0, exports.BrandedVideosApiFp)(this.configuration).getGetBrandedVideos(pageSize, page, search, type, outstanding, overdue, customerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
10891
+ };
10892
+ /**
10893
+ * Get Thumbnails
10894
+ * @param {*} [options] Override http request option.
10895
+ * @throws {RequiredError}
10896
+ */
10897
+ BrandedVideosApi.prototype.getGetThumbnails = function (options) {
10898
+ var _this = this;
10899
+ return (0, exports.BrandedVideosApiFp)(this.configuration).getGetThumbnails(options).then(function (request) { return request(_this.axios, _this.basePath); });
10900
+ };
10901
+ /**
10902
+ * Upload logo
10903
+ * @param {File} logo Logo
10904
+ * @param {number} [customerId] Customer ID
10905
+ * @param {*} [options] Override http request option.
10906
+ * @throws {RequiredError}
10907
+ */
10908
+ BrandedVideosApi.prototype.postDownloadLogo = function (logo, customerId, options) {
10909
+ var _this = this;
10910
+ return (0, exports.BrandedVideosApiFp)(this.configuration).postDownloadLogo(logo, customerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
10911
+ };
10912
+ /**
10913
+ * Send Branded Video Email
10914
+ * @param {string} email Email
10915
+ * @param {number} id Video ID
10916
+ * @param {number} [customerId] Customer ID
10917
+ * @param {*} [options] Override http request option.
10918
+ * @throws {RequiredError}
10919
+ */
10920
+ BrandedVideosApi.prototype.postSendBrandedVideoEmail = function (email, id, customerId, options) {
10921
+ var _this = this;
10922
+ return (0, exports.BrandedVideosApiFp)(this.configuration).postSendBrandedVideoEmail(email, id, customerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
10923
+ };
10924
+ /**
10925
+ * Upload Video
10926
+ * @param {string} thumbnailId Thumbnail ID
10927
+ * @param {number} id Video ID
10928
+ * @param {File} video Video
10929
+ * @param {number} [customerId] Customer ID
10930
+ * @param {*} [options] Override http request option.
10931
+ * @throws {RequiredError}
10932
+ */
10933
+ BrandedVideosApi.prototype.postUploadVideo = function (thumbnailId, id, video, customerId, options) {
10934
+ var _this = this;
10935
+ return (0, exports.BrandedVideosApiFp)(this.configuration).postUploadVideo(thumbnailId, id, video, customerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
10936
+ };
10937
+ return BrandedVideosApi;
10938
+ }(base_1.BaseAPI));
10939
+ exports.BrandedVideosApi = BrandedVideosApi;
10940
+ exports.GetGetBrandedVideosTypeEnum = {
10941
+ Paid: 'paid',
10942
+ Reward: 'reward',
10943
+ Sample: 'sample',
10944
+ };
10245
10945
  /**
10246
10946
  * CRMApi - axios parameter creator
10247
10947
  */
@@ -19264,6 +19964,8 @@ exports.PostAccessTokenScopeEnum = {
19264
19964
  TcxWizard: 'tcx_wizard',
19265
19965
  AccountsRead: 'accounts.read',
19266
19966
  AccountsWrite: 'accounts.write',
19967
+ BrandedVideosread: 'branded_videosread',
19968
+ BrandedVideoswrite: 'branded_videoswrite',
19267
19969
  NumberPortingRead: 'number_porting.read',
19268
19970
  NumberPortingWrite: 'number_porting.write',
19269
19971
  PricingRead: 'pricing.read',
@@ -19300,6 +20002,8 @@ exports.PostAuthoriseScopeEnum = {
19300
20002
  TcxWizard: 'tcx_wizard',
19301
20003
  AccountsRead: 'accounts.read',
19302
20004
  AccountsWrite: 'accounts.write',
20005
+ BrandedVideosread: 'branded_videosread',
20006
+ BrandedVideoswrite: 'branded_videoswrite',
19303
20007
  NumberPortingRead: 'number_porting.read',
19304
20008
  NumberPortingWrite: 'number_porting.write',
19305
20009
  PricingRead: 'pricing.read',