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/api.ts CHANGED
@@ -842,6 +842,7 @@ export const AdminRmaDTOStatusEnum = {
842
842
  NUMBER_3: 3,
843
843
  NUMBER_4: 4,
844
844
  NUMBER_5: 5,
845
+ NUMBER_6: 6,
845
846
  } as const;
846
847
 
847
848
  export type AdminRmaDTOStatusEnum = typeof AdminRmaDTOStatusEnum[keyof typeof AdminRmaDTOStatusEnum];
@@ -1003,6 +1004,7 @@ export const AdminRmaSummaryDTOStatusEnum = {
1003
1004
  NUMBER_3: 3,
1004
1005
  NUMBER_4: 4,
1005
1006
  NUMBER_5: 5,
1007
+ NUMBER_6: 6,
1006
1008
  } as const;
1007
1009
 
1008
1010
  export type AdminRmaSummaryDTOStatusEnum = typeof AdminRmaSummaryDTOStatusEnum[keyof typeof AdminRmaSummaryDTOStatusEnum];
@@ -1342,6 +1344,7 @@ export const AuditLogEntityTypeEnum = {
1342
1344
  Pops3cxSipTrunks: 'pops_3cx_sip_trunks',
1343
1345
  Pops3cxUsers: 'pops_3cx_users',
1344
1346
  PopsUsers: 'pops_users',
1347
+ PopsVideoRequests: 'pops_video_requests',
1345
1348
  Webhook: 'webhook',
1346
1349
  PopsXeroLog: 'pops_xero_log',
1347
1350
  Oauth2Clients: 'oauth2_clients',
@@ -1586,6 +1589,105 @@ export interface BatchEntity {
1586
1589
  */
1587
1590
  'mac': string;
1588
1591
  }
1592
+ /**
1593
+ * Branded Video Summary
1594
+ */
1595
+ export interface BrandedVideoSummaryDTO {
1596
+ /**
1597
+ * ID
1598
+ */
1599
+ 'id': number;
1600
+ /**
1601
+ * Customer ID
1602
+ */
1603
+ 'customerId': number;
1604
+ /**
1605
+ * Company
1606
+ */
1607
+ 'company': string;
1608
+ /**
1609
+ * Type
1610
+ */
1611
+ 'type': BrandedVideoSummaryDTOTypeEnum;
1612
+ /**
1613
+ * Video
1614
+ */
1615
+ 'video': string;
1616
+ /**
1617
+ * Email
1618
+ */
1619
+ 'email': string;
1620
+ /**
1621
+ * Website
1622
+ */
1623
+ 'website': string;
1624
+ /**
1625
+ * Telephone
1626
+ */
1627
+ 'telephone': string;
1628
+ /**
1629
+ * Invoice Number
1630
+ */
1631
+ 'invoiceNumber'?: string | null;
1632
+ /**
1633
+ * Request Date
1634
+ */
1635
+ 'requestDate'?: string | null;
1636
+ /**
1637
+ * Due Date
1638
+ */
1639
+ 'dueDate'?: string | null;
1640
+ /**
1641
+ * OneDrive ID
1642
+ */
1643
+ 'oneDriveId'?: string | null;
1644
+ /**
1645
+ * Status
1646
+ */
1647
+ 'status': BrandedVideoSummaryDTOStatusEnum;
1648
+ /**
1649
+ * Notes
1650
+ */
1651
+ 'notes': string;
1652
+ }
1653
+
1654
+ export const BrandedVideoSummaryDTOTypeEnum = {
1655
+ Paid: 'paid',
1656
+ Reward: 'reward',
1657
+ Sample: 'sample',
1658
+ } as const;
1659
+
1660
+ export type BrandedVideoSummaryDTOTypeEnum = typeof BrandedVideoSummaryDTOTypeEnum[keyof typeof BrandedVideoSummaryDTOTypeEnum];
1661
+ export const BrandedVideoSummaryDTOStatusEnum = {
1662
+ Pending: 'pending',
1663
+ Complete: 'complete',
1664
+ Incomplete: 'incomplete',
1665
+ Unpaid: 'unpaid',
1666
+ } as const;
1667
+
1668
+ export type BrandedVideoSummaryDTOStatusEnum = typeof BrandedVideoSummaryDTOStatusEnum[keyof typeof BrandedVideoSummaryDTOStatusEnum];
1669
+
1670
+ /**
1671
+ * Promotions
1672
+ */
1673
+ export interface BrandedVideosSummariesModel {
1674
+ /**
1675
+ * Results
1676
+ */
1677
+ 'results': Array<BrandedVideoSummaryDTO>;
1678
+ /**
1679
+ * Page
1680
+ */
1681
+ 'page': number;
1682
+ /**
1683
+ * Per Page
1684
+ */
1685
+ 'perPage': number;
1686
+ /**
1687
+ * Total Results
1688
+ */
1689
+ 'totalResults': number;
1690
+ }
1589
1691
  export interface Bundle {
1590
1692
  'createdDate'?: string;
1591
1693
  'id'?: number;
@@ -6845,6 +6947,7 @@ export const RmaDTOStatusEnum = {
6845
6947
  NUMBER_3: 3,
6846
6948
  NUMBER_4: 4,
6847
6949
  NUMBER_5: 5,
6950
+ NUMBER_6: 6,
6848
6951
  } as const;
6849
6952
 
6850
6953
  export type RmaDTOStatusEnum = typeof RmaDTOStatusEnum[keyof typeof RmaDTOStatusEnum];
@@ -7132,6 +7235,7 @@ export const RmaSummaryDTOStatusEnum = {
7132
7235
  NUMBER_3: 3,
7133
7236
  NUMBER_4: 4,
7134
7237
  NUMBER_5: 5,
7238
+ NUMBER_6: 6,
7135
7239
  } as const;
7136
7240
 
7137
7241
  export type RmaSummaryDTOStatusEnum = typeof RmaSummaryDTOStatusEnum[keyof typeof RmaSummaryDTOStatusEnum];
@@ -10655,6 +10759,23 @@ export interface TechSupportCompanySummaryDTO {
10655
10759
  */
10656
10760
  'monthlyReportEmailAddress': string;
10657
10761
  }
10762
+ /**
10763
+ * Thumbnail
10764
+ */
10765
+ export interface ThumbnailDTO {
10766
+ /**
10767
+ * ID
10768
+ */
10769
+ 'id': string;
10770
+ /**
10771
+ * Name
10772
+ */
10773
+ 'name': string;
10774
+ /**
10775
+ * URL
10776
+ */
10777
+ 'url': string;
10778
+ }
10658
10779
  /**
10659
10780
  * Ticket Summary Model
10660
10781
  */
@@ -10875,6 +10996,75 @@ export interface UserEntity {
10875
10996
  */
10876
10997
  'secondaryHex'?: number | null;
10877
10998
  }
10999
+ /**
11000
+ * VideoRequestsEntity
11001
+ */
11002
+ export interface VideoRequestEntity {
11003
+ /**
11004
+ * id
11005
+ */
11006
+ 'id': number;
11007
+ /**
11008
+ * userId
11009
+ */
11010
+ 'userId': number;
11011
+ /**
11012
+ * type
11013
+ */
11014
+ 'type': string;
11015
+ /**
11016
+ * status
11017
+ */
11018
+ 'status': string;
11019
+ /**
11020
+ * video
11021
+ */
11022
+ 'video': string;
11023
+ /**
11024
+ * company
11025
+ */
11026
+ 'company': string;
11027
+ /**
11028
+ * email
11029
+ */
11030
+ 'email': string;
11031
+ /**
11032
+ * website
11033
+ */
11034
+ 'website': string;
11035
+ /**
11036
+ * telephone
11037
+ */
11038
+ 'telephone': string;
11039
+ /**
11040
+ * notes
11041
+ */
11042
+ 'notes': string;
11043
+ /**
11044
+ * requestDate
11045
+ */
11046
+ 'requestDate': string;
11047
+ /**
11048
+ * dueDate
11049
+ */
11050
+ 'dueDate': string;
11051
+ /**
11052
+ * invId
11053
+ */
11054
+ 'invId'?: string | null;
11055
+ /**
11056
+ * invNo
11057
+ */
11058
+ 'invNo'?: string | null;
11059
+ /**
11060
+ * onedriveId
11061
+ */
11062
+ 'onedriveId'?: string | null;
11063
+ /**
11064
+ * thumbnailId
11065
+ */
11066
+ 'thumbnailId': string;
11067
+ }
10878
11068
  /**
10879
11069
  * XeroLogEntity
10880
11070
  */
@@ -18914,6 +19104,604 @@ export const GetGetServicesPlanDetailsTypeEnum = {
18914
19104
  export type GetGetServicesPlanDetailsTypeEnum = typeof GetGetServicesPlanDetailsTypeEnum[keyof typeof GetGetServicesPlanDetailsTypeEnum];
18915
19105
 
18916
19106
 
19107
+ /**
19108
+ * BrandedVideosApi - axios parameter creator
19109
+ */
19110
+ export const BrandedVideosApiAxiosParamCreator = function (configuration?: Configuration) {
19111
+ return {
19112
+ /**
19113
+ * Send Branded Video Email
19114
+ * @param {number} id Video ID
19115
+ * @param {number} [customerId] Customer ID
19116
+ * @param {*} [options] Override http request option.
19117
+ * @throws {RequiredError}
19118
+ */
19119
+ deleteDeleteVideoRequest: async (id: number, customerId?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19120
+ // verify required parameter 'id' is not null or undefined
19121
+ assertParamExists('deleteDeleteVideoRequest', 'id', id)
19122
+ const localVarPath = `/marketing/videos/{id}`
19123
+ .replace('{id}', encodeURIComponent(String(id)));
19124
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
19125
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19126
+ let baseOptions;
19127
+ if (configuration) {
19128
+ baseOptions = configuration.baseOptions;
19129
+ }
19130
+
19131
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
19132
+ const localVarHeaderParameter = {} as any;
19133
+ const localVarQueryParameter = {} as any;
19134
+
19135
+ if (customerId !== undefined) {
19136
+ localVarQueryParameter['customerId'] = customerId;
19137
+ }
19138
+
19139
+
19140
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
19141
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19142
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19143
+
19144
+ return {
19145
+ url: toPathString(localVarUrlObj),
19146
+ options: localVarRequestOptions,
19147
+ };
19148
+ },
19149
+ /**
19150
+ * Get Customer Logo
19151
+ * @param {number} [customerId] Customer ID
19152
+ * @param {*} [options] Override http request option.
19153
+ * @throws {RequiredError}
19154
+ */
19155
+ getDownloadLogo: async (customerId?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19156
+ const localVarPath = `/marketing/videos/logo`;
19157
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
19158
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19159
+ let baseOptions;
19160
+ if (configuration) {
19161
+ baseOptions = configuration.baseOptions;
19162
+ }
19163
+
19164
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
19165
+ const localVarHeaderParameter = {} as any;
19166
+ const localVarQueryParameter = {} as any;
19167
+
19168
+ if (customerId !== undefined) {
19169
+ localVarQueryParameter['customerId'] = customerId;
19170
+ }
19171
+
19172
+ localVarHeaderParameter['Accept'] = 'application/json';
19173
+
19174
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
19175
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19176
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19177
+
19178
+ return {
19179
+ url: toPathString(localVarUrlObj),
19180
+ options: localVarRequestOptions,
19181
+ };
19182
+ },
19183
+ /**
19184
+ * Get Branded Videos
19185
+ * @param {number} [pageSize] Number Of Results
19186
+ * @param {number} [page] Page Number
19187
+ * @param {string} [search] Search
19188
+ * @param {GetGetBrandedVideosTypeEnum} [type] Type
19189
+ * @param {boolean} [outstanding] Outstanding
19190
+ * @param {boolean} [overdue] Overdue
19191
+ * @param {number} [customerId] Customer ID
19192
+ * @param {*} [options] Override http request option.
19193
+ * @throws {RequiredError}
19194
+ */
19195
+ getGetBrandedVideos: async (pageSize?: number, page?: number, search?: string, type?: GetGetBrandedVideosTypeEnum, outstanding?: boolean, overdue?: boolean, customerId?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19196
+ const localVarPath = `/marketing/videos`;
19197
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
19198
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19199
+ let baseOptions;
19200
+ if (configuration) {
19201
+ baseOptions = configuration.baseOptions;
19202
+ }
19203
+
19204
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
19205
+ const localVarHeaderParameter = {} as any;
19206
+ const localVarQueryParameter = {} as any;
19207
+
19208
+ if (pageSize !== undefined) {
19209
+ localVarQueryParameter['pageSize'] = pageSize;
19210
+ }
19211
+
19212
+ if (page !== undefined) {
19213
+ localVarQueryParameter['page'] = page;
19214
+ }
19215
+
19216
+ if (search !== undefined) {
19217
+ localVarQueryParameter['search'] = search;
19218
+ }
19219
+
19220
+ if (type !== undefined) {
19221
+ localVarQueryParameter['type'] = type;
19222
+ }
19223
+
19224
+ if (outstanding !== undefined) {
19225
+ localVarQueryParameter['outstanding'] = outstanding;
19226
+ }
19227
+
19228
+ if (overdue !== undefined) {
19229
+ localVarQueryParameter['overdue'] = overdue;
19230
+ }
19231
+
19232
+ if (customerId !== undefined) {
19233
+ localVarQueryParameter['customerId'] = customerId;
19234
+ }
19235
+
19236
+ localVarHeaderParameter['Accept'] = 'application/json';
19237
+
19238
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
19239
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19240
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19241
+
19242
+ return {
19243
+ url: toPathString(localVarUrlObj),
19244
+ options: localVarRequestOptions,
19245
+ };
19246
+ },
19247
+ /**
19248
+ * Get Thumbnails
19249
+ * @param {*} [options] Override http request option.
19250
+ * @throws {RequiredError}
19251
+ */
19252
+ getGetThumbnails: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19253
+ const localVarPath = `/marketing/videos/thumbnails`;
19254
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
19255
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19256
+ let baseOptions;
19257
+ if (configuration) {
19258
+ baseOptions = configuration.baseOptions;
19259
+ }
19260
+
19261
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
19262
+ const localVarHeaderParameter = {} as any;
19263
+ const localVarQueryParameter = {} as any;
19264
+
19265
+ localVarHeaderParameter['Accept'] = 'application/json';
19266
+
19267
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
19268
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19269
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19270
+
19271
+ return {
19272
+ url: toPathString(localVarUrlObj),
19273
+ options: localVarRequestOptions,
19274
+ };
19275
+ },
19276
+ /**
19277
+ * Upload logo
19278
+ * @param {File} logo Logo
19279
+ * @param {number} [customerId] Customer ID
19280
+ * @param {*} [options] Override http request option.
19281
+ * @throws {RequiredError}
19282
+ */
19283
+ postDownloadLogo: async (logo: File, customerId?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19284
+ // verify required parameter 'logo' is not null or undefined
19285
+ assertParamExists('postDownloadLogo', 'logo', logo)
19286
+ const localVarPath = `/marketing/videos/logo`;
19287
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
19288
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19289
+ let baseOptions;
19290
+ if (configuration) {
19291
+ baseOptions = configuration.baseOptions;
19292
+ }
19293
+
19294
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
19295
+ const localVarHeaderParameter = {} as any;
19296
+ const localVarQueryParameter = {} as any;
19297
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
19298
+
19299
+ if (customerId !== undefined) {
19300
+ localVarQueryParameter['customerId'] = customerId;
19301
+ }
19302
+
19303
+
19304
+ if (logo !== undefined) {
19305
+ localVarFormParams.append('logo', logo as any);
19306
+ }
19307
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
19308
+
19309
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
19310
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19311
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19312
+ localVarRequestOptions.data = localVarFormParams;
19313
+
19314
+ return {
19315
+ url: toPathString(localVarUrlObj),
19316
+ options: localVarRequestOptions,
19317
+ };
19318
+ },
19319
+ /**
19320
+ * Send Branded Video Email
19321
+ * @param {string} email Email
19322
+ * @param {number} id Video ID
19323
+ * @param {number} [customerId] Customer ID
19324
+ * @param {*} [options] Override http request option.
19325
+ * @throws {RequiredError}
19326
+ */
19327
+ postSendBrandedVideoEmail: async (email: string, id: number, customerId?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19328
+ // verify required parameter 'email' is not null or undefined
19329
+ assertParamExists('postSendBrandedVideoEmail', 'email', email)
19330
+ // verify required parameter 'id' is not null or undefined
19331
+ assertParamExists('postSendBrandedVideoEmail', 'id', id)
19332
+ const localVarPath = `/marketing/videos/{id}/send`
19333
+ .replace('{id}', encodeURIComponent(String(id)));
19334
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
19335
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19336
+ let baseOptions;
19337
+ if (configuration) {
19338
+ baseOptions = configuration.baseOptions;
19339
+ }
19340
+
19341
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
19342
+ const localVarHeaderParameter = {} as any;
19343
+ const localVarQueryParameter = {} as any;
19344
+
19345
+ if (customerId !== undefined) {
19346
+ localVarQueryParameter['customerId'] = customerId;
19347
+ }
19348
+
19349
+ if (email !== undefined) {
19350
+ localVarQueryParameter['email'] = email;
19351
+ }
19352
+
19353
+
19354
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
19355
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19356
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19357
+
19358
+ return {
19359
+ url: toPathString(localVarUrlObj),
19360
+ options: localVarRequestOptions,
19361
+ };
19362
+ },
19363
+ /**
19364
+ * Upload Video
19365
+ * @param {string} thumbnailId Thumbnail ID
19366
+ * @param {number} id Video ID
19367
+ * @param {File} video Video
19368
+ * @param {number} [customerId] Customer ID
19369
+ * @param {*} [options] Override http request option.
19370
+ * @throws {RequiredError}
19371
+ */
19372
+ postUploadVideo: async (thumbnailId: string, id: number, video: File, customerId?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19373
+ // verify required parameter 'thumbnailId' is not null or undefined
19374
+ assertParamExists('postUploadVideo', 'thumbnailId', thumbnailId)
19375
+ // verify required parameter 'id' is not null or undefined
19376
+ assertParamExists('postUploadVideo', 'id', id)
19377
+ // verify required parameter 'video' is not null or undefined
19378
+ assertParamExists('postUploadVideo', 'video', video)
19379
+ const localVarPath = `/marketing/videos/{id}/upload`
19380
+ .replace('{id}', encodeURIComponent(String(id)));
19381
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
19382
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19383
+ let baseOptions;
19384
+ if (configuration) {
19385
+ baseOptions = configuration.baseOptions;
19386
+ }
19387
+
19388
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
19389
+ const localVarHeaderParameter = {} as any;
19390
+ const localVarQueryParameter = {} as any;
19391
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
19392
+
19393
+ if (customerId !== undefined) {
19394
+ localVarQueryParameter['customerId'] = customerId;
19395
+ }
19396
+
19397
+ if (thumbnailId !== undefined) {
19398
+ localVarQueryParameter['thumbnailId'] = thumbnailId;
19399
+ }
19400
+
19401
+
19402
+ if (video !== undefined) {
19403
+ localVarFormParams.append('video', video as any);
19404
+ }
19405
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
19406
+ localVarHeaderParameter['Accept'] = 'application/json';
19407
+
19408
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
19409
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19410
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19411
+ localVarRequestOptions.data = localVarFormParams;
19412
+
19413
+ return {
19414
+ url: toPathString(localVarUrlObj),
19415
+ options: localVarRequestOptions,
19416
+ };
19417
+ },
19418
+ }
19419
+ };
19420
+
19421
+ /**
19422
+ * BrandedVideosApi - functional programming interface
19423
+ */
19424
+ export const BrandedVideosApiFp = function(configuration?: Configuration) {
19425
+ const localVarAxiosParamCreator = BrandedVideosApiAxiosParamCreator(configuration)
19426
+ return {
19427
+ /**
19428
+ * Send Branded Video Email
19429
+ * @param {number} id Video ID
19430
+ * @param {number} [customerId] Customer ID
19431
+ * @param {*} [options] Override http request option.
19432
+ * @throws {RequiredError}
19433
+ */
19434
+ async deleteDeleteVideoRequest(id: number, customerId?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
19435
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDeleteVideoRequest(id, customerId, options);
19436
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19437
+ const localVarOperationServerBasePath = operationServerMap['BrandedVideosApi.deleteDeleteVideoRequest']?.[localVarOperationServerIndex]?.url;
19438
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19439
+ },
19440
+ /**
19441
+ * Get Customer Logo
19442
+ * @param {number} [customerId] Customer ID
19443
+ * @param {*} [options] Override http request option.
19444
+ * @throws {RequiredError}
19445
+ */
19446
+ async getDownloadLogo(customerId?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
19447
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getDownloadLogo(customerId, options);
19448
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19449
+ const localVarOperationServerBasePath = operationServerMap['BrandedVideosApi.getDownloadLogo']?.[localVarOperationServerIndex]?.url;
19450
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19451
+ },
19452
+ /**
19453
+ * Get Branded Videos
19454
+ * @param {number} [pageSize] Number Of Results
19455
+ * @param {number} [page] Page Number
19456
+ * @param {string} [search] Search
19457
+ * @param {GetGetBrandedVideosTypeEnum} [type] Type
19458
+ * @param {boolean} [outstanding] Outstanding
19459
+ * @param {boolean} [overdue] Overdue
19460
+ * @param {number} [customerId] Customer ID
19461
+ * @param {*} [options] Override http request option.
19462
+ * @throws {RequiredError}
19463
+ */
19464
+ async getGetBrandedVideos(pageSize?: number, page?: number, search?: string, type?: GetGetBrandedVideosTypeEnum, outstanding?: boolean, overdue?: boolean, customerId?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BrandedVideosSummariesModel>> {
19465
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetBrandedVideos(pageSize, page, search, type, outstanding, overdue, customerId, options);
19466
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19467
+ const localVarOperationServerBasePath = operationServerMap['BrandedVideosApi.getGetBrandedVideos']?.[localVarOperationServerIndex]?.url;
19468
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19469
+ },
19470
+ /**
19471
+ * Get Thumbnails
19472
+ * @param {*} [options] Override http request option.
19473
+ * @throws {RequiredError}
19474
+ */
19475
+ async getGetThumbnails(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ThumbnailDTO>>> {
19476
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetThumbnails(options);
19477
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19478
+ const localVarOperationServerBasePath = operationServerMap['BrandedVideosApi.getGetThumbnails']?.[localVarOperationServerIndex]?.url;
19479
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19480
+ },
19481
+ /**
19482
+ * Upload logo
19483
+ * @param {File} logo Logo
19484
+ * @param {number} [customerId] Customer ID
19485
+ * @param {*} [options] Override http request option.
19486
+ * @throws {RequiredError}
19487
+ */
19488
+ async postDownloadLogo(logo: File, customerId?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
19489
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postDownloadLogo(logo, customerId, options);
19490
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19491
+ const localVarOperationServerBasePath = operationServerMap['BrandedVideosApi.postDownloadLogo']?.[localVarOperationServerIndex]?.url;
19492
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19493
+ },
19494
+ /**
19495
+ * Send Branded Video Email
19496
+ * @param {string} email Email
19497
+ * @param {number} id Video ID
19498
+ * @param {number} [customerId] Customer ID
19499
+ * @param {*} [options] Override http request option.
19500
+ * @throws {RequiredError}
19501
+ */
19502
+ async postSendBrandedVideoEmail(email: string, id: number, customerId?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
19503
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postSendBrandedVideoEmail(email, id, customerId, options);
19504
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19505
+ const localVarOperationServerBasePath = operationServerMap['BrandedVideosApi.postSendBrandedVideoEmail']?.[localVarOperationServerIndex]?.url;
19506
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19507
+ },
19508
+ /**
19509
+ * Upload Video
19510
+ * @param {string} thumbnailId Thumbnail ID
19511
+ * @param {number} id Video ID
19512
+ * @param {File} video Video
19513
+ * @param {number} [customerId] Customer ID
19514
+ * @param {*} [options] Override http request option.
19515
+ * @throws {RequiredError}
19516
+ */
19517
+ async postUploadVideo(thumbnailId: string, id: number, video: File, customerId?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BrandedVideoSummaryDTO>> {
19518
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postUploadVideo(thumbnailId, id, video, customerId, options);
19519
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19520
+ const localVarOperationServerBasePath = operationServerMap['BrandedVideosApi.postUploadVideo']?.[localVarOperationServerIndex]?.url;
19521
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19522
+ },
19523
+ }
19524
+ };
19525
+
19526
+ /**
19527
+ * BrandedVideosApi - factory interface
19528
+ */
19529
+ export const BrandedVideosApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
19530
+ const localVarFp = BrandedVideosApiFp(configuration)
19531
+ return {
19532
+ /**
19533
+ * Send Branded Video Email
19534
+ * @param {number} id Video ID
19535
+ * @param {number} [customerId] Customer ID
19536
+ * @param {*} [options] Override http request option.
19537
+ * @throws {RequiredError}
19538
+ */
19539
+ deleteDeleteVideoRequest(id: number, customerId?: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
19540
+ return localVarFp.deleteDeleteVideoRequest(id, customerId, options).then((request) => request(axios, basePath));
19541
+ },
19542
+ /**
19543
+ * Get Customer Logo
19544
+ * @param {number} [customerId] Customer ID
19545
+ * @param {*} [options] Override http request option.
19546
+ * @throws {RequiredError}
19547
+ */
19548
+ getDownloadLogo(customerId?: number, options?: RawAxiosRequestConfig): AxiosPromise<string> {
19549
+ return localVarFp.getDownloadLogo(customerId, options).then((request) => request(axios, basePath));
19550
+ },
19551
+ /**
19552
+ * Get Branded Videos
19553
+ * @param {number} [pageSize] Number Of Results
19554
+ * @param {number} [page] Page Number
19555
+ * @param {string} [search] Search
19556
+ * @param {GetGetBrandedVideosTypeEnum} [type] Type
19557
+ * @param {boolean} [outstanding] Outstanding
19558
+ * @param {boolean} [overdue] Overdue
19559
+ * @param {number} [customerId] Customer ID
19560
+ * @param {*} [options] Override http request option.
19561
+ * @throws {RequiredError}
19562
+ */
19563
+ getGetBrandedVideos(pageSize?: number, page?: number, search?: string, type?: GetGetBrandedVideosTypeEnum, outstanding?: boolean, overdue?: boolean, customerId?: number, options?: RawAxiosRequestConfig): AxiosPromise<BrandedVideosSummariesModel> {
19564
+ return localVarFp.getGetBrandedVideos(pageSize, page, search, type, outstanding, overdue, customerId, options).then((request) => request(axios, basePath));
19565
+ },
19566
+ /**
19567
+ * Get Thumbnails
19568
+ * @param {*} [options] Override http request option.
19569
+ * @throws {RequiredError}
19570
+ */
19571
+ getGetThumbnails(options?: RawAxiosRequestConfig): AxiosPromise<Array<ThumbnailDTO>> {
19572
+ return localVarFp.getGetThumbnails(options).then((request) => request(axios, basePath));
19573
+ },
19574
+ /**
19575
+ * Upload logo
19576
+ * @param {File} logo Logo
19577
+ * @param {number} [customerId] Customer ID
19578
+ * @param {*} [options] Override http request option.
19579
+ * @throws {RequiredError}
19580
+ */
19581
+ postDownloadLogo(logo: File, customerId?: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
19582
+ return localVarFp.postDownloadLogo(logo, customerId, options).then((request) => request(axios, basePath));
19583
+ },
19584
+ /**
19585
+ * Send Branded Video Email
19586
+ * @param {string} email Email
19587
+ * @param {number} id Video ID
19588
+ * @param {number} [customerId] Customer ID
19589
+ * @param {*} [options] Override http request option.
19590
+ * @throws {RequiredError}
19591
+ */
19592
+ postSendBrandedVideoEmail(email: string, id: number, customerId?: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
19593
+ return localVarFp.postSendBrandedVideoEmail(email, id, customerId, options).then((request) => request(axios, basePath));
19594
+ },
19595
+ /**
19596
+ * Upload Video
19597
+ * @param {string} thumbnailId Thumbnail ID
19598
+ * @param {number} id Video ID
19599
+ * @param {File} video Video
19600
+ * @param {number} [customerId] Customer ID
19601
+ * @param {*} [options] Override http request option.
19602
+ * @throws {RequiredError}
19603
+ */
19604
+ postUploadVideo(thumbnailId: string, id: number, video: File, customerId?: number, options?: RawAxiosRequestConfig): AxiosPromise<BrandedVideoSummaryDTO> {
19605
+ return localVarFp.postUploadVideo(thumbnailId, id, video, customerId, options).then((request) => request(axios, basePath));
19606
+ },
19607
+ };
19608
+ };
19609
+
19610
+ /**
19611
+ * BrandedVideosApi - object-oriented interface
19612
+ */
19613
+ export class BrandedVideosApi extends BaseAPI {
19614
+ /**
19615
+ * Send Branded Video Email
19616
+ * @param {number} id Video ID
19617
+ * @param {number} [customerId] Customer ID
19618
+ * @param {*} [options] Override http request option.
19619
+ * @throws {RequiredError}
19620
+ */
19621
+ public deleteDeleteVideoRequest(id: number, customerId?: number, options?: RawAxiosRequestConfig) {
19622
+ return BrandedVideosApiFp(this.configuration).deleteDeleteVideoRequest(id, customerId, options).then((request) => request(this.axios, this.basePath));
19623
+ }
19624
+
19625
+ /**
19626
+ * Get Customer Logo
19627
+ * @param {number} [customerId] Customer ID
19628
+ * @param {*} [options] Override http request option.
19629
+ * @throws {RequiredError}
19630
+ */
19631
+ public getDownloadLogo(customerId?: number, options?: RawAxiosRequestConfig) {
19632
+ return BrandedVideosApiFp(this.configuration).getDownloadLogo(customerId, options).then((request) => request(this.axios, this.basePath));
19633
+ }
19634
+
19635
+ /**
19636
+ * Get Branded Videos
19637
+ * @param {number} [pageSize] Number Of Results
19638
+ * @param {number} [page] Page Number
19639
+ * @param {string} [search] Search
19640
+ * @param {GetGetBrandedVideosTypeEnum} [type] Type
19641
+ * @param {boolean} [outstanding] Outstanding
19642
+ * @param {boolean} [overdue] Overdue
19643
+ * @param {number} [customerId] Customer ID
19644
+ * @param {*} [options] Override http request option.
19645
+ * @throws {RequiredError}
19646
+ */
19647
+ public getGetBrandedVideos(pageSize?: number, page?: number, search?: string, type?: GetGetBrandedVideosTypeEnum, outstanding?: boolean, overdue?: boolean, customerId?: number, options?: RawAxiosRequestConfig) {
19648
+ return BrandedVideosApiFp(this.configuration).getGetBrandedVideos(pageSize, page, search, type, outstanding, overdue, customerId, options).then((request) => request(this.axios, this.basePath));
19649
+ }
19650
+
19651
+ /**
19652
+ * Get Thumbnails
19653
+ * @param {*} [options] Override http request option.
19654
+ * @throws {RequiredError}
19655
+ */
19656
+ public getGetThumbnails(options?: RawAxiosRequestConfig) {
19657
+ return BrandedVideosApiFp(this.configuration).getGetThumbnails(options).then((request) => request(this.axios, this.basePath));
19658
+ }
19659
+
19660
+ /**
19661
+ * Upload logo
19662
+ * @param {File} logo Logo
19663
+ * @param {number} [customerId] Customer ID
19664
+ * @param {*} [options] Override http request option.
19665
+ * @throws {RequiredError}
19666
+ */
19667
+ public postDownloadLogo(logo: File, customerId?: number, options?: RawAxiosRequestConfig) {
19668
+ return BrandedVideosApiFp(this.configuration).postDownloadLogo(logo, customerId, options).then((request) => request(this.axios, this.basePath));
19669
+ }
19670
+
19671
+ /**
19672
+ * Send Branded Video Email
19673
+ * @param {string} email Email
19674
+ * @param {number} id Video ID
19675
+ * @param {number} [customerId] Customer ID
19676
+ * @param {*} [options] Override http request option.
19677
+ * @throws {RequiredError}
19678
+ */
19679
+ public postSendBrandedVideoEmail(email: string, id: number, customerId?: number, options?: RawAxiosRequestConfig) {
19680
+ return BrandedVideosApiFp(this.configuration).postSendBrandedVideoEmail(email, id, customerId, options).then((request) => request(this.axios, this.basePath));
19681
+ }
19682
+
19683
+ /**
19684
+ * Upload Video
19685
+ * @param {string} thumbnailId Thumbnail ID
19686
+ * @param {number} id Video ID
19687
+ * @param {File} video Video
19688
+ * @param {number} [customerId] Customer ID
19689
+ * @param {*} [options] Override http request option.
19690
+ * @throws {RequiredError}
19691
+ */
19692
+ public postUploadVideo(thumbnailId: string, id: number, video: File, customerId?: number, options?: RawAxiosRequestConfig) {
19693
+ return BrandedVideosApiFp(this.configuration).postUploadVideo(thumbnailId, id, video, customerId, options).then((request) => request(this.axios, this.basePath));
19694
+ }
19695
+ }
19696
+
19697
+ export const GetGetBrandedVideosTypeEnum = {
19698
+ Paid: 'paid',
19699
+ Reward: 'reward',
19700
+ Sample: 'sample',
19701
+ } as const;
19702
+ export type GetGetBrandedVideosTypeEnum = typeof GetGetBrandedVideosTypeEnum[keyof typeof GetGetBrandedVideosTypeEnum];
19703
+
19704
+
18917
19705
  /**
18918
19706
  * CRMApi - axios parameter creator
18919
19707
  */
@@ -26637,6 +27425,8 @@ export const PostAccessTokenScopeEnum = {
26637
27425
  TcxWizard: 'tcx_wizard',
26638
27426
  AccountsRead: 'accounts.read',
26639
27427
  AccountsWrite: 'accounts.write',
27428
+ BrandedVideosread: 'branded_videosread',
27429
+ BrandedVideoswrite: 'branded_videoswrite',
26640
27430
  NumberPortingRead: 'number_porting.read',
26641
27431
  NumberPortingWrite: 'number_porting.write',
26642
27432
  PricingRead: 'pricing.read',
@@ -26675,6 +27465,8 @@ export const PostAuthoriseScopeEnum = {
26675
27465
  TcxWizard: 'tcx_wizard',
26676
27466
  AccountsRead: 'accounts.read',
26677
27467
  AccountsWrite: 'accounts.write',
27468
+ BrandedVideosread: 'branded_videosread',
27469
+ BrandedVideoswrite: 'branded_videoswrite',
26678
27470
  NumberPortingRead: 'number_porting.read',
26679
27471
  NumberPortingWrite: 'number_porting.write',
26680
27472
  PricingRead: 'pricing.read',