@teemill/platform 0.32.0 → 0.33.1
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/README.md +14 -2
- package/api.ts +894 -3
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +573 -3
- package/dist/api.js +487 -2
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +573 -3
- package/dist/esm/api.js +482 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AmendOrderRequestAmendmentsInner.md +2 -0
- package/docs/AmendOrderRequestAmendmentsInnerReason.md +22 -0
- package/docs/CreatePixelRequest.md +24 -0
- package/docs/CreatePixelRequestFilters.md +24 -0
- package/docs/Pixel.md +26 -0
- package/docs/PixelsApi.md +341 -0
- package/docs/PixelsResponse.md +22 -0
- package/docs/ReturnOrderRequest.md +1 -1
- package/docs/ReturnOrderRequestReturnsInner.md +28 -0
- package/docs/ReturnOrderRequestReturnsInnerReason.md +22 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Platform API
|
|
5
5
|
* Manage Your podOS platform
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.33.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -121,6 +121,12 @@ export interface AmendOrderRequestAmendmentsInner {
|
|
|
121
121
|
* @memberof AmendOrderRequestAmendmentsInner
|
|
122
122
|
*/
|
|
123
123
|
'newVariantRef'?: string;
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
* @type {AmendOrderRequestAmendmentsInnerReason}
|
|
127
|
+
* @memberof AmendOrderRequestAmendmentsInner
|
|
128
|
+
*/
|
|
129
|
+
'reason': AmendOrderRequestAmendmentsInnerReason;
|
|
124
130
|
}
|
|
125
131
|
|
|
126
132
|
export const AmendOrderRequestAmendmentsInnerActionEnum = {
|
|
@@ -130,6 +136,25 @@ export const AmendOrderRequestAmendmentsInnerActionEnum = {
|
|
|
130
136
|
|
|
131
137
|
export type AmendOrderRequestAmendmentsInnerActionEnum = typeof AmendOrderRequestAmendmentsInnerActionEnum[keyof typeof AmendOrderRequestAmendmentsInnerActionEnum];
|
|
132
138
|
|
|
139
|
+
/**
|
|
140
|
+
*
|
|
141
|
+
* @export
|
|
142
|
+
* @interface AmendOrderRequestAmendmentsInnerReason
|
|
143
|
+
*/
|
|
144
|
+
export interface AmendOrderRequestAmendmentsInnerReason {
|
|
145
|
+
/**
|
|
146
|
+
* A reference to the resource location
|
|
147
|
+
* @type {string}
|
|
148
|
+
* @memberof AmendOrderRequestAmendmentsInnerReason
|
|
149
|
+
*/
|
|
150
|
+
'reasonRef': string;
|
|
151
|
+
/**
|
|
152
|
+
* Additional comments as to why the item is being returned or exchanged.
|
|
153
|
+
* @type {string}
|
|
154
|
+
* @memberof AmendOrderRequestAmendmentsInnerReason
|
|
155
|
+
*/
|
|
156
|
+
'additionalComments'?: string | null;
|
|
157
|
+
}
|
|
133
158
|
/**
|
|
134
159
|
*
|
|
135
160
|
* @export
|
|
@@ -434,6 +459,56 @@ export interface CreateOrderContactInformation {
|
|
|
434
459
|
*/
|
|
435
460
|
'phone'?: string | null;
|
|
436
461
|
}
|
|
462
|
+
/**
|
|
463
|
+
*
|
|
464
|
+
* @export
|
|
465
|
+
* @interface CreatePixelRequest
|
|
466
|
+
*/
|
|
467
|
+
export interface CreatePixelRequest {
|
|
468
|
+
/**
|
|
469
|
+
*
|
|
470
|
+
* @type {string}
|
|
471
|
+
* @memberof CreatePixelRequest
|
|
472
|
+
*/
|
|
473
|
+
'name': string;
|
|
474
|
+
/**
|
|
475
|
+
*
|
|
476
|
+
* @type {Array<string>}
|
|
477
|
+
* @memberof CreatePixelRequest
|
|
478
|
+
*/
|
|
479
|
+
'sourceProjects': Array<string>;
|
|
480
|
+
/**
|
|
481
|
+
*
|
|
482
|
+
* @type {CreatePixelRequestFilters}
|
|
483
|
+
* @memberof CreatePixelRequest
|
|
484
|
+
*/
|
|
485
|
+
'filters': CreatePixelRequestFilters;
|
|
486
|
+
}
|
|
487
|
+
/**
|
|
488
|
+
*
|
|
489
|
+
* @export
|
|
490
|
+
* @interface CreatePixelRequestFilters
|
|
491
|
+
*/
|
|
492
|
+
export interface CreatePixelRequestFilters {
|
|
493
|
+
/**
|
|
494
|
+
*
|
|
495
|
+
* @type {Array<string>}
|
|
496
|
+
* @memberof CreatePixelRequestFilters
|
|
497
|
+
*/
|
|
498
|
+
'projects': Array<string> | null;
|
|
499
|
+
/**
|
|
500
|
+
*
|
|
501
|
+
* @type {Array<string>}
|
|
502
|
+
* @memberof CreatePixelRequestFilters
|
|
503
|
+
*/
|
|
504
|
+
'demographics': Array<string> | null;
|
|
505
|
+
/**
|
|
506
|
+
*
|
|
507
|
+
* @type {Array<string>}
|
|
508
|
+
* @memberof CreatePixelRequestFilters
|
|
509
|
+
*/
|
|
510
|
+
'tags': Array<string> | null;
|
|
511
|
+
}
|
|
437
512
|
/**
|
|
438
513
|
* @type CreateReview201Response
|
|
439
514
|
* @export
|
|
@@ -1629,6 +1704,56 @@ export const PaymentAttemptStatusEnum = {
|
|
|
1629
1704
|
|
|
1630
1705
|
export type PaymentAttemptStatusEnum = typeof PaymentAttemptStatusEnum[keyof typeof PaymentAttemptStatusEnum];
|
|
1631
1706
|
|
|
1707
|
+
/**
|
|
1708
|
+
*
|
|
1709
|
+
* @export
|
|
1710
|
+
* @interface Pixel
|
|
1711
|
+
*/
|
|
1712
|
+
export interface Pixel {
|
|
1713
|
+
/**
|
|
1714
|
+
* Unique object identifier
|
|
1715
|
+
* @type {string}
|
|
1716
|
+
* @memberof Pixel
|
|
1717
|
+
*/
|
|
1718
|
+
'id': string;
|
|
1719
|
+
/**
|
|
1720
|
+
*
|
|
1721
|
+
* @type {string}
|
|
1722
|
+
* @memberof Pixel
|
|
1723
|
+
*/
|
|
1724
|
+
'name': string;
|
|
1725
|
+
/**
|
|
1726
|
+
*
|
|
1727
|
+
* @type {Array<string>}
|
|
1728
|
+
* @memberof Pixel
|
|
1729
|
+
*/
|
|
1730
|
+
'sourceProjects': Array<string>;
|
|
1731
|
+
/**
|
|
1732
|
+
*
|
|
1733
|
+
* @type {CreatePixelRequestFilters}
|
|
1734
|
+
* @memberof Pixel
|
|
1735
|
+
*/
|
|
1736
|
+
'filters': CreatePixelRequestFilters;
|
|
1737
|
+
}
|
|
1738
|
+
/**
|
|
1739
|
+
*
|
|
1740
|
+
* @export
|
|
1741
|
+
* @interface PixelsResponse
|
|
1742
|
+
*/
|
|
1743
|
+
export interface PixelsResponse {
|
|
1744
|
+
/**
|
|
1745
|
+
*
|
|
1746
|
+
* @type {Array<Pixel>}
|
|
1747
|
+
* @memberof PixelsResponse
|
|
1748
|
+
*/
|
|
1749
|
+
'pixels': Array<Pixel>;
|
|
1750
|
+
/**
|
|
1751
|
+
*
|
|
1752
|
+
* @type {number}
|
|
1753
|
+
* @memberof PixelsResponse
|
|
1754
|
+
*/
|
|
1755
|
+
'nextPageToken'?: number | null;
|
|
1756
|
+
}
|
|
1632
1757
|
/**
|
|
1633
1758
|
*
|
|
1634
1759
|
* @export
|
|
@@ -1761,10 +1886,74 @@ export interface Project {
|
|
|
1761
1886
|
export interface ReturnOrderRequest {
|
|
1762
1887
|
/**
|
|
1763
1888
|
*
|
|
1764
|
-
* @type {Array<
|
|
1889
|
+
* @type {Array<ReturnOrderRequestReturnsInner>}
|
|
1765
1890
|
* @memberof ReturnOrderRequest
|
|
1766
1891
|
*/
|
|
1767
|
-
'returns': Array<
|
|
1892
|
+
'returns': Array<ReturnOrderRequestReturnsInner>;
|
|
1893
|
+
}
|
|
1894
|
+
/**
|
|
1895
|
+
*
|
|
1896
|
+
* @export
|
|
1897
|
+
* @interface ReturnOrderRequestReturnsInner
|
|
1898
|
+
*/
|
|
1899
|
+
export interface ReturnOrderRequestReturnsInner {
|
|
1900
|
+
/**
|
|
1901
|
+
* Unique order item identifier
|
|
1902
|
+
* @type {string}
|
|
1903
|
+
* @memberof ReturnOrderRequestReturnsInner
|
|
1904
|
+
*/
|
|
1905
|
+
'id': string;
|
|
1906
|
+
/**
|
|
1907
|
+
*
|
|
1908
|
+
* @type {string}
|
|
1909
|
+
* @memberof ReturnOrderRequestReturnsInner
|
|
1910
|
+
*/
|
|
1911
|
+
'action': ReturnOrderRequestReturnsInnerActionEnum;
|
|
1912
|
+
/**
|
|
1913
|
+
* The quantity of the item to refund or exchange. This must be less than or equal to the quantity of the item in the order.
|
|
1914
|
+
* @type {number}
|
|
1915
|
+
* @memberof ReturnOrderRequestReturnsInner
|
|
1916
|
+
*/
|
|
1917
|
+
'quantity': number;
|
|
1918
|
+
/**
|
|
1919
|
+
* A reference to the variant being ordered
|
|
1920
|
+
* @type {string}
|
|
1921
|
+
* @memberof ReturnOrderRequestReturnsInner
|
|
1922
|
+
*/
|
|
1923
|
+
'newVariantRef'?: string;
|
|
1924
|
+
/**
|
|
1925
|
+
*
|
|
1926
|
+
* @type {ReturnOrderRequestReturnsInnerReason}
|
|
1927
|
+
* @memberof ReturnOrderRequestReturnsInner
|
|
1928
|
+
*/
|
|
1929
|
+
'reason': ReturnOrderRequestReturnsInnerReason;
|
|
1930
|
+
}
|
|
1931
|
+
|
|
1932
|
+
export const ReturnOrderRequestReturnsInnerActionEnum = {
|
|
1933
|
+
Refund: 'refund',
|
|
1934
|
+
Exchange: 'exchange'
|
|
1935
|
+
} as const;
|
|
1936
|
+
|
|
1937
|
+
export type ReturnOrderRequestReturnsInnerActionEnum = typeof ReturnOrderRequestReturnsInnerActionEnum[keyof typeof ReturnOrderRequestReturnsInnerActionEnum];
|
|
1938
|
+
|
|
1939
|
+
/**
|
|
1940
|
+
*
|
|
1941
|
+
* @export
|
|
1942
|
+
* @interface ReturnOrderRequestReturnsInnerReason
|
|
1943
|
+
*/
|
|
1944
|
+
export interface ReturnOrderRequestReturnsInnerReason {
|
|
1945
|
+
/**
|
|
1946
|
+
* A reference to the reason for the return or exchange.
|
|
1947
|
+
* @type {string}
|
|
1948
|
+
* @memberof ReturnOrderRequestReturnsInnerReason
|
|
1949
|
+
*/
|
|
1950
|
+
'reasonRef': string;
|
|
1951
|
+
/**
|
|
1952
|
+
* Additional comments as to why the item is being returned or exchanged.
|
|
1953
|
+
* @type {string}
|
|
1954
|
+
* @memberof ReturnOrderRequestReturnsInnerReason
|
|
1955
|
+
*/
|
|
1956
|
+
'additionalComments'?: string | null;
|
|
1768
1957
|
}
|
|
1769
1958
|
/**
|
|
1770
1959
|
*
|
|
@@ -6138,6 +6327,708 @@ export class PaymentApi extends BaseAPI {
|
|
|
6138
6327
|
|
|
6139
6328
|
|
|
6140
6329
|
|
|
6330
|
+
/**
|
|
6331
|
+
* PixelsApi - axios parameter creator
|
|
6332
|
+
* @export
|
|
6333
|
+
*/
|
|
6334
|
+
export const PixelsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
6335
|
+
return {
|
|
6336
|
+
/**
|
|
6337
|
+
*
|
|
6338
|
+
* @summary Create a pixel
|
|
6339
|
+
* @param {string} project Project unique identifier
|
|
6340
|
+
* @param {string} platformId The platform identifier
|
|
6341
|
+
* @param {number} [pageToken] Page reference token
|
|
6342
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
6343
|
+
* @param {string} [search] Search term to filter results
|
|
6344
|
+
* @param {CreatePixelRequest} [createPixelRequest]
|
|
6345
|
+
* @param {*} [options] Override http request option.
|
|
6346
|
+
* @throws {RequiredError}
|
|
6347
|
+
*/
|
|
6348
|
+
createPixel: async (project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, createPixelRequest?: CreatePixelRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6349
|
+
// verify required parameter 'project' is not null or undefined
|
|
6350
|
+
assertParamExists('createPixel', 'project', project)
|
|
6351
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
6352
|
+
assertParamExists('createPixel', 'platformId', platformId)
|
|
6353
|
+
const localVarPath = `/v1/platform/{platformId}/pixels`
|
|
6354
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
|
|
6355
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6356
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6357
|
+
let baseOptions;
|
|
6358
|
+
if (configuration) {
|
|
6359
|
+
baseOptions = configuration.baseOptions;
|
|
6360
|
+
}
|
|
6361
|
+
|
|
6362
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
6363
|
+
const localVarHeaderParameter = {} as any;
|
|
6364
|
+
const localVarQueryParameter = {} as any;
|
|
6365
|
+
|
|
6366
|
+
// authentication session-oauth required
|
|
6367
|
+
// oauth required
|
|
6368
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
6369
|
+
|
|
6370
|
+
// authentication api-key required
|
|
6371
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
6372
|
+
|
|
6373
|
+
if (project !== undefined) {
|
|
6374
|
+
localVarQueryParameter['project'] = project;
|
|
6375
|
+
}
|
|
6376
|
+
|
|
6377
|
+
if (pageToken !== undefined) {
|
|
6378
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
6379
|
+
}
|
|
6380
|
+
|
|
6381
|
+
if (pageSize !== undefined) {
|
|
6382
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
6383
|
+
}
|
|
6384
|
+
|
|
6385
|
+
if (search !== undefined) {
|
|
6386
|
+
localVarQueryParameter['search'] = search;
|
|
6387
|
+
}
|
|
6388
|
+
|
|
6389
|
+
|
|
6390
|
+
|
|
6391
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6392
|
+
|
|
6393
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6394
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6395
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6396
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createPixelRequest, localVarRequestOptions, configuration)
|
|
6397
|
+
|
|
6398
|
+
return {
|
|
6399
|
+
url: toPathString(localVarUrlObj),
|
|
6400
|
+
options: localVarRequestOptions,
|
|
6401
|
+
};
|
|
6402
|
+
},
|
|
6403
|
+
/**
|
|
6404
|
+
* Delete a pixel
|
|
6405
|
+
* @summary Delete a pixel
|
|
6406
|
+
* @param {string} project Project unique identifier
|
|
6407
|
+
* @param {string} platformId The platform identifier
|
|
6408
|
+
* @param {string} pixelId The pixel identifier
|
|
6409
|
+
* @param {*} [options] Override http request option.
|
|
6410
|
+
* @throws {RequiredError}
|
|
6411
|
+
*/
|
|
6412
|
+
deletePixel: async (project: string, platformId: string, pixelId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6413
|
+
// verify required parameter 'project' is not null or undefined
|
|
6414
|
+
assertParamExists('deletePixel', 'project', project)
|
|
6415
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
6416
|
+
assertParamExists('deletePixel', 'platformId', platformId)
|
|
6417
|
+
// verify required parameter 'pixelId' is not null or undefined
|
|
6418
|
+
assertParamExists('deletePixel', 'pixelId', pixelId)
|
|
6419
|
+
const localVarPath = `/v1/platform/{platformId}/pixels/{pixelId}`
|
|
6420
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
6421
|
+
.replace(`{${"pixelId"}}`, encodeURIComponent(String(pixelId)));
|
|
6422
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6423
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6424
|
+
let baseOptions;
|
|
6425
|
+
if (configuration) {
|
|
6426
|
+
baseOptions = configuration.baseOptions;
|
|
6427
|
+
}
|
|
6428
|
+
|
|
6429
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
6430
|
+
const localVarHeaderParameter = {} as any;
|
|
6431
|
+
const localVarQueryParameter = {} as any;
|
|
6432
|
+
|
|
6433
|
+
// authentication session-oauth required
|
|
6434
|
+
// oauth required
|
|
6435
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
6436
|
+
|
|
6437
|
+
// authentication api-key required
|
|
6438
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
6439
|
+
|
|
6440
|
+
if (project !== undefined) {
|
|
6441
|
+
localVarQueryParameter['project'] = project;
|
|
6442
|
+
}
|
|
6443
|
+
|
|
6444
|
+
|
|
6445
|
+
|
|
6446
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6447
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6448
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6449
|
+
|
|
6450
|
+
return {
|
|
6451
|
+
url: toPathString(localVarUrlObj),
|
|
6452
|
+
options: localVarRequestOptions,
|
|
6453
|
+
};
|
|
6454
|
+
},
|
|
6455
|
+
/**
|
|
6456
|
+
* Get a pixel for a platform by a given pixel ID.
|
|
6457
|
+
* @summary Get pixel
|
|
6458
|
+
* @param {string} project Project unique identifier
|
|
6459
|
+
* @param {string} platformId The platform identifier
|
|
6460
|
+
* @param {string} pixelId The pixel identifier
|
|
6461
|
+
* @param {*} [options] Override http request option.
|
|
6462
|
+
* @throws {RequiredError}
|
|
6463
|
+
*/
|
|
6464
|
+
getPixel: async (project: string, platformId: string, pixelId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6465
|
+
// verify required parameter 'project' is not null or undefined
|
|
6466
|
+
assertParamExists('getPixel', 'project', project)
|
|
6467
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
6468
|
+
assertParamExists('getPixel', 'platformId', platformId)
|
|
6469
|
+
// verify required parameter 'pixelId' is not null or undefined
|
|
6470
|
+
assertParamExists('getPixel', 'pixelId', pixelId)
|
|
6471
|
+
const localVarPath = `/v1/platform/{platformId}/pixels/{pixelId}`
|
|
6472
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
6473
|
+
.replace(`{${"pixelId"}}`, encodeURIComponent(String(pixelId)));
|
|
6474
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6475
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6476
|
+
let baseOptions;
|
|
6477
|
+
if (configuration) {
|
|
6478
|
+
baseOptions = configuration.baseOptions;
|
|
6479
|
+
}
|
|
6480
|
+
|
|
6481
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
6482
|
+
const localVarHeaderParameter = {} as any;
|
|
6483
|
+
const localVarQueryParameter = {} as any;
|
|
6484
|
+
|
|
6485
|
+
// authentication session-oauth required
|
|
6486
|
+
// oauth required
|
|
6487
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
6488
|
+
|
|
6489
|
+
// authentication api-key required
|
|
6490
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
6491
|
+
|
|
6492
|
+
if (project !== undefined) {
|
|
6493
|
+
localVarQueryParameter['project'] = project;
|
|
6494
|
+
}
|
|
6495
|
+
|
|
6496
|
+
|
|
6497
|
+
|
|
6498
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6499
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6500
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6501
|
+
|
|
6502
|
+
return {
|
|
6503
|
+
url: toPathString(localVarUrlObj),
|
|
6504
|
+
options: localVarRequestOptions,
|
|
6505
|
+
};
|
|
6506
|
+
},
|
|
6507
|
+
/**
|
|
6508
|
+
* List pixels for a platform
|
|
6509
|
+
* @summary List pixels
|
|
6510
|
+
* @param {string} project Project unique identifier
|
|
6511
|
+
* @param {string} platformId The platform identifier
|
|
6512
|
+
* @param {number} [pageToken] Page reference token
|
|
6513
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
6514
|
+
* @param {string} [search] Search term to filter results
|
|
6515
|
+
* @param {*} [options] Override http request option.
|
|
6516
|
+
* @throws {RequiredError}
|
|
6517
|
+
*/
|
|
6518
|
+
listPixels: async (project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6519
|
+
// verify required parameter 'project' is not null or undefined
|
|
6520
|
+
assertParamExists('listPixels', 'project', project)
|
|
6521
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
6522
|
+
assertParamExists('listPixels', 'platformId', platformId)
|
|
6523
|
+
const localVarPath = `/v1/platform/{platformId}/pixels`
|
|
6524
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
|
|
6525
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6526
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6527
|
+
let baseOptions;
|
|
6528
|
+
if (configuration) {
|
|
6529
|
+
baseOptions = configuration.baseOptions;
|
|
6530
|
+
}
|
|
6531
|
+
|
|
6532
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
6533
|
+
const localVarHeaderParameter = {} as any;
|
|
6534
|
+
const localVarQueryParameter = {} as any;
|
|
6535
|
+
|
|
6536
|
+
// authentication session-oauth required
|
|
6537
|
+
// oauth required
|
|
6538
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
6539
|
+
|
|
6540
|
+
// authentication api-key required
|
|
6541
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
6542
|
+
|
|
6543
|
+
if (project !== undefined) {
|
|
6544
|
+
localVarQueryParameter['project'] = project;
|
|
6545
|
+
}
|
|
6546
|
+
|
|
6547
|
+
if (pageToken !== undefined) {
|
|
6548
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
6549
|
+
}
|
|
6550
|
+
|
|
6551
|
+
if (pageSize !== undefined) {
|
|
6552
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
6553
|
+
}
|
|
6554
|
+
|
|
6555
|
+
if (search !== undefined) {
|
|
6556
|
+
localVarQueryParameter['search'] = search;
|
|
6557
|
+
}
|
|
6558
|
+
|
|
6559
|
+
|
|
6560
|
+
|
|
6561
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6562
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6563
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6564
|
+
|
|
6565
|
+
return {
|
|
6566
|
+
url: toPathString(localVarUrlObj),
|
|
6567
|
+
options: localVarRequestOptions,
|
|
6568
|
+
};
|
|
6569
|
+
},
|
|
6570
|
+
/**
|
|
6571
|
+
* Update a pixel
|
|
6572
|
+
* @summary Update a pixel
|
|
6573
|
+
* @param {string} project Project unique identifier
|
|
6574
|
+
* @param {string} platformId The platform identifier
|
|
6575
|
+
* @param {string} pixelId The pixel identifier
|
|
6576
|
+
* @param {CreatePixelRequest} [createPixelRequest]
|
|
6577
|
+
* @param {*} [options] Override http request option.
|
|
6578
|
+
* @throws {RequiredError}
|
|
6579
|
+
*/
|
|
6580
|
+
updatePixel: async (project: string, platformId: string, pixelId: string, createPixelRequest?: CreatePixelRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6581
|
+
// verify required parameter 'project' is not null or undefined
|
|
6582
|
+
assertParamExists('updatePixel', 'project', project)
|
|
6583
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
6584
|
+
assertParamExists('updatePixel', 'platformId', platformId)
|
|
6585
|
+
// verify required parameter 'pixelId' is not null or undefined
|
|
6586
|
+
assertParamExists('updatePixel', 'pixelId', pixelId)
|
|
6587
|
+
const localVarPath = `/v1/platform/{platformId}/pixels/{pixelId}`
|
|
6588
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
6589
|
+
.replace(`{${"pixelId"}}`, encodeURIComponent(String(pixelId)));
|
|
6590
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6591
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6592
|
+
let baseOptions;
|
|
6593
|
+
if (configuration) {
|
|
6594
|
+
baseOptions = configuration.baseOptions;
|
|
6595
|
+
}
|
|
6596
|
+
|
|
6597
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
6598
|
+
const localVarHeaderParameter = {} as any;
|
|
6599
|
+
const localVarQueryParameter = {} as any;
|
|
6600
|
+
|
|
6601
|
+
// authentication session-oauth required
|
|
6602
|
+
// oauth required
|
|
6603
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
6604
|
+
|
|
6605
|
+
// authentication api-key required
|
|
6606
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
6607
|
+
|
|
6608
|
+
if (project !== undefined) {
|
|
6609
|
+
localVarQueryParameter['project'] = project;
|
|
6610
|
+
}
|
|
6611
|
+
|
|
6612
|
+
|
|
6613
|
+
|
|
6614
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6615
|
+
|
|
6616
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6617
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6618
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6619
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createPixelRequest, localVarRequestOptions, configuration)
|
|
6620
|
+
|
|
6621
|
+
return {
|
|
6622
|
+
url: toPathString(localVarUrlObj),
|
|
6623
|
+
options: localVarRequestOptions,
|
|
6624
|
+
};
|
|
6625
|
+
},
|
|
6626
|
+
}
|
|
6627
|
+
};
|
|
6628
|
+
|
|
6629
|
+
/**
|
|
6630
|
+
* PixelsApi - functional programming interface
|
|
6631
|
+
* @export
|
|
6632
|
+
*/
|
|
6633
|
+
export const PixelsApiFp = function(configuration?: Configuration) {
|
|
6634
|
+
const localVarAxiosParamCreator = PixelsApiAxiosParamCreator(configuration)
|
|
6635
|
+
return {
|
|
6636
|
+
/**
|
|
6637
|
+
*
|
|
6638
|
+
* @summary Create a pixel
|
|
6639
|
+
* @param {string} project Project unique identifier
|
|
6640
|
+
* @param {string} platformId The platform identifier
|
|
6641
|
+
* @param {number} [pageToken] Page reference token
|
|
6642
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
6643
|
+
* @param {string} [search] Search term to filter results
|
|
6644
|
+
* @param {CreatePixelRequest} [createPixelRequest]
|
|
6645
|
+
* @param {*} [options] Override http request option.
|
|
6646
|
+
* @throws {RequiredError}
|
|
6647
|
+
*/
|
|
6648
|
+
async createPixel(project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, createPixelRequest?: CreatePixelRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Pixel>> {
|
|
6649
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createPixel(project, platformId, pageToken, pageSize, search, createPixelRequest, options);
|
|
6650
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6651
|
+
const localVarOperationServerBasePath = operationServerMap['PixelsApi.createPixel']?.[localVarOperationServerIndex]?.url;
|
|
6652
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6653
|
+
},
|
|
6654
|
+
/**
|
|
6655
|
+
* Delete a pixel
|
|
6656
|
+
* @summary Delete a pixel
|
|
6657
|
+
* @param {string} project Project unique identifier
|
|
6658
|
+
* @param {string} platformId The platform identifier
|
|
6659
|
+
* @param {string} pixelId The pixel identifier
|
|
6660
|
+
* @param {*} [options] Override http request option.
|
|
6661
|
+
* @throws {RequiredError}
|
|
6662
|
+
*/
|
|
6663
|
+
async deletePixel(project: string, platformId: string, pixelId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
6664
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deletePixel(project, platformId, pixelId, options);
|
|
6665
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6666
|
+
const localVarOperationServerBasePath = operationServerMap['PixelsApi.deletePixel']?.[localVarOperationServerIndex]?.url;
|
|
6667
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6668
|
+
},
|
|
6669
|
+
/**
|
|
6670
|
+
* Get a pixel for a platform by a given pixel ID.
|
|
6671
|
+
* @summary Get pixel
|
|
6672
|
+
* @param {string} project Project unique identifier
|
|
6673
|
+
* @param {string} platformId The platform identifier
|
|
6674
|
+
* @param {string} pixelId The pixel identifier
|
|
6675
|
+
* @param {*} [options] Override http request option.
|
|
6676
|
+
* @throws {RequiredError}
|
|
6677
|
+
*/
|
|
6678
|
+
async getPixel(project: string, platformId: string, pixelId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Pixel>> {
|
|
6679
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPixel(project, platformId, pixelId, options);
|
|
6680
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6681
|
+
const localVarOperationServerBasePath = operationServerMap['PixelsApi.getPixel']?.[localVarOperationServerIndex]?.url;
|
|
6682
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6683
|
+
},
|
|
6684
|
+
/**
|
|
6685
|
+
* List pixels for a platform
|
|
6686
|
+
* @summary List pixels
|
|
6687
|
+
* @param {string} project Project unique identifier
|
|
6688
|
+
* @param {string} platformId The platform identifier
|
|
6689
|
+
* @param {number} [pageToken] Page reference token
|
|
6690
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
6691
|
+
* @param {string} [search] Search term to filter results
|
|
6692
|
+
* @param {*} [options] Override http request option.
|
|
6693
|
+
* @throws {RequiredError}
|
|
6694
|
+
*/
|
|
6695
|
+
async listPixels(project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PixelsResponse>> {
|
|
6696
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPixels(project, platformId, pageToken, pageSize, search, options);
|
|
6697
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6698
|
+
const localVarOperationServerBasePath = operationServerMap['PixelsApi.listPixels']?.[localVarOperationServerIndex]?.url;
|
|
6699
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6700
|
+
},
|
|
6701
|
+
/**
|
|
6702
|
+
* Update a pixel
|
|
6703
|
+
* @summary Update a pixel
|
|
6704
|
+
* @param {string} project Project unique identifier
|
|
6705
|
+
* @param {string} platformId The platform identifier
|
|
6706
|
+
* @param {string} pixelId The pixel identifier
|
|
6707
|
+
* @param {CreatePixelRequest} [createPixelRequest]
|
|
6708
|
+
* @param {*} [options] Override http request option.
|
|
6709
|
+
* @throws {RequiredError}
|
|
6710
|
+
*/
|
|
6711
|
+
async updatePixel(project: string, platformId: string, pixelId: string, createPixelRequest?: CreatePixelRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Pixel>> {
|
|
6712
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePixel(project, platformId, pixelId, createPixelRequest, options);
|
|
6713
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6714
|
+
const localVarOperationServerBasePath = operationServerMap['PixelsApi.updatePixel']?.[localVarOperationServerIndex]?.url;
|
|
6715
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6716
|
+
},
|
|
6717
|
+
}
|
|
6718
|
+
};
|
|
6719
|
+
|
|
6720
|
+
/**
|
|
6721
|
+
* PixelsApi - factory interface
|
|
6722
|
+
* @export
|
|
6723
|
+
*/
|
|
6724
|
+
export const PixelsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
6725
|
+
const localVarFp = PixelsApiFp(configuration)
|
|
6726
|
+
return {
|
|
6727
|
+
/**
|
|
6728
|
+
*
|
|
6729
|
+
* @summary Create a pixel
|
|
6730
|
+
* @param {PixelsApiCreatePixelRequest} requestParameters Request parameters.
|
|
6731
|
+
* @param {*} [options] Override http request option.
|
|
6732
|
+
* @throws {RequiredError}
|
|
6733
|
+
*/
|
|
6734
|
+
createPixel(requestParameters: PixelsApiCreatePixelRequest, options?: RawAxiosRequestConfig): AxiosPromise<Pixel> {
|
|
6735
|
+
return localVarFp.createPixel(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.createPixelRequest, options).then((request) => request(axios, basePath));
|
|
6736
|
+
},
|
|
6737
|
+
/**
|
|
6738
|
+
* Delete a pixel
|
|
6739
|
+
* @summary Delete a pixel
|
|
6740
|
+
* @param {PixelsApiDeletePixelRequest} requestParameters Request parameters.
|
|
6741
|
+
* @param {*} [options] Override http request option.
|
|
6742
|
+
* @throws {RequiredError}
|
|
6743
|
+
*/
|
|
6744
|
+
deletePixel(requestParameters: PixelsApiDeletePixelRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
6745
|
+
return localVarFp.deletePixel(requestParameters.project, requestParameters.platformId, requestParameters.pixelId, options).then((request) => request(axios, basePath));
|
|
6746
|
+
},
|
|
6747
|
+
/**
|
|
6748
|
+
* Get a pixel for a platform by a given pixel ID.
|
|
6749
|
+
* @summary Get pixel
|
|
6750
|
+
* @param {PixelsApiGetPixelRequest} requestParameters Request parameters.
|
|
6751
|
+
* @param {*} [options] Override http request option.
|
|
6752
|
+
* @throws {RequiredError}
|
|
6753
|
+
*/
|
|
6754
|
+
getPixel(requestParameters: PixelsApiGetPixelRequest, options?: RawAxiosRequestConfig): AxiosPromise<Pixel> {
|
|
6755
|
+
return localVarFp.getPixel(requestParameters.project, requestParameters.platformId, requestParameters.pixelId, options).then((request) => request(axios, basePath));
|
|
6756
|
+
},
|
|
6757
|
+
/**
|
|
6758
|
+
* List pixels for a platform
|
|
6759
|
+
* @summary List pixels
|
|
6760
|
+
* @param {PixelsApiListPixelsRequest} requestParameters Request parameters.
|
|
6761
|
+
* @param {*} [options] Override http request option.
|
|
6762
|
+
* @throws {RequiredError}
|
|
6763
|
+
*/
|
|
6764
|
+
listPixels(requestParameters: PixelsApiListPixelsRequest, options?: RawAxiosRequestConfig): AxiosPromise<PixelsResponse> {
|
|
6765
|
+
return localVarFp.listPixels(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
6766
|
+
},
|
|
6767
|
+
/**
|
|
6768
|
+
* Update a pixel
|
|
6769
|
+
* @summary Update a pixel
|
|
6770
|
+
* @param {PixelsApiUpdatePixelRequest} requestParameters Request parameters.
|
|
6771
|
+
* @param {*} [options] Override http request option.
|
|
6772
|
+
* @throws {RequiredError}
|
|
6773
|
+
*/
|
|
6774
|
+
updatePixel(requestParameters: PixelsApiUpdatePixelRequest, options?: RawAxiosRequestConfig): AxiosPromise<Pixel> {
|
|
6775
|
+
return localVarFp.updatePixel(requestParameters.project, requestParameters.platformId, requestParameters.pixelId, requestParameters.createPixelRequest, options).then((request) => request(axios, basePath));
|
|
6776
|
+
},
|
|
6777
|
+
};
|
|
6778
|
+
};
|
|
6779
|
+
|
|
6780
|
+
/**
|
|
6781
|
+
* Request parameters for createPixel operation in PixelsApi.
|
|
6782
|
+
* @export
|
|
6783
|
+
* @interface PixelsApiCreatePixelRequest
|
|
6784
|
+
*/
|
|
6785
|
+
export interface PixelsApiCreatePixelRequest {
|
|
6786
|
+
/**
|
|
6787
|
+
* Project unique identifier
|
|
6788
|
+
* @type {string}
|
|
6789
|
+
* @memberof PixelsApiCreatePixel
|
|
6790
|
+
*/
|
|
6791
|
+
readonly project: string
|
|
6792
|
+
|
|
6793
|
+
/**
|
|
6794
|
+
* The platform identifier
|
|
6795
|
+
* @type {string}
|
|
6796
|
+
* @memberof PixelsApiCreatePixel
|
|
6797
|
+
*/
|
|
6798
|
+
readonly platformId: string
|
|
6799
|
+
|
|
6800
|
+
/**
|
|
6801
|
+
* Page reference token
|
|
6802
|
+
* @type {number}
|
|
6803
|
+
* @memberof PixelsApiCreatePixel
|
|
6804
|
+
*/
|
|
6805
|
+
readonly pageToken?: number
|
|
6806
|
+
|
|
6807
|
+
/**
|
|
6808
|
+
* Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
6809
|
+
* @type {number}
|
|
6810
|
+
* @memberof PixelsApiCreatePixel
|
|
6811
|
+
*/
|
|
6812
|
+
readonly pageSize?: number
|
|
6813
|
+
|
|
6814
|
+
/**
|
|
6815
|
+
* Search term to filter results
|
|
6816
|
+
* @type {string}
|
|
6817
|
+
* @memberof PixelsApiCreatePixel
|
|
6818
|
+
*/
|
|
6819
|
+
readonly search?: string
|
|
6820
|
+
|
|
6821
|
+
/**
|
|
6822
|
+
*
|
|
6823
|
+
* @type {CreatePixelRequest}
|
|
6824
|
+
* @memberof PixelsApiCreatePixel
|
|
6825
|
+
*/
|
|
6826
|
+
readonly createPixelRequest?: CreatePixelRequest
|
|
6827
|
+
}
|
|
6828
|
+
|
|
6829
|
+
/**
|
|
6830
|
+
* Request parameters for deletePixel operation in PixelsApi.
|
|
6831
|
+
* @export
|
|
6832
|
+
* @interface PixelsApiDeletePixelRequest
|
|
6833
|
+
*/
|
|
6834
|
+
export interface PixelsApiDeletePixelRequest {
|
|
6835
|
+
/**
|
|
6836
|
+
* Project unique identifier
|
|
6837
|
+
* @type {string}
|
|
6838
|
+
* @memberof PixelsApiDeletePixel
|
|
6839
|
+
*/
|
|
6840
|
+
readonly project: string
|
|
6841
|
+
|
|
6842
|
+
/**
|
|
6843
|
+
* The platform identifier
|
|
6844
|
+
* @type {string}
|
|
6845
|
+
* @memberof PixelsApiDeletePixel
|
|
6846
|
+
*/
|
|
6847
|
+
readonly platformId: string
|
|
6848
|
+
|
|
6849
|
+
/**
|
|
6850
|
+
* The pixel identifier
|
|
6851
|
+
* @type {string}
|
|
6852
|
+
* @memberof PixelsApiDeletePixel
|
|
6853
|
+
*/
|
|
6854
|
+
readonly pixelId: string
|
|
6855
|
+
}
|
|
6856
|
+
|
|
6857
|
+
/**
|
|
6858
|
+
* Request parameters for getPixel operation in PixelsApi.
|
|
6859
|
+
* @export
|
|
6860
|
+
* @interface PixelsApiGetPixelRequest
|
|
6861
|
+
*/
|
|
6862
|
+
export interface PixelsApiGetPixelRequest {
|
|
6863
|
+
/**
|
|
6864
|
+
* Project unique identifier
|
|
6865
|
+
* @type {string}
|
|
6866
|
+
* @memberof PixelsApiGetPixel
|
|
6867
|
+
*/
|
|
6868
|
+
readonly project: string
|
|
6869
|
+
|
|
6870
|
+
/**
|
|
6871
|
+
* The platform identifier
|
|
6872
|
+
* @type {string}
|
|
6873
|
+
* @memberof PixelsApiGetPixel
|
|
6874
|
+
*/
|
|
6875
|
+
readonly platformId: string
|
|
6876
|
+
|
|
6877
|
+
/**
|
|
6878
|
+
* The pixel identifier
|
|
6879
|
+
* @type {string}
|
|
6880
|
+
* @memberof PixelsApiGetPixel
|
|
6881
|
+
*/
|
|
6882
|
+
readonly pixelId: string
|
|
6883
|
+
}
|
|
6884
|
+
|
|
6885
|
+
/**
|
|
6886
|
+
* Request parameters for listPixels operation in PixelsApi.
|
|
6887
|
+
* @export
|
|
6888
|
+
* @interface PixelsApiListPixelsRequest
|
|
6889
|
+
*/
|
|
6890
|
+
export interface PixelsApiListPixelsRequest {
|
|
6891
|
+
/**
|
|
6892
|
+
* Project unique identifier
|
|
6893
|
+
* @type {string}
|
|
6894
|
+
* @memberof PixelsApiListPixels
|
|
6895
|
+
*/
|
|
6896
|
+
readonly project: string
|
|
6897
|
+
|
|
6898
|
+
/**
|
|
6899
|
+
* The platform identifier
|
|
6900
|
+
* @type {string}
|
|
6901
|
+
* @memberof PixelsApiListPixels
|
|
6902
|
+
*/
|
|
6903
|
+
readonly platformId: string
|
|
6904
|
+
|
|
6905
|
+
/**
|
|
6906
|
+
* Page reference token
|
|
6907
|
+
* @type {number}
|
|
6908
|
+
* @memberof PixelsApiListPixels
|
|
6909
|
+
*/
|
|
6910
|
+
readonly pageToken?: number
|
|
6911
|
+
|
|
6912
|
+
/**
|
|
6913
|
+
* Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
6914
|
+
* @type {number}
|
|
6915
|
+
* @memberof PixelsApiListPixels
|
|
6916
|
+
*/
|
|
6917
|
+
readonly pageSize?: number
|
|
6918
|
+
|
|
6919
|
+
/**
|
|
6920
|
+
* Search term to filter results
|
|
6921
|
+
* @type {string}
|
|
6922
|
+
* @memberof PixelsApiListPixels
|
|
6923
|
+
*/
|
|
6924
|
+
readonly search?: string
|
|
6925
|
+
}
|
|
6926
|
+
|
|
6927
|
+
/**
|
|
6928
|
+
* Request parameters for updatePixel operation in PixelsApi.
|
|
6929
|
+
* @export
|
|
6930
|
+
* @interface PixelsApiUpdatePixelRequest
|
|
6931
|
+
*/
|
|
6932
|
+
export interface PixelsApiUpdatePixelRequest {
|
|
6933
|
+
/**
|
|
6934
|
+
* Project unique identifier
|
|
6935
|
+
* @type {string}
|
|
6936
|
+
* @memberof PixelsApiUpdatePixel
|
|
6937
|
+
*/
|
|
6938
|
+
readonly project: string
|
|
6939
|
+
|
|
6940
|
+
/**
|
|
6941
|
+
* The platform identifier
|
|
6942
|
+
* @type {string}
|
|
6943
|
+
* @memberof PixelsApiUpdatePixel
|
|
6944
|
+
*/
|
|
6945
|
+
readonly platformId: string
|
|
6946
|
+
|
|
6947
|
+
/**
|
|
6948
|
+
* The pixel identifier
|
|
6949
|
+
* @type {string}
|
|
6950
|
+
* @memberof PixelsApiUpdatePixel
|
|
6951
|
+
*/
|
|
6952
|
+
readonly pixelId: string
|
|
6953
|
+
|
|
6954
|
+
/**
|
|
6955
|
+
*
|
|
6956
|
+
* @type {CreatePixelRequest}
|
|
6957
|
+
* @memberof PixelsApiUpdatePixel
|
|
6958
|
+
*/
|
|
6959
|
+
readonly createPixelRequest?: CreatePixelRequest
|
|
6960
|
+
}
|
|
6961
|
+
|
|
6962
|
+
/**
|
|
6963
|
+
* PixelsApi - object-oriented interface
|
|
6964
|
+
* @export
|
|
6965
|
+
* @class PixelsApi
|
|
6966
|
+
* @extends {BaseAPI}
|
|
6967
|
+
*/
|
|
6968
|
+
export class PixelsApi extends BaseAPI {
|
|
6969
|
+
/**
|
|
6970
|
+
*
|
|
6971
|
+
* @summary Create a pixel
|
|
6972
|
+
* @param {PixelsApiCreatePixelRequest} requestParameters Request parameters.
|
|
6973
|
+
* @param {*} [options] Override http request option.
|
|
6974
|
+
* @throws {RequiredError}
|
|
6975
|
+
* @memberof PixelsApi
|
|
6976
|
+
*/
|
|
6977
|
+
public createPixel(requestParameters: PixelsApiCreatePixelRequest, options?: RawAxiosRequestConfig) {
|
|
6978
|
+
return PixelsApiFp(this.configuration).createPixel(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.createPixelRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6979
|
+
}
|
|
6980
|
+
|
|
6981
|
+
/**
|
|
6982
|
+
* Delete a pixel
|
|
6983
|
+
* @summary Delete a pixel
|
|
6984
|
+
* @param {PixelsApiDeletePixelRequest} requestParameters Request parameters.
|
|
6985
|
+
* @param {*} [options] Override http request option.
|
|
6986
|
+
* @throws {RequiredError}
|
|
6987
|
+
* @memberof PixelsApi
|
|
6988
|
+
*/
|
|
6989
|
+
public deletePixel(requestParameters: PixelsApiDeletePixelRequest, options?: RawAxiosRequestConfig) {
|
|
6990
|
+
return PixelsApiFp(this.configuration).deletePixel(requestParameters.project, requestParameters.platformId, requestParameters.pixelId, options).then((request) => request(this.axios, this.basePath));
|
|
6991
|
+
}
|
|
6992
|
+
|
|
6993
|
+
/**
|
|
6994
|
+
* Get a pixel for a platform by a given pixel ID.
|
|
6995
|
+
* @summary Get pixel
|
|
6996
|
+
* @param {PixelsApiGetPixelRequest} requestParameters Request parameters.
|
|
6997
|
+
* @param {*} [options] Override http request option.
|
|
6998
|
+
* @throws {RequiredError}
|
|
6999
|
+
* @memberof PixelsApi
|
|
7000
|
+
*/
|
|
7001
|
+
public getPixel(requestParameters: PixelsApiGetPixelRequest, options?: RawAxiosRequestConfig) {
|
|
7002
|
+
return PixelsApiFp(this.configuration).getPixel(requestParameters.project, requestParameters.platformId, requestParameters.pixelId, options).then((request) => request(this.axios, this.basePath));
|
|
7003
|
+
}
|
|
7004
|
+
|
|
7005
|
+
/**
|
|
7006
|
+
* List pixels for a platform
|
|
7007
|
+
* @summary List pixels
|
|
7008
|
+
* @param {PixelsApiListPixelsRequest} requestParameters Request parameters.
|
|
7009
|
+
* @param {*} [options] Override http request option.
|
|
7010
|
+
* @throws {RequiredError}
|
|
7011
|
+
* @memberof PixelsApi
|
|
7012
|
+
*/
|
|
7013
|
+
public listPixels(requestParameters: PixelsApiListPixelsRequest, options?: RawAxiosRequestConfig) {
|
|
7014
|
+
return PixelsApiFp(this.configuration).listPixels(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
7015
|
+
}
|
|
7016
|
+
|
|
7017
|
+
/**
|
|
7018
|
+
* Update a pixel
|
|
7019
|
+
* @summary Update a pixel
|
|
7020
|
+
* @param {PixelsApiUpdatePixelRequest} requestParameters Request parameters.
|
|
7021
|
+
* @param {*} [options] Override http request option.
|
|
7022
|
+
* @throws {RequiredError}
|
|
7023
|
+
* @memberof PixelsApi
|
|
7024
|
+
*/
|
|
7025
|
+
public updatePixel(requestParameters: PixelsApiUpdatePixelRequest, options?: RawAxiosRequestConfig) {
|
|
7026
|
+
return PixelsApiFp(this.configuration).updatePixel(requestParameters.project, requestParameters.platformId, requestParameters.pixelId, requestParameters.createPixelRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7027
|
+
}
|
|
7028
|
+
}
|
|
7029
|
+
|
|
7030
|
+
|
|
7031
|
+
|
|
6141
7032
|
/**
|
|
6142
7033
|
* PlatformApi - axios parameter creator
|
|
6143
7034
|
* @export
|