yellowgrid-api-ts 3.2.246-dev.0 → 3.2.248-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/.openapi-generator/FILES +5 -0
- package/README.md +13 -0
- package/api.ts +899 -8
- package/dist/api.d.ts +562 -8
- package/dist/api.js +716 -4
- package/docs/BrandedVideoSummaryDTO.md +45 -0
- package/docs/BrandedVideosApi.md +424 -0
- package/docs/BrandedVideosSummariesModel.md +27 -0
- package/docs/OAuth20Api.md +3 -3
- package/docs/PromoCodesEntity.md +5 -5
- package/docs/PromoModel.md +5 -5
- package/docs/PromoSummaryDTO.md +2 -0
- package/docs/ThumbnailDTO.md +25 -0
- package/docs/VideoRequestEntity.md +51 -0
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -84,10 +84,10 @@ 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.
|
|
88
|
-
exports.
|
|
89
|
-
exports.
|
|
90
|
-
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 = 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 = void 0;
|
|
87
|
+
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 = exports.ShippingRequestDTOCourierEnum = exports.ShipmentRequestDTOCourierEnum = exports.ShipmentDTOCourierEnum = exports.ServiceStatusDTOStatusEnum = exports.ServiceHealthDTOGlobalStatusEnum = exports.SeriesDTOTypeEnum = exports.SdrReferenceType = exports.ReportRequestDTOGraphTypeEnum = exports.ReportRequestDTOReportEnum = exports.ProspectDTOStatusEnum = exports.PostGetServicePlansRequestPlanGroupEnum = exports.PatchUpdateTcxHostingPriceListRequestPriceListEnum = exports.PatchUpdatePriceListRequestPriceListEnum = exports.PasswordSenderDTOIntervalTypeEnum = exports.OrderTotalModelCurrencyEnum = exports.OrderRequestModelSchoolTypeEnum = exports.OrderRequestModelLicenceTypeEnum = exports.MultiTenantChangeResponseModelTypeEnum = 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.AdminOrderRequestDTOPaymentMethodEnum = void 0;
|
|
88
|
+
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 = 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 = void 0;
|
|
89
|
+
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 = 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 = void 0;
|
|
90
|
+
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 = 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.ProvisioningApi = exports.ProvisioningApiFactory = exports.ProvisioningApiFp = exports.ProvisioningApiAxiosParamCreator = exports.ProspectsApi = exports.ProspectsApiFactory = exports.ProspectsApiFp = void 0;
|
|
91
91
|
var axios_1 = require("axios");
|
|
92
92
|
// Some imports not used depending on template conditions
|
|
93
93
|
// @ts-ignore
|
|
@@ -197,6 +197,7 @@ exports.AuditLogEntityTypeEnum = {
|
|
|
197
197
|
Pops3cxSipTrunks: 'pops_3cx_sip_trunks',
|
|
198
198
|
Pops3cxUsers: 'pops_3cx_users',
|
|
199
199
|
PopsUsers: 'pops_users',
|
|
200
|
+
PopsVideoRequests: 'pops_video_requests',
|
|
200
201
|
Webhook: 'webhook',
|
|
201
202
|
PopsXeroLog: 'pops_xero_log',
|
|
202
203
|
Oauth2Clients: 'oauth2_clients',
|
|
@@ -208,6 +209,17 @@ exports.AxisDataDTOTypeEnum = {
|
|
|
208
209
|
Time: 'time',
|
|
209
210
|
Log: 'log'
|
|
210
211
|
};
|
|
212
|
+
exports.BrandedVideoSummaryDTOTypeEnum = {
|
|
213
|
+
Paid: 'paid',
|
|
214
|
+
Reward: 'reward',
|
|
215
|
+
Sample: 'sample'
|
|
216
|
+
};
|
|
217
|
+
exports.BrandedVideoSummaryDTOStatusEnum = {
|
|
218
|
+
Pending: 'pending',
|
|
219
|
+
Complete: 'complete',
|
|
220
|
+
Incomplete: 'incomplete',
|
|
221
|
+
Unpaid: 'unpaid'
|
|
222
|
+
};
|
|
211
223
|
/**
|
|
212
224
|
*
|
|
213
225
|
* @export
|
|
@@ -10136,6 +10148,702 @@ exports.GetGetServicesPlanDetailsTypeEnum = {
|
|
|
10136
10148
|
Cfd: 'CFD',
|
|
10137
10149
|
EdTechPro: 'EdTechPro'
|
|
10138
10150
|
};
|
|
10151
|
+
/**
|
|
10152
|
+
* BrandedVideosApi - axios parameter creator
|
|
10153
|
+
* @export
|
|
10154
|
+
*/
|
|
10155
|
+
var BrandedVideosApiAxiosParamCreator = function (configuration) {
|
|
10156
|
+
var _this = this;
|
|
10157
|
+
return {
|
|
10158
|
+
/**
|
|
10159
|
+
* Send Branded Video Email
|
|
10160
|
+
* @param {number} id Video ID
|
|
10161
|
+
* @param {number} [customerId] Customer ID
|
|
10162
|
+
* @param {*} [options] Override http request option.
|
|
10163
|
+
* @throws {RequiredError}
|
|
10164
|
+
*/
|
|
10165
|
+
deleteDeleteVideoRequest: function (id_1, customerId_1) {
|
|
10166
|
+
var args_1 = [];
|
|
10167
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
10168
|
+
args_1[_i - 2] = arguments[_i];
|
|
10169
|
+
}
|
|
10170
|
+
return __awaiter(_this, __spreadArray([id_1, customerId_1], args_1, true), void 0, function (id, customerId, options) {
|
|
10171
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
10172
|
+
if (options === void 0) { options = {}; }
|
|
10173
|
+
return __generator(this, function (_a) {
|
|
10174
|
+
// verify required parameter 'id' is not null or undefined
|
|
10175
|
+
(0, common_1.assertParamExists)('deleteDeleteVideoRequest', 'id', id);
|
|
10176
|
+
localVarPath = "/marketing/videos/{id}"
|
|
10177
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
10178
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10179
|
+
if (configuration) {
|
|
10180
|
+
baseOptions = configuration.baseOptions;
|
|
10181
|
+
}
|
|
10182
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
10183
|
+
localVarHeaderParameter = {};
|
|
10184
|
+
localVarQueryParameter = {};
|
|
10185
|
+
if (customerId !== undefined) {
|
|
10186
|
+
localVarQueryParameter['customerId'] = customerId;
|
|
10187
|
+
}
|
|
10188
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10189
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10190
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10191
|
+
return [2 /*return*/, {
|
|
10192
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10193
|
+
options: localVarRequestOptions,
|
|
10194
|
+
}];
|
|
10195
|
+
});
|
|
10196
|
+
});
|
|
10197
|
+
},
|
|
10198
|
+
/**
|
|
10199
|
+
* Get Customer Logo
|
|
10200
|
+
* @param {number} [customerId] Customer ID
|
|
10201
|
+
* @param {*} [options] Override http request option.
|
|
10202
|
+
* @throws {RequiredError}
|
|
10203
|
+
*/
|
|
10204
|
+
getDownloadLogo: function (customerId_1) {
|
|
10205
|
+
var args_1 = [];
|
|
10206
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
10207
|
+
args_1[_i - 1] = arguments[_i];
|
|
10208
|
+
}
|
|
10209
|
+
return __awaiter(_this, __spreadArray([customerId_1], args_1, true), void 0, function (customerId, options) {
|
|
10210
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
10211
|
+
if (options === void 0) { options = {}; }
|
|
10212
|
+
return __generator(this, function (_a) {
|
|
10213
|
+
localVarPath = "/marketing/videos/logo";
|
|
10214
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10215
|
+
if (configuration) {
|
|
10216
|
+
baseOptions = configuration.baseOptions;
|
|
10217
|
+
}
|
|
10218
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
10219
|
+
localVarHeaderParameter = {};
|
|
10220
|
+
localVarQueryParameter = {};
|
|
10221
|
+
if (customerId !== undefined) {
|
|
10222
|
+
localVarQueryParameter['customerId'] = customerId;
|
|
10223
|
+
}
|
|
10224
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10225
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10226
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10227
|
+
return [2 /*return*/, {
|
|
10228
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10229
|
+
options: localVarRequestOptions,
|
|
10230
|
+
}];
|
|
10231
|
+
});
|
|
10232
|
+
});
|
|
10233
|
+
},
|
|
10234
|
+
/**
|
|
10235
|
+
* Get Branded Videos
|
|
10236
|
+
* @param {number} [pageSize] Number Of Results
|
|
10237
|
+
* @param {number} [page] Page Number
|
|
10238
|
+
* @param {string} [search] Search
|
|
10239
|
+
* @param {GetGetBrandedVideosTypeEnum} [type] Type
|
|
10240
|
+
* @param {boolean} [outstanding] Outstanding
|
|
10241
|
+
* @param {boolean} [overdue] Overdue
|
|
10242
|
+
* @param {number} [customerId] Customer ID
|
|
10243
|
+
* @param {*} [options] Override http request option.
|
|
10244
|
+
* @throws {RequiredError}
|
|
10245
|
+
*/
|
|
10246
|
+
getGetBrandedVideos: function (pageSize_1, page_1, search_1, type_1, outstanding_1, overdue_1, customerId_1) {
|
|
10247
|
+
var args_1 = [];
|
|
10248
|
+
for (var _i = 7; _i < arguments.length; _i++) {
|
|
10249
|
+
args_1[_i - 7] = arguments[_i];
|
|
10250
|
+
}
|
|
10251
|
+
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) {
|
|
10252
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
10253
|
+
if (options === void 0) { options = {}; }
|
|
10254
|
+
return __generator(this, function (_a) {
|
|
10255
|
+
localVarPath = "/marketing/videos";
|
|
10256
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10257
|
+
if (configuration) {
|
|
10258
|
+
baseOptions = configuration.baseOptions;
|
|
10259
|
+
}
|
|
10260
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
10261
|
+
localVarHeaderParameter = {};
|
|
10262
|
+
localVarQueryParameter = {};
|
|
10263
|
+
if (pageSize !== undefined) {
|
|
10264
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
10265
|
+
}
|
|
10266
|
+
if (page !== undefined) {
|
|
10267
|
+
localVarQueryParameter['page'] = page;
|
|
10268
|
+
}
|
|
10269
|
+
if (search !== undefined) {
|
|
10270
|
+
localVarQueryParameter['search'] = search;
|
|
10271
|
+
}
|
|
10272
|
+
if (type !== undefined) {
|
|
10273
|
+
localVarQueryParameter['type'] = type;
|
|
10274
|
+
}
|
|
10275
|
+
if (outstanding !== undefined) {
|
|
10276
|
+
localVarQueryParameter['outstanding'] = outstanding;
|
|
10277
|
+
}
|
|
10278
|
+
if (overdue !== undefined) {
|
|
10279
|
+
localVarQueryParameter['overdue'] = overdue;
|
|
10280
|
+
}
|
|
10281
|
+
if (customerId !== undefined) {
|
|
10282
|
+
localVarQueryParameter['customerId'] = customerId;
|
|
10283
|
+
}
|
|
10284
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10285
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10286
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10287
|
+
return [2 /*return*/, {
|
|
10288
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10289
|
+
options: localVarRequestOptions,
|
|
10290
|
+
}];
|
|
10291
|
+
});
|
|
10292
|
+
});
|
|
10293
|
+
},
|
|
10294
|
+
/**
|
|
10295
|
+
* Get Thumbnails
|
|
10296
|
+
* @param {*} [options] Override http request option.
|
|
10297
|
+
* @throws {RequiredError}
|
|
10298
|
+
*/
|
|
10299
|
+
getGetThumbnails: function () {
|
|
10300
|
+
var args_1 = [];
|
|
10301
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
10302
|
+
args_1[_i] = arguments[_i];
|
|
10303
|
+
}
|
|
10304
|
+
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
10305
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
10306
|
+
if (options === void 0) { options = {}; }
|
|
10307
|
+
return __generator(this, function (_a) {
|
|
10308
|
+
localVarPath = "/marketing/videos/thumbnails";
|
|
10309
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10310
|
+
if (configuration) {
|
|
10311
|
+
baseOptions = configuration.baseOptions;
|
|
10312
|
+
}
|
|
10313
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
10314
|
+
localVarHeaderParameter = {};
|
|
10315
|
+
localVarQueryParameter = {};
|
|
10316
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10317
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10318
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10319
|
+
return [2 /*return*/, {
|
|
10320
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10321
|
+
options: localVarRequestOptions,
|
|
10322
|
+
}];
|
|
10323
|
+
});
|
|
10324
|
+
});
|
|
10325
|
+
},
|
|
10326
|
+
/**
|
|
10327
|
+
* Upload logo
|
|
10328
|
+
* @param {File} logo Logo
|
|
10329
|
+
* @param {number} [customerId] Customer ID
|
|
10330
|
+
* @param {*} [options] Override http request option.
|
|
10331
|
+
* @throws {RequiredError}
|
|
10332
|
+
*/
|
|
10333
|
+
postDownloadLogo: function (logo_1, customerId_1) {
|
|
10334
|
+
var args_1 = [];
|
|
10335
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
10336
|
+
args_1[_i - 2] = arguments[_i];
|
|
10337
|
+
}
|
|
10338
|
+
return __awaiter(_this, __spreadArray([logo_1, customerId_1], args_1, true), void 0, function (logo, customerId, options) {
|
|
10339
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
|
|
10340
|
+
if (options === void 0) { options = {}; }
|
|
10341
|
+
return __generator(this, function (_a) {
|
|
10342
|
+
// verify required parameter 'logo' is not null or undefined
|
|
10343
|
+
(0, common_1.assertParamExists)('postDownloadLogo', 'logo', logo);
|
|
10344
|
+
localVarPath = "/marketing/videos/logo";
|
|
10345
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10346
|
+
if (configuration) {
|
|
10347
|
+
baseOptions = configuration.baseOptions;
|
|
10348
|
+
}
|
|
10349
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
10350
|
+
localVarHeaderParameter = {};
|
|
10351
|
+
localVarQueryParameter = {};
|
|
10352
|
+
localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
10353
|
+
if (customerId !== undefined) {
|
|
10354
|
+
localVarQueryParameter['customerId'] = customerId;
|
|
10355
|
+
}
|
|
10356
|
+
if (logo !== undefined) {
|
|
10357
|
+
localVarFormParams.append('logo', logo);
|
|
10358
|
+
}
|
|
10359
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
10360
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10361
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10362
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10363
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
10364
|
+
return [2 /*return*/, {
|
|
10365
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10366
|
+
options: localVarRequestOptions,
|
|
10367
|
+
}];
|
|
10368
|
+
});
|
|
10369
|
+
});
|
|
10370
|
+
},
|
|
10371
|
+
/**
|
|
10372
|
+
* Send Branded Video Email
|
|
10373
|
+
* @param {string} email Email
|
|
10374
|
+
* @param {number} id Video ID
|
|
10375
|
+
* @param {number} [customerId] Customer ID
|
|
10376
|
+
* @param {*} [options] Override http request option.
|
|
10377
|
+
* @throws {RequiredError}
|
|
10378
|
+
*/
|
|
10379
|
+
postSendBrandedVideoEmail: function (email_1, id_1, customerId_1) {
|
|
10380
|
+
var args_1 = [];
|
|
10381
|
+
for (var _i = 3; _i < arguments.length; _i++) {
|
|
10382
|
+
args_1[_i - 3] = arguments[_i];
|
|
10383
|
+
}
|
|
10384
|
+
return __awaiter(_this, __spreadArray([email_1, id_1, customerId_1], args_1, true), void 0, function (email, id, customerId, options) {
|
|
10385
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
10386
|
+
if (options === void 0) { options = {}; }
|
|
10387
|
+
return __generator(this, function (_a) {
|
|
10388
|
+
// verify required parameter 'email' is not null or undefined
|
|
10389
|
+
(0, common_1.assertParamExists)('postSendBrandedVideoEmail', 'email', email);
|
|
10390
|
+
// verify required parameter 'id' is not null or undefined
|
|
10391
|
+
(0, common_1.assertParamExists)('postSendBrandedVideoEmail', 'id', id);
|
|
10392
|
+
localVarPath = "/marketing/videos/{id}/send"
|
|
10393
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
10394
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10395
|
+
if (configuration) {
|
|
10396
|
+
baseOptions = configuration.baseOptions;
|
|
10397
|
+
}
|
|
10398
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
10399
|
+
localVarHeaderParameter = {};
|
|
10400
|
+
localVarQueryParameter = {};
|
|
10401
|
+
if (customerId !== undefined) {
|
|
10402
|
+
localVarQueryParameter['customerId'] = customerId;
|
|
10403
|
+
}
|
|
10404
|
+
if (email !== undefined) {
|
|
10405
|
+
localVarQueryParameter['email'] = email;
|
|
10406
|
+
}
|
|
10407
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10408
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10409
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10410
|
+
return [2 /*return*/, {
|
|
10411
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10412
|
+
options: localVarRequestOptions,
|
|
10413
|
+
}];
|
|
10414
|
+
});
|
|
10415
|
+
});
|
|
10416
|
+
},
|
|
10417
|
+
/**
|
|
10418
|
+
* Upload Video
|
|
10419
|
+
* @param {string} thumbnailId Thumbnail ID
|
|
10420
|
+
* @param {number} id Video ID
|
|
10421
|
+
* @param {File} video Video
|
|
10422
|
+
* @param {number} [customerId] Customer ID
|
|
10423
|
+
* @param {*} [options] Override http request option.
|
|
10424
|
+
* @throws {RequiredError}
|
|
10425
|
+
*/
|
|
10426
|
+
postUploadVideo: function (thumbnailId_1, id_1, video_1, customerId_1) {
|
|
10427
|
+
var args_1 = [];
|
|
10428
|
+
for (var _i = 4; _i < arguments.length; _i++) {
|
|
10429
|
+
args_1[_i - 4] = arguments[_i];
|
|
10430
|
+
}
|
|
10431
|
+
return __awaiter(_this, __spreadArray([thumbnailId_1, id_1, video_1, customerId_1], args_1, true), void 0, function (thumbnailId, id, video, customerId, options) {
|
|
10432
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
|
|
10433
|
+
if (options === void 0) { options = {}; }
|
|
10434
|
+
return __generator(this, function (_a) {
|
|
10435
|
+
// verify required parameter 'thumbnailId' is not null or undefined
|
|
10436
|
+
(0, common_1.assertParamExists)('postUploadVideo', 'thumbnailId', thumbnailId);
|
|
10437
|
+
// verify required parameter 'id' is not null or undefined
|
|
10438
|
+
(0, common_1.assertParamExists)('postUploadVideo', 'id', id);
|
|
10439
|
+
// verify required parameter 'video' is not null or undefined
|
|
10440
|
+
(0, common_1.assertParamExists)('postUploadVideo', 'video', video);
|
|
10441
|
+
localVarPath = "/marketing/videos/{id}/upload"
|
|
10442
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
10443
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10444
|
+
if (configuration) {
|
|
10445
|
+
baseOptions = configuration.baseOptions;
|
|
10446
|
+
}
|
|
10447
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
10448
|
+
localVarHeaderParameter = {};
|
|
10449
|
+
localVarQueryParameter = {};
|
|
10450
|
+
localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
10451
|
+
if (customerId !== undefined) {
|
|
10452
|
+
localVarQueryParameter['customerId'] = customerId;
|
|
10453
|
+
}
|
|
10454
|
+
if (thumbnailId !== undefined) {
|
|
10455
|
+
localVarQueryParameter['thumbnailId'] = thumbnailId;
|
|
10456
|
+
}
|
|
10457
|
+
if (video !== undefined) {
|
|
10458
|
+
localVarFormParams.append('video', video);
|
|
10459
|
+
}
|
|
10460
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
10461
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10462
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10463
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10464
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
10465
|
+
return [2 /*return*/, {
|
|
10466
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10467
|
+
options: localVarRequestOptions,
|
|
10468
|
+
}];
|
|
10469
|
+
});
|
|
10470
|
+
});
|
|
10471
|
+
},
|
|
10472
|
+
};
|
|
10473
|
+
};
|
|
10474
|
+
exports.BrandedVideosApiAxiosParamCreator = BrandedVideosApiAxiosParamCreator;
|
|
10475
|
+
/**
|
|
10476
|
+
* BrandedVideosApi - functional programming interface
|
|
10477
|
+
* @export
|
|
10478
|
+
*/
|
|
10479
|
+
var BrandedVideosApiFp = function (configuration) {
|
|
10480
|
+
var localVarAxiosParamCreator = (0, exports.BrandedVideosApiAxiosParamCreator)(configuration);
|
|
10481
|
+
return {
|
|
10482
|
+
/**
|
|
10483
|
+
* Send Branded Video Email
|
|
10484
|
+
* @param {number} id Video ID
|
|
10485
|
+
* @param {number} [customerId] Customer ID
|
|
10486
|
+
* @param {*} [options] Override http request option.
|
|
10487
|
+
* @throws {RequiredError}
|
|
10488
|
+
*/
|
|
10489
|
+
deleteDeleteVideoRequest: function (id, customerId, options) {
|
|
10490
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
10491
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
10492
|
+
var _a, _b, _c;
|
|
10493
|
+
return __generator(this, function (_d) {
|
|
10494
|
+
switch (_d.label) {
|
|
10495
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteDeleteVideoRequest(id, customerId, options)];
|
|
10496
|
+
case 1:
|
|
10497
|
+
localVarAxiosArgs = _d.sent();
|
|
10498
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
10499
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrandedVideosApi.deleteDeleteVideoRequest']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
10500
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
10501
|
+
}
|
|
10502
|
+
});
|
|
10503
|
+
});
|
|
10504
|
+
},
|
|
10505
|
+
/**
|
|
10506
|
+
* Get Customer Logo
|
|
10507
|
+
* @param {number} [customerId] Customer ID
|
|
10508
|
+
* @param {*} [options] Override http request option.
|
|
10509
|
+
* @throws {RequiredError}
|
|
10510
|
+
*/
|
|
10511
|
+
getDownloadLogo: function (customerId, options) {
|
|
10512
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
10513
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
10514
|
+
var _a, _b, _c;
|
|
10515
|
+
return __generator(this, function (_d) {
|
|
10516
|
+
switch (_d.label) {
|
|
10517
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getDownloadLogo(customerId, options)];
|
|
10518
|
+
case 1:
|
|
10519
|
+
localVarAxiosArgs = _d.sent();
|
|
10520
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
10521
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrandedVideosApi.getDownloadLogo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
10522
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
10523
|
+
}
|
|
10524
|
+
});
|
|
10525
|
+
});
|
|
10526
|
+
},
|
|
10527
|
+
/**
|
|
10528
|
+
* Get Branded Videos
|
|
10529
|
+
* @param {number} [pageSize] Number Of Results
|
|
10530
|
+
* @param {number} [page] Page Number
|
|
10531
|
+
* @param {string} [search] Search
|
|
10532
|
+
* @param {GetGetBrandedVideosTypeEnum} [type] Type
|
|
10533
|
+
* @param {boolean} [outstanding] Outstanding
|
|
10534
|
+
* @param {boolean} [overdue] Overdue
|
|
10535
|
+
* @param {number} [customerId] Customer ID
|
|
10536
|
+
* @param {*} [options] Override http request option.
|
|
10537
|
+
* @throws {RequiredError}
|
|
10538
|
+
*/
|
|
10539
|
+
getGetBrandedVideos: function (pageSize, page, search, type, outstanding, overdue, customerId, options) {
|
|
10540
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
10541
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
10542
|
+
var _a, _b, _c;
|
|
10543
|
+
return __generator(this, function (_d) {
|
|
10544
|
+
switch (_d.label) {
|
|
10545
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetBrandedVideos(pageSize, page, search, type, outstanding, overdue, customerId, options)];
|
|
10546
|
+
case 1:
|
|
10547
|
+
localVarAxiosArgs = _d.sent();
|
|
10548
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
10549
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrandedVideosApi.getGetBrandedVideos']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
10550
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
10551
|
+
}
|
|
10552
|
+
});
|
|
10553
|
+
});
|
|
10554
|
+
},
|
|
10555
|
+
/**
|
|
10556
|
+
* Get Thumbnails
|
|
10557
|
+
* @param {*} [options] Override http request option.
|
|
10558
|
+
* @throws {RequiredError}
|
|
10559
|
+
*/
|
|
10560
|
+
getGetThumbnails: function (options) {
|
|
10561
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
10562
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
10563
|
+
var _a, _b, _c;
|
|
10564
|
+
return __generator(this, function (_d) {
|
|
10565
|
+
switch (_d.label) {
|
|
10566
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetThumbnails(options)];
|
|
10567
|
+
case 1:
|
|
10568
|
+
localVarAxiosArgs = _d.sent();
|
|
10569
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
10570
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrandedVideosApi.getGetThumbnails']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
10571
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
10572
|
+
}
|
|
10573
|
+
});
|
|
10574
|
+
});
|
|
10575
|
+
},
|
|
10576
|
+
/**
|
|
10577
|
+
* Upload logo
|
|
10578
|
+
* @param {File} logo Logo
|
|
10579
|
+
* @param {number} [customerId] Customer ID
|
|
10580
|
+
* @param {*} [options] Override http request option.
|
|
10581
|
+
* @throws {RequiredError}
|
|
10582
|
+
*/
|
|
10583
|
+
postDownloadLogo: function (logo, customerId, options) {
|
|
10584
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
10585
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
10586
|
+
var _a, _b, _c;
|
|
10587
|
+
return __generator(this, function (_d) {
|
|
10588
|
+
switch (_d.label) {
|
|
10589
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postDownloadLogo(logo, customerId, options)];
|
|
10590
|
+
case 1:
|
|
10591
|
+
localVarAxiosArgs = _d.sent();
|
|
10592
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
10593
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrandedVideosApi.postDownloadLogo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
10594
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
10595
|
+
}
|
|
10596
|
+
});
|
|
10597
|
+
});
|
|
10598
|
+
},
|
|
10599
|
+
/**
|
|
10600
|
+
* Send Branded Video Email
|
|
10601
|
+
* @param {string} email Email
|
|
10602
|
+
* @param {number} id Video ID
|
|
10603
|
+
* @param {number} [customerId] Customer ID
|
|
10604
|
+
* @param {*} [options] Override http request option.
|
|
10605
|
+
* @throws {RequiredError}
|
|
10606
|
+
*/
|
|
10607
|
+
postSendBrandedVideoEmail: function (email, id, customerId, options) {
|
|
10608
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
10609
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
10610
|
+
var _a, _b, _c;
|
|
10611
|
+
return __generator(this, function (_d) {
|
|
10612
|
+
switch (_d.label) {
|
|
10613
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postSendBrandedVideoEmail(email, id, customerId, options)];
|
|
10614
|
+
case 1:
|
|
10615
|
+
localVarAxiosArgs = _d.sent();
|
|
10616
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
10617
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrandedVideosApi.postSendBrandedVideoEmail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
10618
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
10619
|
+
}
|
|
10620
|
+
});
|
|
10621
|
+
});
|
|
10622
|
+
},
|
|
10623
|
+
/**
|
|
10624
|
+
* Upload Video
|
|
10625
|
+
* @param {string} thumbnailId Thumbnail ID
|
|
10626
|
+
* @param {number} id Video ID
|
|
10627
|
+
* @param {File} video Video
|
|
10628
|
+
* @param {number} [customerId] Customer ID
|
|
10629
|
+
* @param {*} [options] Override http request option.
|
|
10630
|
+
* @throws {RequiredError}
|
|
10631
|
+
*/
|
|
10632
|
+
postUploadVideo: function (thumbnailId, id, video, customerId, options) {
|
|
10633
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
10634
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
10635
|
+
var _a, _b, _c;
|
|
10636
|
+
return __generator(this, function (_d) {
|
|
10637
|
+
switch (_d.label) {
|
|
10638
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postUploadVideo(thumbnailId, id, video, customerId, options)];
|
|
10639
|
+
case 1:
|
|
10640
|
+
localVarAxiosArgs = _d.sent();
|
|
10641
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
10642
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrandedVideosApi.postUploadVideo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
10643
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
10644
|
+
}
|
|
10645
|
+
});
|
|
10646
|
+
});
|
|
10647
|
+
},
|
|
10648
|
+
};
|
|
10649
|
+
};
|
|
10650
|
+
exports.BrandedVideosApiFp = BrandedVideosApiFp;
|
|
10651
|
+
/**
|
|
10652
|
+
* BrandedVideosApi - factory interface
|
|
10653
|
+
* @export
|
|
10654
|
+
*/
|
|
10655
|
+
var BrandedVideosApiFactory = function (configuration, basePath, axios) {
|
|
10656
|
+
var localVarFp = (0, exports.BrandedVideosApiFp)(configuration);
|
|
10657
|
+
return {
|
|
10658
|
+
/**
|
|
10659
|
+
* Send Branded Video Email
|
|
10660
|
+
* @param {number} id Video ID
|
|
10661
|
+
* @param {number} [customerId] Customer ID
|
|
10662
|
+
* @param {*} [options] Override http request option.
|
|
10663
|
+
* @throws {RequiredError}
|
|
10664
|
+
*/
|
|
10665
|
+
deleteDeleteVideoRequest: function (id, customerId, options) {
|
|
10666
|
+
return localVarFp.deleteDeleteVideoRequest(id, customerId, options).then(function (request) { return request(axios, basePath); });
|
|
10667
|
+
},
|
|
10668
|
+
/**
|
|
10669
|
+
* Get Customer Logo
|
|
10670
|
+
* @param {number} [customerId] Customer ID
|
|
10671
|
+
* @param {*} [options] Override http request option.
|
|
10672
|
+
* @throws {RequiredError}
|
|
10673
|
+
*/
|
|
10674
|
+
getDownloadLogo: function (customerId, options) {
|
|
10675
|
+
return localVarFp.getDownloadLogo(customerId, options).then(function (request) { return request(axios, basePath); });
|
|
10676
|
+
},
|
|
10677
|
+
/**
|
|
10678
|
+
* Get Branded Videos
|
|
10679
|
+
* @param {number} [pageSize] Number Of Results
|
|
10680
|
+
* @param {number} [page] Page Number
|
|
10681
|
+
* @param {string} [search] Search
|
|
10682
|
+
* @param {GetGetBrandedVideosTypeEnum} [type] Type
|
|
10683
|
+
* @param {boolean} [outstanding] Outstanding
|
|
10684
|
+
* @param {boolean} [overdue] Overdue
|
|
10685
|
+
* @param {number} [customerId] Customer ID
|
|
10686
|
+
* @param {*} [options] Override http request option.
|
|
10687
|
+
* @throws {RequiredError}
|
|
10688
|
+
*/
|
|
10689
|
+
getGetBrandedVideos: function (pageSize, page, search, type, outstanding, overdue, customerId, options) {
|
|
10690
|
+
return localVarFp.getGetBrandedVideos(pageSize, page, search, type, outstanding, overdue, customerId, options).then(function (request) { return request(axios, basePath); });
|
|
10691
|
+
},
|
|
10692
|
+
/**
|
|
10693
|
+
* Get Thumbnails
|
|
10694
|
+
* @param {*} [options] Override http request option.
|
|
10695
|
+
* @throws {RequiredError}
|
|
10696
|
+
*/
|
|
10697
|
+
getGetThumbnails: function (options) {
|
|
10698
|
+
return localVarFp.getGetThumbnails(options).then(function (request) { return request(axios, basePath); });
|
|
10699
|
+
},
|
|
10700
|
+
/**
|
|
10701
|
+
* Upload logo
|
|
10702
|
+
* @param {File} logo Logo
|
|
10703
|
+
* @param {number} [customerId] Customer ID
|
|
10704
|
+
* @param {*} [options] Override http request option.
|
|
10705
|
+
* @throws {RequiredError}
|
|
10706
|
+
*/
|
|
10707
|
+
postDownloadLogo: function (logo, customerId, options) {
|
|
10708
|
+
return localVarFp.postDownloadLogo(logo, customerId, options).then(function (request) { return request(axios, basePath); });
|
|
10709
|
+
},
|
|
10710
|
+
/**
|
|
10711
|
+
* Send Branded Video Email
|
|
10712
|
+
* @param {string} email Email
|
|
10713
|
+
* @param {number} id Video ID
|
|
10714
|
+
* @param {number} [customerId] Customer ID
|
|
10715
|
+
* @param {*} [options] Override http request option.
|
|
10716
|
+
* @throws {RequiredError}
|
|
10717
|
+
*/
|
|
10718
|
+
postSendBrandedVideoEmail: function (email, id, customerId, options) {
|
|
10719
|
+
return localVarFp.postSendBrandedVideoEmail(email, id, customerId, options).then(function (request) { return request(axios, basePath); });
|
|
10720
|
+
},
|
|
10721
|
+
/**
|
|
10722
|
+
* Upload Video
|
|
10723
|
+
* @param {string} thumbnailId Thumbnail ID
|
|
10724
|
+
* @param {number} id Video ID
|
|
10725
|
+
* @param {File} video Video
|
|
10726
|
+
* @param {number} [customerId] Customer ID
|
|
10727
|
+
* @param {*} [options] Override http request option.
|
|
10728
|
+
* @throws {RequiredError}
|
|
10729
|
+
*/
|
|
10730
|
+
postUploadVideo: function (thumbnailId, id, video, customerId, options) {
|
|
10731
|
+
return localVarFp.postUploadVideo(thumbnailId, id, video, customerId, options).then(function (request) { return request(axios, basePath); });
|
|
10732
|
+
},
|
|
10733
|
+
};
|
|
10734
|
+
};
|
|
10735
|
+
exports.BrandedVideosApiFactory = BrandedVideosApiFactory;
|
|
10736
|
+
/**
|
|
10737
|
+
* BrandedVideosApi - object-oriented interface
|
|
10738
|
+
* @export
|
|
10739
|
+
* @class BrandedVideosApi
|
|
10740
|
+
* @extends {BaseAPI}
|
|
10741
|
+
*/
|
|
10742
|
+
var BrandedVideosApi = /** @class */ (function (_super) {
|
|
10743
|
+
__extends(BrandedVideosApi, _super);
|
|
10744
|
+
function BrandedVideosApi() {
|
|
10745
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
10746
|
+
}
|
|
10747
|
+
/**
|
|
10748
|
+
* Send Branded Video Email
|
|
10749
|
+
* @param {number} id Video ID
|
|
10750
|
+
* @param {number} [customerId] Customer ID
|
|
10751
|
+
* @param {*} [options] Override http request option.
|
|
10752
|
+
* @throws {RequiredError}
|
|
10753
|
+
* @memberof BrandedVideosApi
|
|
10754
|
+
*/
|
|
10755
|
+
BrandedVideosApi.prototype.deleteDeleteVideoRequest = function (id, customerId, options) {
|
|
10756
|
+
var _this = this;
|
|
10757
|
+
return (0, exports.BrandedVideosApiFp)(this.configuration).deleteDeleteVideoRequest(id, customerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
10758
|
+
};
|
|
10759
|
+
/**
|
|
10760
|
+
* Get Customer Logo
|
|
10761
|
+
* @param {number} [customerId] Customer ID
|
|
10762
|
+
* @param {*} [options] Override http request option.
|
|
10763
|
+
* @throws {RequiredError}
|
|
10764
|
+
* @memberof BrandedVideosApi
|
|
10765
|
+
*/
|
|
10766
|
+
BrandedVideosApi.prototype.getDownloadLogo = function (customerId, options) {
|
|
10767
|
+
var _this = this;
|
|
10768
|
+
return (0, exports.BrandedVideosApiFp)(this.configuration).getDownloadLogo(customerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
10769
|
+
};
|
|
10770
|
+
/**
|
|
10771
|
+
* Get Branded Videos
|
|
10772
|
+
* @param {number} [pageSize] Number Of Results
|
|
10773
|
+
* @param {number} [page] Page Number
|
|
10774
|
+
* @param {string} [search] Search
|
|
10775
|
+
* @param {GetGetBrandedVideosTypeEnum} [type] Type
|
|
10776
|
+
* @param {boolean} [outstanding] Outstanding
|
|
10777
|
+
* @param {boolean} [overdue] Overdue
|
|
10778
|
+
* @param {number} [customerId] Customer ID
|
|
10779
|
+
* @param {*} [options] Override http request option.
|
|
10780
|
+
* @throws {RequiredError}
|
|
10781
|
+
* @memberof BrandedVideosApi
|
|
10782
|
+
*/
|
|
10783
|
+
BrandedVideosApi.prototype.getGetBrandedVideos = function (pageSize, page, search, type, outstanding, overdue, customerId, options) {
|
|
10784
|
+
var _this = this;
|
|
10785
|
+
return (0, exports.BrandedVideosApiFp)(this.configuration).getGetBrandedVideos(pageSize, page, search, type, outstanding, overdue, customerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
10786
|
+
};
|
|
10787
|
+
/**
|
|
10788
|
+
* Get Thumbnails
|
|
10789
|
+
* @param {*} [options] Override http request option.
|
|
10790
|
+
* @throws {RequiredError}
|
|
10791
|
+
* @memberof BrandedVideosApi
|
|
10792
|
+
*/
|
|
10793
|
+
BrandedVideosApi.prototype.getGetThumbnails = function (options) {
|
|
10794
|
+
var _this = this;
|
|
10795
|
+
return (0, exports.BrandedVideosApiFp)(this.configuration).getGetThumbnails(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
10796
|
+
};
|
|
10797
|
+
/**
|
|
10798
|
+
* Upload logo
|
|
10799
|
+
* @param {File} logo Logo
|
|
10800
|
+
* @param {number} [customerId] Customer ID
|
|
10801
|
+
* @param {*} [options] Override http request option.
|
|
10802
|
+
* @throws {RequiredError}
|
|
10803
|
+
* @memberof BrandedVideosApi
|
|
10804
|
+
*/
|
|
10805
|
+
BrandedVideosApi.prototype.postDownloadLogo = function (logo, customerId, options) {
|
|
10806
|
+
var _this = this;
|
|
10807
|
+
return (0, exports.BrandedVideosApiFp)(this.configuration).postDownloadLogo(logo, customerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
10808
|
+
};
|
|
10809
|
+
/**
|
|
10810
|
+
* Send Branded Video Email
|
|
10811
|
+
* @param {string} email Email
|
|
10812
|
+
* @param {number} id Video ID
|
|
10813
|
+
* @param {number} [customerId] Customer ID
|
|
10814
|
+
* @param {*} [options] Override http request option.
|
|
10815
|
+
* @throws {RequiredError}
|
|
10816
|
+
* @memberof BrandedVideosApi
|
|
10817
|
+
*/
|
|
10818
|
+
BrandedVideosApi.prototype.postSendBrandedVideoEmail = function (email, id, customerId, options) {
|
|
10819
|
+
var _this = this;
|
|
10820
|
+
return (0, exports.BrandedVideosApiFp)(this.configuration).postSendBrandedVideoEmail(email, id, customerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
10821
|
+
};
|
|
10822
|
+
/**
|
|
10823
|
+
* Upload Video
|
|
10824
|
+
* @param {string} thumbnailId Thumbnail ID
|
|
10825
|
+
* @param {number} id Video ID
|
|
10826
|
+
* @param {File} video Video
|
|
10827
|
+
* @param {number} [customerId] Customer ID
|
|
10828
|
+
* @param {*} [options] Override http request option.
|
|
10829
|
+
* @throws {RequiredError}
|
|
10830
|
+
* @memberof BrandedVideosApi
|
|
10831
|
+
*/
|
|
10832
|
+
BrandedVideosApi.prototype.postUploadVideo = function (thumbnailId, id, video, customerId, options) {
|
|
10833
|
+
var _this = this;
|
|
10834
|
+
return (0, exports.BrandedVideosApiFp)(this.configuration).postUploadVideo(thumbnailId, id, video, customerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
10835
|
+
};
|
|
10836
|
+
return BrandedVideosApi;
|
|
10837
|
+
}(base_1.BaseAPI));
|
|
10838
|
+
exports.BrandedVideosApi = BrandedVideosApi;
|
|
10839
|
+
/**
|
|
10840
|
+
* @export
|
|
10841
|
+
*/
|
|
10842
|
+
exports.GetGetBrandedVideosTypeEnum = {
|
|
10843
|
+
Paid: 'paid',
|
|
10844
|
+
Reward: 'reward',
|
|
10845
|
+
Sample: 'sample'
|
|
10846
|
+
};
|
|
10139
10847
|
/**
|
|
10140
10848
|
* CRMApi - axios parameter creator
|
|
10141
10849
|
* @export
|
|
@@ -19263,6 +19971,8 @@ exports.PostAccessTokenScopeEnum = {
|
|
|
19263
19971
|
TcxWizard: 'tcx_wizard',
|
|
19264
19972
|
AccountsRead: 'accounts.read',
|
|
19265
19973
|
AccountsWrite: 'accounts.write',
|
|
19974
|
+
BrandedVideosread: 'branded_videosread',
|
|
19975
|
+
BrandedVideoswrite: 'branded_videoswrite',
|
|
19266
19976
|
NumberPortingRead: 'number_porting.read',
|
|
19267
19977
|
NumberPortingWrite: 'number_porting.write',
|
|
19268
19978
|
PricingRead: 'pricing.read',
|
|
@@ -19303,6 +20013,8 @@ exports.PostAuthoriseScopeEnum = {
|
|
|
19303
20013
|
TcxWizard: 'tcx_wizard',
|
|
19304
20014
|
AccountsRead: 'accounts.read',
|
|
19305
20015
|
AccountsWrite: 'accounts.write',
|
|
20016
|
+
BrandedVideosread: 'branded_videosread',
|
|
20017
|
+
BrandedVideoswrite: 'branded_videoswrite',
|
|
19306
20018
|
NumberPortingRead: 'number_porting.read',
|
|
19307
20019
|
NumberPortingWrite: 'number_porting.write',
|
|
19308
20020
|
PricingRead: 'pricing.read',
|