@teemill/platform 0.31.0 → 0.33.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
@@ -4,7 +4,7 @@
4
4
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.31.0
7
+ * The version of the OpenAPI document: 0.33.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -434,6 +434,56 @@ export interface CreateOrderContactInformation {
434
434
  */
435
435
  'phone'?: string | null;
436
436
  }
437
+ /**
438
+ *
439
+ * @export
440
+ * @interface CreatePixelRequest
441
+ */
442
+ export interface CreatePixelRequest {
443
+ /**
444
+ *
445
+ * @type {string}
446
+ * @memberof CreatePixelRequest
447
+ */
448
+ 'name': string;
449
+ /**
450
+ *
451
+ * @type {Array<string>}
452
+ * @memberof CreatePixelRequest
453
+ */
454
+ 'sourceProjects': Array<string>;
455
+ /**
456
+ *
457
+ * @type {CreatePixelRequestFilters}
458
+ * @memberof CreatePixelRequest
459
+ */
460
+ 'filters': CreatePixelRequestFilters;
461
+ }
462
+ /**
463
+ *
464
+ * @export
465
+ * @interface CreatePixelRequestFilters
466
+ */
467
+ export interface CreatePixelRequestFilters {
468
+ /**
469
+ *
470
+ * @type {Array<string>}
471
+ * @memberof CreatePixelRequestFilters
472
+ */
473
+ 'projects': Array<string> | null;
474
+ /**
475
+ *
476
+ * @type {Array<string>}
477
+ * @memberof CreatePixelRequestFilters
478
+ */
479
+ 'demographics': Array<string> | null;
480
+ /**
481
+ *
482
+ * @type {Array<string>}
483
+ * @memberof CreatePixelRequestFilters
484
+ */
485
+ 'tags': Array<string> | null;
486
+ }
437
487
  /**
438
488
  * @type CreateReview201Response
439
489
  * @export
@@ -626,6 +676,49 @@ export const CustomsInformationPreRegistrationTypeEnum = {
626
676
 
627
677
  export type CustomsInformationPreRegistrationTypeEnum = typeof CustomsInformationPreRegistrationTypeEnum[keyof typeof CustomsInformationPreRegistrationTypeEnum];
628
678
 
679
+ /**
680
+ *
681
+ * @export
682
+ * @interface DashboardItem
683
+ */
684
+ export interface DashboardItem {
685
+ /**
686
+ *
687
+ * @type {string}
688
+ * @memberof DashboardItem
689
+ */
690
+ 'id': string;
691
+ /**
692
+ *
693
+ * @type {string}
694
+ * @memberof DashboardItem
695
+ */
696
+ 'type': string;
697
+ /**
698
+ *
699
+ * @type {{ [key: string]: any; }}
700
+ * @memberof DashboardItem
701
+ */
702
+ 'properties': { [key: string]: any; } | null;
703
+ /**
704
+ *
705
+ * @type {boolean}
706
+ * @memberof DashboardItem
707
+ */
708
+ 'published': boolean;
709
+ /**
710
+ *
711
+ * @type {number}
712
+ * @memberof DashboardItem
713
+ */
714
+ 'sortOrder': number;
715
+ /**
716
+ *
717
+ * @type {Array<DashboardItem>}
718
+ * @memberof DashboardItem
719
+ */
720
+ 'items'?: Array<DashboardItem> | null;
721
+ }
629
722
  /**
630
723
  *
631
724
  * @export
@@ -959,6 +1052,19 @@ export interface FulfillmentItem {
959
1052
  */
960
1053
  'quantity'?: number;
961
1054
  }
1055
+ /**
1056
+ *
1057
+ * @export
1058
+ * @interface GetDashboardResponse
1059
+ */
1060
+ export interface GetDashboardResponse {
1061
+ /**
1062
+ *
1063
+ * @type {Array<DashboardItem>}
1064
+ * @memberof GetDashboardResponse
1065
+ */
1066
+ 'items'?: Array<DashboardItem>;
1067
+ }
962
1068
  /**
963
1069
  * Image description
964
1070
  * @export
@@ -1573,6 +1679,56 @@ export const PaymentAttemptStatusEnum = {
1573
1679
 
1574
1680
  export type PaymentAttemptStatusEnum = typeof PaymentAttemptStatusEnum[keyof typeof PaymentAttemptStatusEnum];
1575
1681
 
1682
+ /**
1683
+ *
1684
+ * @export
1685
+ * @interface Pixel
1686
+ */
1687
+ export interface Pixel {
1688
+ /**
1689
+ * Unique object identifier
1690
+ * @type {string}
1691
+ * @memberof Pixel
1692
+ */
1693
+ 'id': string;
1694
+ /**
1695
+ *
1696
+ * @type {string}
1697
+ * @memberof Pixel
1698
+ */
1699
+ 'name': string;
1700
+ /**
1701
+ *
1702
+ * @type {Array<string>}
1703
+ * @memberof Pixel
1704
+ */
1705
+ 'sourceProjects': Array<string>;
1706
+ /**
1707
+ *
1708
+ * @type {CreatePixelRequestFilters}
1709
+ * @memberof Pixel
1710
+ */
1711
+ 'filters': CreatePixelRequestFilters;
1712
+ }
1713
+ /**
1714
+ *
1715
+ * @export
1716
+ * @interface PixelsResponse
1717
+ */
1718
+ export interface PixelsResponse {
1719
+ /**
1720
+ *
1721
+ * @type {Array<Pixel>}
1722
+ * @memberof PixelsResponse
1723
+ */
1724
+ 'pixels': Array<Pixel>;
1725
+ /**
1726
+ *
1727
+ * @type {number}
1728
+ * @memberof PixelsResponse
1729
+ */
1730
+ 'nextPageToken'?: number | null;
1731
+ }
1576
1732
  /**
1577
1733
  *
1578
1734
  * @export
@@ -1903,6 +2059,19 @@ export interface ReviewsResponse {
1903
2059
  */
1904
2060
  'nextPageToken'?: number | null;
1905
2061
  }
2062
+ /**
2063
+ *
2064
+ * @export
2065
+ * @interface SaveDashboardRequest
2066
+ */
2067
+ export interface SaveDashboardRequest {
2068
+ /**
2069
+ *
2070
+ * @type {Array<DashboardItem>}
2071
+ * @memberof SaveDashboardRequest
2072
+ */
2073
+ 'items'?: Array<DashboardItem>;
2074
+ }
1906
2075
  /**
1907
2076
  *
1908
2077
  * @export
@@ -3038,30 +3207,26 @@ export type ListCustomersGenderEnum = typeof ListCustomersGenderEnum[keyof typeo
3038
3207
 
3039
3208
 
3040
3209
  /**
3041
- * EnquiriesApi - axios parameter creator
3210
+ * DashboardApi - axios parameter creator
3042
3211
  * @export
3043
3212
  */
3044
- export const EnquiriesApiAxiosParamCreator = function (configuration?: Configuration) {
3213
+ export const DashboardApiAxiosParamCreator = function (configuration?: Configuration) {
3045
3214
  return {
3046
3215
  /**
3047
- * Create a chat channel for a customer enquiry if it doesn\'t exist
3048
- * @summary Create chat channel
3216
+ *
3217
+ * @summary Get the platform\'s dashboard
3049
3218
  * @param {string} project Project unique identifier
3050
3219
  * @param {string} platformId The platform identifier
3051
- * @param {string} enquiryId The enquiry identifier
3052
3220
  * @param {*} [options] Override http request option.
3053
3221
  * @throws {RequiredError}
3054
3222
  */
3055
- createChatChannel: async (project: string, platformId: string, enquiryId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3223
+ getDashboard: async (project: string, platformId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3056
3224
  // verify required parameter 'project' is not null or undefined
3057
- assertParamExists('createChatChannel', 'project', project)
3225
+ assertParamExists('getDashboard', 'project', project)
3058
3226
  // verify required parameter 'platformId' is not null or undefined
3059
- assertParamExists('createChatChannel', 'platformId', platformId)
3060
- // verify required parameter 'enquiryId' is not null or undefined
3061
- assertParamExists('createChatChannel', 'enquiryId', enquiryId)
3062
- const localVarPath = `/v1/platform/{platformId}/customers/enquiries/{enquiryId}/chat-channel`
3063
- .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
3064
- .replace(`{${"enquiryId"}}`, encodeURIComponent(String(enquiryId)));
3227
+ assertParamExists('getDashboard', 'platformId', platformId)
3228
+ const localVarPath = `/v1/platform/{platformId}/dashboard`
3229
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
3065
3230
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3066
3231
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3067
3232
  let baseOptions;
@@ -3069,7 +3234,7 @@ export const EnquiriesApiAxiosParamCreator = function (configuration?: Configura
3069
3234
  baseOptions = configuration.baseOptions;
3070
3235
  }
3071
3236
 
3072
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3237
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3073
3238
  const localVarHeaderParameter = {} as any;
3074
3239
  const localVarQueryParameter = {} as any;
3075
3240
 
@@ -3096,24 +3261,23 @@ export const EnquiriesApiAxiosParamCreator = function (configuration?: Configura
3096
3261
  };
3097
3262
  },
3098
3263
  /**
3099
- * Get a customer enquiry
3100
- * @summary Get customer enquiry
3264
+ *
3265
+ * @summary Save the platform\'s dashboard
3101
3266
  * @param {string} project Project unique identifier
3102
3267
  * @param {string} platformId The platform identifier
3103
- * @param {string} enquiryId The enquiry identifier
3268
+ * @param {SaveDashboardRequest} saveDashboardRequest Save dashboard
3104
3269
  * @param {*} [options] Override http request option.
3105
3270
  * @throws {RequiredError}
3106
3271
  */
3107
- getCustomerEnquiry: async (project: string, platformId: string, enquiryId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3272
+ saveDashboard: async (project: string, platformId: string, saveDashboardRequest: SaveDashboardRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3108
3273
  // verify required parameter 'project' is not null or undefined
3109
- assertParamExists('getCustomerEnquiry', 'project', project)
3274
+ assertParamExists('saveDashboard', 'project', project)
3110
3275
  // verify required parameter 'platformId' is not null or undefined
3111
- assertParamExists('getCustomerEnquiry', 'platformId', platformId)
3112
- // verify required parameter 'enquiryId' is not null or undefined
3113
- assertParamExists('getCustomerEnquiry', 'enquiryId', enquiryId)
3114
- const localVarPath = `/v1/platform/{platformId}/customers/enquiries/{enquiryId}`
3115
- .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
3116
- .replace(`{${"enquiryId"}}`, encodeURIComponent(String(enquiryId)));
3276
+ assertParamExists('saveDashboard', 'platformId', platformId)
3277
+ // verify required parameter 'saveDashboardRequest' is not null or undefined
3278
+ assertParamExists('saveDashboard', 'saveDashboardRequest', saveDashboardRequest)
3279
+ const localVarPath = `/v1/platform/{platformId}/dashboard`
3280
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
3117
3281
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3118
3282
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3119
3283
  let baseOptions;
@@ -3121,7 +3285,7 @@ export const EnquiriesApiAxiosParamCreator = function (configuration?: Configura
3121
3285
  baseOptions = configuration.baseOptions;
3122
3286
  }
3123
3287
 
3124
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3288
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
3125
3289
  const localVarHeaderParameter = {} as any;
3126
3290
  const localVarQueryParameter = {} as any;
3127
3291
 
@@ -3138,121 +3302,208 @@ export const EnquiriesApiAxiosParamCreator = function (configuration?: Configura
3138
3302
 
3139
3303
 
3140
3304
 
3305
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3306
+
3141
3307
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3142
3308
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3143
3309
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3310
+ localVarRequestOptions.data = serializeDataIfNeeded(saveDashboardRequest, localVarRequestOptions, configuration)
3144
3311
 
3145
3312
  return {
3146
3313
  url: toPathString(localVarUrlObj),
3147
3314
  options: localVarRequestOptions,
3148
3315
  };
3149
3316
  },
3317
+ }
3318
+ };
3319
+
3320
+ /**
3321
+ * DashboardApi - functional programming interface
3322
+ * @export
3323
+ */
3324
+ export const DashboardApiFp = function(configuration?: Configuration) {
3325
+ const localVarAxiosParamCreator = DashboardApiAxiosParamCreator(configuration)
3326
+ return {
3150
3327
  /**
3151
- * List customer enquiries
3152
- * @summary List customer enquiries
3328
+ *
3329
+ * @summary Get the platform\'s dashboard
3153
3330
  * @param {string} project Project unique identifier
3154
3331
  * @param {string} platformId The platform identifier
3155
- * @param {number} [pageToken] Page reference token
3156
- * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
3157
- * @param {string} [search] Search term to filter based on enquiry title, content, customer name and customer email.
3158
- * @param {string} [start] Start of date range to filter by
3159
- * @param {string} [end] End of date range to filter by
3160
3332
  * @param {*} [options] Override http request option.
3161
3333
  * @throws {RequiredError}
3162
3334
  */
3163
- listCustomerEnquiries: async (project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, start?: string, end?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3164
- // verify required parameter 'project' is not null or undefined
3165
- assertParamExists('listCustomerEnquiries', 'project', project)
3166
- // verify required parameter 'platformId' is not null or undefined
3167
- assertParamExists('listCustomerEnquiries', 'platformId', platformId)
3168
- const localVarPath = `/v1/platform/{platformId}/customers/enquiries`
3169
- .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
3170
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3171
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3172
- let baseOptions;
3173
- if (configuration) {
3174
- baseOptions = configuration.baseOptions;
3175
- }
3176
-
3177
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3178
- const localVarHeaderParameter = {} as any;
3179
- const localVarQueryParameter = {} as any;
3180
-
3181
- // authentication session-oauth required
3182
- // oauth required
3183
- await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
3184
-
3185
- // authentication api-key required
3186
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3187
-
3188
- if (project !== undefined) {
3189
- localVarQueryParameter['project'] = project;
3190
- }
3191
-
3192
- if (pageToken !== undefined) {
3193
- localVarQueryParameter['pageToken'] = pageToken;
3194
- }
3195
-
3196
- if (pageSize !== undefined) {
3197
- localVarQueryParameter['pageSize'] = pageSize;
3198
- }
3199
-
3200
- if (search !== undefined) {
3201
- localVarQueryParameter['search'] = search;
3202
- }
3203
-
3204
- if (start !== undefined) {
3205
- localVarQueryParameter['start'] = (start as any instanceof Date) ?
3206
- (start as any).toISOString() :
3207
- start;
3208
- }
3209
-
3210
- if (end !== undefined) {
3211
- localVarQueryParameter['end'] = (end as any instanceof Date) ?
3212
- (end as any).toISOString() :
3213
- end;
3214
- }
3215
-
3216
-
3217
-
3218
- setSearchParams(localVarUrlObj, localVarQueryParameter);
3219
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3220
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3221
-
3222
- return {
3223
- url: toPathString(localVarUrlObj),
3224
- options: localVarRequestOptions,
3225
- };
3335
+ async getDashboard(project: string, platformId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetDashboardResponse>> {
3336
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getDashboard(project, platformId, options);
3337
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3338
+ const localVarOperationServerBasePath = operationServerMap['DashboardApi.getDashboard']?.[localVarOperationServerIndex]?.url;
3339
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3226
3340
  },
3227
3341
  /**
3228
- * Lists all customer enquiry Logs
3229
- * @summary List customer enquiry Logs
3342
+ *
3343
+ * @summary Save the platform\'s dashboard
3230
3344
  * @param {string} project Project unique identifier
3231
3345
  * @param {string} platformId The platform identifier
3232
- * @param {string} enquiryId The enquiry identifier
3346
+ * @param {SaveDashboardRequest} saveDashboardRequest Save dashboard
3233
3347
  * @param {*} [options] Override http request option.
3234
3348
  * @throws {RequiredError}
3235
3349
  */
3236
- listCustomerEnquiryLogs: async (project: string, platformId: string, enquiryId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3237
- // verify required parameter 'project' is not null or undefined
3238
- assertParamExists('listCustomerEnquiryLogs', 'project', project)
3239
- // verify required parameter 'platformId' is not null or undefined
3240
- assertParamExists('listCustomerEnquiryLogs', 'platformId', platformId)
3241
- // verify required parameter 'enquiryId' is not null or undefined
3242
- assertParamExists('listCustomerEnquiryLogs', 'enquiryId', enquiryId)
3243
- const localVarPath = `/v1/platform/{platformId}/customers/enquiries/{enquiryId}/logs`
3244
- .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
3245
- .replace(`{${"enquiryId"}}`, encodeURIComponent(String(enquiryId)));
3246
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3247
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3248
- let baseOptions;
3249
- if (configuration) {
3250
- baseOptions = configuration.baseOptions;
3251
- }
3252
-
3253
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3254
- const localVarHeaderParameter = {} as any;
3255
- const localVarQueryParameter = {} as any;
3350
+ async saveDashboard(project: string, platformId: string, saveDashboardRequest: SaveDashboardRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetDashboardResponse>> {
3351
+ const localVarAxiosArgs = await localVarAxiosParamCreator.saveDashboard(project, platformId, saveDashboardRequest, options);
3352
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3353
+ const localVarOperationServerBasePath = operationServerMap['DashboardApi.saveDashboard']?.[localVarOperationServerIndex]?.url;
3354
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3355
+ },
3356
+ }
3357
+ };
3358
+
3359
+ /**
3360
+ * DashboardApi - factory interface
3361
+ * @export
3362
+ */
3363
+ export const DashboardApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
3364
+ const localVarFp = DashboardApiFp(configuration)
3365
+ return {
3366
+ /**
3367
+ *
3368
+ * @summary Get the platform\'s dashboard
3369
+ * @param {DashboardApiGetDashboardRequest} requestParameters Request parameters.
3370
+ * @param {*} [options] Override http request option.
3371
+ * @throws {RequiredError}
3372
+ */
3373
+ getDashboard(requestParameters: DashboardApiGetDashboardRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetDashboardResponse> {
3374
+ return localVarFp.getDashboard(requestParameters.project, requestParameters.platformId, options).then((request) => request(axios, basePath));
3375
+ },
3376
+ /**
3377
+ *
3378
+ * @summary Save the platform\'s dashboard
3379
+ * @param {DashboardApiSaveDashboardRequest} requestParameters Request parameters.
3380
+ * @param {*} [options] Override http request option.
3381
+ * @throws {RequiredError}
3382
+ */
3383
+ saveDashboard(requestParameters: DashboardApiSaveDashboardRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetDashboardResponse> {
3384
+ return localVarFp.saveDashboard(requestParameters.project, requestParameters.platformId, requestParameters.saveDashboardRequest, options).then((request) => request(axios, basePath));
3385
+ },
3386
+ };
3387
+ };
3388
+
3389
+ /**
3390
+ * Request parameters for getDashboard operation in DashboardApi.
3391
+ * @export
3392
+ * @interface DashboardApiGetDashboardRequest
3393
+ */
3394
+ export interface DashboardApiGetDashboardRequest {
3395
+ /**
3396
+ * Project unique identifier
3397
+ * @type {string}
3398
+ * @memberof DashboardApiGetDashboard
3399
+ */
3400
+ readonly project: string
3401
+
3402
+ /**
3403
+ * The platform identifier
3404
+ * @type {string}
3405
+ * @memberof DashboardApiGetDashboard
3406
+ */
3407
+ readonly platformId: string
3408
+ }
3409
+
3410
+ /**
3411
+ * Request parameters for saveDashboard operation in DashboardApi.
3412
+ * @export
3413
+ * @interface DashboardApiSaveDashboardRequest
3414
+ */
3415
+ export interface DashboardApiSaveDashboardRequest {
3416
+ /**
3417
+ * Project unique identifier
3418
+ * @type {string}
3419
+ * @memberof DashboardApiSaveDashboard
3420
+ */
3421
+ readonly project: string
3422
+
3423
+ /**
3424
+ * The platform identifier
3425
+ * @type {string}
3426
+ * @memberof DashboardApiSaveDashboard
3427
+ */
3428
+ readonly platformId: string
3429
+
3430
+ /**
3431
+ * Save dashboard
3432
+ * @type {SaveDashboardRequest}
3433
+ * @memberof DashboardApiSaveDashboard
3434
+ */
3435
+ readonly saveDashboardRequest: SaveDashboardRequest
3436
+ }
3437
+
3438
+ /**
3439
+ * DashboardApi - object-oriented interface
3440
+ * @export
3441
+ * @class DashboardApi
3442
+ * @extends {BaseAPI}
3443
+ */
3444
+ export class DashboardApi extends BaseAPI {
3445
+ /**
3446
+ *
3447
+ * @summary Get the platform\'s dashboard
3448
+ * @param {DashboardApiGetDashboardRequest} requestParameters Request parameters.
3449
+ * @param {*} [options] Override http request option.
3450
+ * @throws {RequiredError}
3451
+ * @memberof DashboardApi
3452
+ */
3453
+ public getDashboard(requestParameters: DashboardApiGetDashboardRequest, options?: RawAxiosRequestConfig) {
3454
+ return DashboardApiFp(this.configuration).getDashboard(requestParameters.project, requestParameters.platformId, options).then((request) => request(this.axios, this.basePath));
3455
+ }
3456
+
3457
+ /**
3458
+ *
3459
+ * @summary Save the platform\'s dashboard
3460
+ * @param {DashboardApiSaveDashboardRequest} requestParameters Request parameters.
3461
+ * @param {*} [options] Override http request option.
3462
+ * @throws {RequiredError}
3463
+ * @memberof DashboardApi
3464
+ */
3465
+ public saveDashboard(requestParameters: DashboardApiSaveDashboardRequest, options?: RawAxiosRequestConfig) {
3466
+ return DashboardApiFp(this.configuration).saveDashboard(requestParameters.project, requestParameters.platformId, requestParameters.saveDashboardRequest, options).then((request) => request(this.axios, this.basePath));
3467
+ }
3468
+ }
3469
+
3470
+
3471
+
3472
+ /**
3473
+ * EnquiriesApi - axios parameter creator
3474
+ * @export
3475
+ */
3476
+ export const EnquiriesApiAxiosParamCreator = function (configuration?: Configuration) {
3477
+ return {
3478
+ /**
3479
+ * Create a chat channel for a customer enquiry if it doesn\'t exist
3480
+ * @summary Create chat channel
3481
+ * @param {string} project Project unique identifier
3482
+ * @param {string} platformId The platform identifier
3483
+ * @param {string} enquiryId The enquiry identifier
3484
+ * @param {*} [options] Override http request option.
3485
+ * @throws {RequiredError}
3486
+ */
3487
+ createChatChannel: async (project: string, platformId: string, enquiryId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3488
+ // verify required parameter 'project' is not null or undefined
3489
+ assertParamExists('createChatChannel', 'project', project)
3490
+ // verify required parameter 'platformId' is not null or undefined
3491
+ assertParamExists('createChatChannel', 'platformId', platformId)
3492
+ // verify required parameter 'enquiryId' is not null or undefined
3493
+ assertParamExists('createChatChannel', 'enquiryId', enquiryId)
3494
+ const localVarPath = `/v1/platform/{platformId}/customers/enquiries/{enquiryId}/chat-channel`
3495
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
3496
+ .replace(`{${"enquiryId"}}`, encodeURIComponent(String(enquiryId)));
3497
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3498
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3499
+ let baseOptions;
3500
+ if (configuration) {
3501
+ baseOptions = configuration.baseOptions;
3502
+ }
3503
+
3504
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3505
+ const localVarHeaderParameter = {} as any;
3506
+ const localVarQueryParameter = {} as any;
3256
3507
 
3257
3508
  // authentication session-oauth required
3258
3509
  // oauth required
@@ -3277,24 +3528,21 @@ export const EnquiriesApiAxiosParamCreator = function (configuration?: Configura
3277
3528
  };
3278
3529
  },
3279
3530
  /**
3280
- * Update a customer enquiry
3281
- * @summary Update customer enquiry
3531
+ * Get a customer enquiry
3532
+ * @summary Get customer enquiry
3282
3533
  * @param {string} project Project unique identifier
3283
3534
  * @param {string} platformId The platform identifier
3284
3535
  * @param {string} enquiryId The enquiry identifier
3285
- * @param {UpdateCustomerEnquiryRequest} updateCustomerEnquiryRequest Enquiry update
3286
3536
  * @param {*} [options] Override http request option.
3287
3537
  * @throws {RequiredError}
3288
3538
  */
3289
- updateCustomerEnquiry: async (project: string, platformId: string, enquiryId: string, updateCustomerEnquiryRequest: UpdateCustomerEnquiryRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3539
+ getCustomerEnquiry: async (project: string, platformId: string, enquiryId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3290
3540
  // verify required parameter 'project' is not null or undefined
3291
- assertParamExists('updateCustomerEnquiry', 'project', project)
3541
+ assertParamExists('getCustomerEnquiry', 'project', project)
3292
3542
  // verify required parameter 'platformId' is not null or undefined
3293
- assertParamExists('updateCustomerEnquiry', 'platformId', platformId)
3543
+ assertParamExists('getCustomerEnquiry', 'platformId', platformId)
3294
3544
  // verify required parameter 'enquiryId' is not null or undefined
3295
- assertParamExists('updateCustomerEnquiry', 'enquiryId', enquiryId)
3296
- // verify required parameter 'updateCustomerEnquiryRequest' is not null or undefined
3297
- assertParamExists('updateCustomerEnquiry', 'updateCustomerEnquiryRequest', updateCustomerEnquiryRequest)
3545
+ assertParamExists('getCustomerEnquiry', 'enquiryId', enquiryId)
3298
3546
  const localVarPath = `/v1/platform/{platformId}/customers/enquiries/{enquiryId}`
3299
3547
  .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
3300
3548
  .replace(`{${"enquiryId"}}`, encodeURIComponent(String(enquiryId)));
@@ -3305,7 +3553,7 @@ export const EnquiriesApiAxiosParamCreator = function (configuration?: Configura
3305
3553
  baseOptions = configuration.baseOptions;
3306
3554
  }
3307
3555
 
3308
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
3556
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3309
3557
  const localVarHeaderParameter = {} as any;
3310
3558
  const localVarQueryParameter = {} as any;
3311
3559
 
@@ -3322,58 +3570,15 @@ export const EnquiriesApiAxiosParamCreator = function (configuration?: Configura
3322
3570
 
3323
3571
 
3324
3572
 
3325
- localVarHeaderParameter['Content-Type'] = 'application/json';
3326
-
3327
3573
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3328
3574
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3329
3575
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3330
- localVarRequestOptions.data = serializeDataIfNeeded(updateCustomerEnquiryRequest, localVarRequestOptions, configuration)
3331
3576
 
3332
3577
  return {
3333
3578
  url: toPathString(localVarUrlObj),
3334
3579
  options: localVarRequestOptions,
3335
3580
  };
3336
3581
  },
3337
- }
3338
- };
3339
-
3340
- /**
3341
- * EnquiriesApi - functional programming interface
3342
- * @export
3343
- */
3344
- export const EnquiriesApiFp = function(configuration?: Configuration) {
3345
- const localVarAxiosParamCreator = EnquiriesApiAxiosParamCreator(configuration)
3346
- return {
3347
- /**
3348
- * Create a chat channel for a customer enquiry if it doesn\'t exist
3349
- * @summary Create chat channel
3350
- * @param {string} project Project unique identifier
3351
- * @param {string} platformId The platform identifier
3352
- * @param {string} enquiryId The enquiry identifier
3353
- * @param {*} [options] Override http request option.
3354
- * @throws {RequiredError}
3355
- */
3356
- async createChatChannel(project: string, platformId: string, enquiryId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateChatChannel200Response>> {
3357
- const localVarAxiosArgs = await localVarAxiosParamCreator.createChatChannel(project, platformId, enquiryId, options);
3358
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3359
- const localVarOperationServerBasePath = operationServerMap['EnquiriesApi.createChatChannel']?.[localVarOperationServerIndex]?.url;
3360
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3361
- },
3362
- /**
3363
- * Get a customer enquiry
3364
- * @summary Get customer enquiry
3365
- * @param {string} project Project unique identifier
3366
- * @param {string} platformId The platform identifier
3367
- * @param {string} enquiryId The enquiry identifier
3368
- * @param {*} [options] Override http request option.
3369
- * @throws {RequiredError}
3370
- */
3371
- async getCustomerEnquiry(project: string, platformId: string, enquiryId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Enquiry>> {
3372
- const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomerEnquiry(project, platformId, enquiryId, options);
3373
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3374
- const localVarOperationServerBasePath = operationServerMap['EnquiriesApi.getCustomerEnquiry']?.[localVarOperationServerIndex]?.url;
3375
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3376
- },
3377
3582
  /**
3378
3583
  * List customer enquiries
3379
3584
  * @summary List customer enquiries
@@ -3387,11 +3592,69 @@ export const EnquiriesApiFp = function(configuration?: Configuration) {
3387
3592
  * @param {*} [options] Override http request option.
3388
3593
  * @throws {RequiredError}
3389
3594
  */
3390
- async listCustomerEnquiries(project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, start?: string, end?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCustomerEnquiries200Response>> {
3391
- const localVarAxiosArgs = await localVarAxiosParamCreator.listCustomerEnquiries(project, platformId, pageToken, pageSize, search, start, end, options);
3392
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3393
- const localVarOperationServerBasePath = operationServerMap['EnquiriesApi.listCustomerEnquiries']?.[localVarOperationServerIndex]?.url;
3394
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3595
+ listCustomerEnquiries: async (project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, start?: string, end?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3596
+ // verify required parameter 'project' is not null or undefined
3597
+ assertParamExists('listCustomerEnquiries', 'project', project)
3598
+ // verify required parameter 'platformId' is not null or undefined
3599
+ assertParamExists('listCustomerEnquiries', 'platformId', platformId)
3600
+ const localVarPath = `/v1/platform/{platformId}/customers/enquiries`
3601
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
3602
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3603
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3604
+ let baseOptions;
3605
+ if (configuration) {
3606
+ baseOptions = configuration.baseOptions;
3607
+ }
3608
+
3609
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3610
+ const localVarHeaderParameter = {} as any;
3611
+ const localVarQueryParameter = {} as any;
3612
+
3613
+ // authentication session-oauth required
3614
+ // oauth required
3615
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
3616
+
3617
+ // authentication api-key required
3618
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3619
+
3620
+ if (project !== undefined) {
3621
+ localVarQueryParameter['project'] = project;
3622
+ }
3623
+
3624
+ if (pageToken !== undefined) {
3625
+ localVarQueryParameter['pageToken'] = pageToken;
3626
+ }
3627
+
3628
+ if (pageSize !== undefined) {
3629
+ localVarQueryParameter['pageSize'] = pageSize;
3630
+ }
3631
+
3632
+ if (search !== undefined) {
3633
+ localVarQueryParameter['search'] = search;
3634
+ }
3635
+
3636
+ if (start !== undefined) {
3637
+ localVarQueryParameter['start'] = (start as any instanceof Date) ?
3638
+ (start as any).toISOString() :
3639
+ start;
3640
+ }
3641
+
3642
+ if (end !== undefined) {
3643
+ localVarQueryParameter['end'] = (end as any instanceof Date) ?
3644
+ (end as any).toISOString() :
3645
+ end;
3646
+ }
3647
+
3648
+
3649
+
3650
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3651
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3652
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3653
+
3654
+ return {
3655
+ url: toPathString(localVarUrlObj),
3656
+ options: localVarRequestOptions,
3657
+ };
3395
3658
  },
3396
3659
  /**
3397
3660
  * Lists all customer enquiry Logs
@@ -3402,23 +3665,192 @@ export const EnquiriesApiFp = function(configuration?: Configuration) {
3402
3665
  * @param {*} [options] Override http request option.
3403
3666
  * @throws {RequiredError}
3404
3667
  */
3405
- async listCustomerEnquiryLogs(project: string, platformId: string, enquiryId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCustomerEnquiryLogs200Response>> {
3406
- const localVarAxiosArgs = await localVarAxiosParamCreator.listCustomerEnquiryLogs(project, platformId, enquiryId, options);
3407
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3408
- const localVarOperationServerBasePath = operationServerMap['EnquiriesApi.listCustomerEnquiryLogs']?.[localVarOperationServerIndex]?.url;
3409
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3410
- },
3411
- /**
3412
- * Update a customer enquiry
3413
- * @summary Update customer enquiry
3414
- * @param {string} project Project unique identifier
3415
- * @param {string} platformId The platform identifier
3416
- * @param {string} enquiryId The enquiry identifier
3417
- * @param {UpdateCustomerEnquiryRequest} updateCustomerEnquiryRequest Enquiry update
3418
- * @param {*} [options] Override http request option.
3419
- * @throws {RequiredError}
3420
- */
3421
- async updateCustomerEnquiry(project: string, platformId: string, enquiryId: string, updateCustomerEnquiryRequest: UpdateCustomerEnquiryRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Enquiry>> {
3668
+ listCustomerEnquiryLogs: async (project: string, platformId: string, enquiryId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3669
+ // verify required parameter 'project' is not null or undefined
3670
+ assertParamExists('listCustomerEnquiryLogs', 'project', project)
3671
+ // verify required parameter 'platformId' is not null or undefined
3672
+ assertParamExists('listCustomerEnquiryLogs', 'platformId', platformId)
3673
+ // verify required parameter 'enquiryId' is not null or undefined
3674
+ assertParamExists('listCustomerEnquiryLogs', 'enquiryId', enquiryId)
3675
+ const localVarPath = `/v1/platform/{platformId}/customers/enquiries/{enquiryId}/logs`
3676
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
3677
+ .replace(`{${"enquiryId"}}`, encodeURIComponent(String(enquiryId)));
3678
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3679
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3680
+ let baseOptions;
3681
+ if (configuration) {
3682
+ baseOptions = configuration.baseOptions;
3683
+ }
3684
+
3685
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3686
+ const localVarHeaderParameter = {} as any;
3687
+ const localVarQueryParameter = {} as any;
3688
+
3689
+ // authentication session-oauth required
3690
+ // oauth required
3691
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
3692
+
3693
+ // authentication api-key required
3694
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3695
+
3696
+ if (project !== undefined) {
3697
+ localVarQueryParameter['project'] = project;
3698
+ }
3699
+
3700
+
3701
+
3702
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3703
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3704
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3705
+
3706
+ return {
3707
+ url: toPathString(localVarUrlObj),
3708
+ options: localVarRequestOptions,
3709
+ };
3710
+ },
3711
+ /**
3712
+ * Update a customer enquiry
3713
+ * @summary Update customer enquiry
3714
+ * @param {string} project Project unique identifier
3715
+ * @param {string} platformId The platform identifier
3716
+ * @param {string} enquiryId The enquiry identifier
3717
+ * @param {UpdateCustomerEnquiryRequest} updateCustomerEnquiryRequest Enquiry update
3718
+ * @param {*} [options] Override http request option.
3719
+ * @throws {RequiredError}
3720
+ */
3721
+ updateCustomerEnquiry: async (project: string, platformId: string, enquiryId: string, updateCustomerEnquiryRequest: UpdateCustomerEnquiryRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3722
+ // verify required parameter 'project' is not null or undefined
3723
+ assertParamExists('updateCustomerEnquiry', 'project', project)
3724
+ // verify required parameter 'platformId' is not null or undefined
3725
+ assertParamExists('updateCustomerEnquiry', 'platformId', platformId)
3726
+ // verify required parameter 'enquiryId' is not null or undefined
3727
+ assertParamExists('updateCustomerEnquiry', 'enquiryId', enquiryId)
3728
+ // verify required parameter 'updateCustomerEnquiryRequest' is not null or undefined
3729
+ assertParamExists('updateCustomerEnquiry', 'updateCustomerEnquiryRequest', updateCustomerEnquiryRequest)
3730
+ const localVarPath = `/v1/platform/{platformId}/customers/enquiries/{enquiryId}`
3731
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
3732
+ .replace(`{${"enquiryId"}}`, encodeURIComponent(String(enquiryId)));
3733
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3734
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3735
+ let baseOptions;
3736
+ if (configuration) {
3737
+ baseOptions = configuration.baseOptions;
3738
+ }
3739
+
3740
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
3741
+ const localVarHeaderParameter = {} as any;
3742
+ const localVarQueryParameter = {} as any;
3743
+
3744
+ // authentication session-oauth required
3745
+ // oauth required
3746
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
3747
+
3748
+ // authentication api-key required
3749
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3750
+
3751
+ if (project !== undefined) {
3752
+ localVarQueryParameter['project'] = project;
3753
+ }
3754
+
3755
+
3756
+
3757
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3758
+
3759
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3760
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3761
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3762
+ localVarRequestOptions.data = serializeDataIfNeeded(updateCustomerEnquiryRequest, localVarRequestOptions, configuration)
3763
+
3764
+ return {
3765
+ url: toPathString(localVarUrlObj),
3766
+ options: localVarRequestOptions,
3767
+ };
3768
+ },
3769
+ }
3770
+ };
3771
+
3772
+ /**
3773
+ * EnquiriesApi - functional programming interface
3774
+ * @export
3775
+ */
3776
+ export const EnquiriesApiFp = function(configuration?: Configuration) {
3777
+ const localVarAxiosParamCreator = EnquiriesApiAxiosParamCreator(configuration)
3778
+ return {
3779
+ /**
3780
+ * Create a chat channel for a customer enquiry if it doesn\'t exist
3781
+ * @summary Create chat channel
3782
+ * @param {string} project Project unique identifier
3783
+ * @param {string} platformId The platform identifier
3784
+ * @param {string} enquiryId The enquiry identifier
3785
+ * @param {*} [options] Override http request option.
3786
+ * @throws {RequiredError}
3787
+ */
3788
+ async createChatChannel(project: string, platformId: string, enquiryId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateChatChannel200Response>> {
3789
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createChatChannel(project, platformId, enquiryId, options);
3790
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3791
+ const localVarOperationServerBasePath = operationServerMap['EnquiriesApi.createChatChannel']?.[localVarOperationServerIndex]?.url;
3792
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3793
+ },
3794
+ /**
3795
+ * Get a customer enquiry
3796
+ * @summary Get customer enquiry
3797
+ * @param {string} project Project unique identifier
3798
+ * @param {string} platformId The platform identifier
3799
+ * @param {string} enquiryId The enquiry identifier
3800
+ * @param {*} [options] Override http request option.
3801
+ * @throws {RequiredError}
3802
+ */
3803
+ async getCustomerEnquiry(project: string, platformId: string, enquiryId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Enquiry>> {
3804
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomerEnquiry(project, platformId, enquiryId, options);
3805
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3806
+ const localVarOperationServerBasePath = operationServerMap['EnquiriesApi.getCustomerEnquiry']?.[localVarOperationServerIndex]?.url;
3807
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3808
+ },
3809
+ /**
3810
+ * List customer enquiries
3811
+ * @summary List customer enquiries
3812
+ * @param {string} project Project unique identifier
3813
+ * @param {string} platformId The platform identifier
3814
+ * @param {number} [pageToken] Page reference token
3815
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
3816
+ * @param {string} [search] Search term to filter based on enquiry title, content, customer name and customer email.
3817
+ * @param {string} [start] Start of date range to filter by
3818
+ * @param {string} [end] End of date range to filter by
3819
+ * @param {*} [options] Override http request option.
3820
+ * @throws {RequiredError}
3821
+ */
3822
+ async listCustomerEnquiries(project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, start?: string, end?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCustomerEnquiries200Response>> {
3823
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCustomerEnquiries(project, platformId, pageToken, pageSize, search, start, end, options);
3824
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3825
+ const localVarOperationServerBasePath = operationServerMap['EnquiriesApi.listCustomerEnquiries']?.[localVarOperationServerIndex]?.url;
3826
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3827
+ },
3828
+ /**
3829
+ * Lists all customer enquiry Logs
3830
+ * @summary List customer enquiry Logs
3831
+ * @param {string} project Project unique identifier
3832
+ * @param {string} platformId The platform identifier
3833
+ * @param {string} enquiryId The enquiry identifier
3834
+ * @param {*} [options] Override http request option.
3835
+ * @throws {RequiredError}
3836
+ */
3837
+ async listCustomerEnquiryLogs(project: string, platformId: string, enquiryId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCustomerEnquiryLogs200Response>> {
3838
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCustomerEnquiryLogs(project, platformId, enquiryId, options);
3839
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3840
+ const localVarOperationServerBasePath = operationServerMap['EnquiriesApi.listCustomerEnquiryLogs']?.[localVarOperationServerIndex]?.url;
3841
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3842
+ },
3843
+ /**
3844
+ * Update a customer enquiry
3845
+ * @summary Update customer enquiry
3846
+ * @param {string} project Project unique identifier
3847
+ * @param {string} platformId The platform identifier
3848
+ * @param {string} enquiryId The enquiry identifier
3849
+ * @param {UpdateCustomerEnquiryRequest} updateCustomerEnquiryRequest Enquiry update
3850
+ * @param {*} [options] Override http request option.
3851
+ * @throws {RequiredError}
3852
+ */
3853
+ async updateCustomerEnquiry(project: string, platformId: string, enquiryId: string, updateCustomerEnquiryRequest: UpdateCustomerEnquiryRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Enquiry>> {
3422
3854
  const localVarAxiosArgs = await localVarAxiosParamCreator.updateCustomerEnquiry(project, platformId, enquiryId, updateCustomerEnquiryRequest, options);
3423
3855
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3424
3856
  const localVarOperationServerBasePath = operationServerMap['EnquiriesApi.updateCustomerEnquiry']?.[localVarOperationServerIndex]?.url;
@@ -5547,8 +5979,460 @@ export const PaymentApiAxiosParamCreator = function (configuration?: Configurati
5547
5979
  */
5548
5980
  deauthorizeStripe: async (project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5549
5981
  // verify required parameter 'project' is not null or undefined
5550
- assertParamExists('deauthorizeStripe', 'project', project)
5551
- const localVarPath = `/v1/platform/payment/stripe/deauthorize`;
5982
+ assertParamExists('deauthorizeStripe', 'project', project)
5983
+ const localVarPath = `/v1/platform/payment/stripe/deauthorize`;
5984
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5985
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5986
+ let baseOptions;
5987
+ if (configuration) {
5988
+ baseOptions = configuration.baseOptions;
5989
+ }
5990
+
5991
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
5992
+ const localVarHeaderParameter = {} as any;
5993
+ const localVarQueryParameter = {} as any;
5994
+
5995
+ // authentication session-oauth required
5996
+ // oauth required
5997
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
5998
+
5999
+ // authentication api-key required
6000
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
6001
+
6002
+ if (project !== undefined) {
6003
+ localVarQueryParameter['project'] = project;
6004
+ }
6005
+
6006
+
6007
+
6008
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6009
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6010
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6011
+
6012
+ return {
6013
+ url: toPathString(localVarUrlObj),
6014
+ options: localVarRequestOptions,
6015
+ };
6016
+ },
6017
+ /**
6018
+ * Get the Stripe payment account for the project
6019
+ * @summary Get Stripe Payment Account
6020
+ * @param {string} project Project unique identifier
6021
+ * @param {*} [options] Override http request option.
6022
+ * @throws {RequiredError}
6023
+ */
6024
+ getStripePaymentAccount: async (project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6025
+ // verify required parameter 'project' is not null or undefined
6026
+ assertParamExists('getStripePaymentAccount', 'project', project)
6027
+ const localVarPath = `/v1/platform/payment/stripe`;
6028
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6029
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6030
+ let baseOptions;
6031
+ if (configuration) {
6032
+ baseOptions = configuration.baseOptions;
6033
+ }
6034
+
6035
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
6036
+ const localVarHeaderParameter = {} as any;
6037
+ const localVarQueryParameter = {} as any;
6038
+
6039
+ // authentication session-oauth required
6040
+ // oauth required
6041
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
6042
+
6043
+ // authentication api-key required
6044
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
6045
+
6046
+ if (project !== undefined) {
6047
+ localVarQueryParameter['project'] = project;
6048
+ }
6049
+
6050
+
6051
+
6052
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6053
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6054
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6055
+
6056
+ return {
6057
+ url: toPathString(localVarUrlObj),
6058
+ options: localVarRequestOptions,
6059
+ };
6060
+ },
6061
+ }
6062
+ };
6063
+
6064
+ /**
6065
+ * PaymentApi - functional programming interface
6066
+ * @export
6067
+ */
6068
+ export const PaymentApiFp = function(configuration?: Configuration) {
6069
+ const localVarAxiosParamCreator = PaymentApiAxiosParamCreator(configuration)
6070
+ return {
6071
+ /**
6072
+ * Authorize a Stripe payment account
6073
+ * @summary Authorize Stripe
6074
+ * @param {string} project Project unique identifier
6075
+ * @param {*} [options] Override http request option.
6076
+ * @throws {RequiredError}
6077
+ */
6078
+ async authorizeStripe(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineObject1>> {
6079
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authorizeStripe(project, options);
6080
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6081
+ const localVarOperationServerBasePath = operationServerMap['PaymentApi.authorizeStripe']?.[localVarOperationServerIndex]?.url;
6082
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6083
+ },
6084
+ /**
6085
+ * Deauthorize a Stripe payment account
6086
+ * @summary Deauthorize Stripe
6087
+ * @param {string} project Project unique identifier
6088
+ * @param {*} [options] Override http request option.
6089
+ * @throws {RequiredError}
6090
+ */
6091
+ async deauthorizeStripe(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
6092
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deauthorizeStripe(project, options);
6093
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6094
+ const localVarOperationServerBasePath = operationServerMap['PaymentApi.deauthorizeStripe']?.[localVarOperationServerIndex]?.url;
6095
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6096
+ },
6097
+ /**
6098
+ * Get the Stripe payment account for the project
6099
+ * @summary Get Stripe Payment Account
6100
+ * @param {string} project Project unique identifier
6101
+ * @param {*} [options] Override http request option.
6102
+ * @throws {RequiredError}
6103
+ */
6104
+ async getStripePaymentAccount(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentAccount>> {
6105
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getStripePaymentAccount(project, options);
6106
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6107
+ const localVarOperationServerBasePath = operationServerMap['PaymentApi.getStripePaymentAccount']?.[localVarOperationServerIndex]?.url;
6108
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6109
+ },
6110
+ }
6111
+ };
6112
+
6113
+ /**
6114
+ * PaymentApi - factory interface
6115
+ * @export
6116
+ */
6117
+ export const PaymentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
6118
+ const localVarFp = PaymentApiFp(configuration)
6119
+ return {
6120
+ /**
6121
+ * Authorize a Stripe payment account
6122
+ * @summary Authorize Stripe
6123
+ * @param {PaymentApiAuthorizeStripeRequest} requestParameters Request parameters.
6124
+ * @param {*} [options] Override http request option.
6125
+ * @throws {RequiredError}
6126
+ */
6127
+ authorizeStripe(requestParameters: PaymentApiAuthorizeStripeRequest, options?: RawAxiosRequestConfig): AxiosPromise<InlineObject1> {
6128
+ return localVarFp.authorizeStripe(requestParameters.project, options).then((request) => request(axios, basePath));
6129
+ },
6130
+ /**
6131
+ * Deauthorize a Stripe payment account
6132
+ * @summary Deauthorize Stripe
6133
+ * @param {PaymentApiDeauthorizeStripeRequest} requestParameters Request parameters.
6134
+ * @param {*} [options] Override http request option.
6135
+ * @throws {RequiredError}
6136
+ */
6137
+ deauthorizeStripe(requestParameters: PaymentApiDeauthorizeStripeRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
6138
+ return localVarFp.deauthorizeStripe(requestParameters.project, options).then((request) => request(axios, basePath));
6139
+ },
6140
+ /**
6141
+ * Get the Stripe payment account for the project
6142
+ * @summary Get Stripe Payment Account
6143
+ * @param {PaymentApiGetStripePaymentAccountRequest} requestParameters Request parameters.
6144
+ * @param {*} [options] Override http request option.
6145
+ * @throws {RequiredError}
6146
+ */
6147
+ getStripePaymentAccount(requestParameters: PaymentApiGetStripePaymentAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<PaymentAccount> {
6148
+ return localVarFp.getStripePaymentAccount(requestParameters.project, options).then((request) => request(axios, basePath));
6149
+ },
6150
+ };
6151
+ };
6152
+
6153
+ /**
6154
+ * Request parameters for authorizeStripe operation in PaymentApi.
6155
+ * @export
6156
+ * @interface PaymentApiAuthorizeStripeRequest
6157
+ */
6158
+ export interface PaymentApiAuthorizeStripeRequest {
6159
+ /**
6160
+ * Project unique identifier
6161
+ * @type {string}
6162
+ * @memberof PaymentApiAuthorizeStripe
6163
+ */
6164
+ readonly project: string
6165
+ }
6166
+
6167
+ /**
6168
+ * Request parameters for deauthorizeStripe operation in PaymentApi.
6169
+ * @export
6170
+ * @interface PaymentApiDeauthorizeStripeRequest
6171
+ */
6172
+ export interface PaymentApiDeauthorizeStripeRequest {
6173
+ /**
6174
+ * Project unique identifier
6175
+ * @type {string}
6176
+ * @memberof PaymentApiDeauthorizeStripe
6177
+ */
6178
+ readonly project: string
6179
+ }
6180
+
6181
+ /**
6182
+ * Request parameters for getStripePaymentAccount operation in PaymentApi.
6183
+ * @export
6184
+ * @interface PaymentApiGetStripePaymentAccountRequest
6185
+ */
6186
+ export interface PaymentApiGetStripePaymentAccountRequest {
6187
+ /**
6188
+ * Project unique identifier
6189
+ * @type {string}
6190
+ * @memberof PaymentApiGetStripePaymentAccount
6191
+ */
6192
+ readonly project: string
6193
+ }
6194
+
6195
+ /**
6196
+ * PaymentApi - object-oriented interface
6197
+ * @export
6198
+ * @class PaymentApi
6199
+ * @extends {BaseAPI}
6200
+ */
6201
+ export class PaymentApi extends BaseAPI {
6202
+ /**
6203
+ * Authorize a Stripe payment account
6204
+ * @summary Authorize Stripe
6205
+ * @param {PaymentApiAuthorizeStripeRequest} requestParameters Request parameters.
6206
+ * @param {*} [options] Override http request option.
6207
+ * @throws {RequiredError}
6208
+ * @memberof PaymentApi
6209
+ */
6210
+ public authorizeStripe(requestParameters: PaymentApiAuthorizeStripeRequest, options?: RawAxiosRequestConfig) {
6211
+ return PaymentApiFp(this.configuration).authorizeStripe(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
6212
+ }
6213
+
6214
+ /**
6215
+ * Deauthorize a Stripe payment account
6216
+ * @summary Deauthorize Stripe
6217
+ * @param {PaymentApiDeauthorizeStripeRequest} requestParameters Request parameters.
6218
+ * @param {*} [options] Override http request option.
6219
+ * @throws {RequiredError}
6220
+ * @memberof PaymentApi
6221
+ */
6222
+ public deauthorizeStripe(requestParameters: PaymentApiDeauthorizeStripeRequest, options?: RawAxiosRequestConfig) {
6223
+ return PaymentApiFp(this.configuration).deauthorizeStripe(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
6224
+ }
6225
+
6226
+ /**
6227
+ * Get the Stripe payment account for the project
6228
+ * @summary Get Stripe Payment Account
6229
+ * @param {PaymentApiGetStripePaymentAccountRequest} requestParameters Request parameters.
6230
+ * @param {*} [options] Override http request option.
6231
+ * @throws {RequiredError}
6232
+ * @memberof PaymentApi
6233
+ */
6234
+ public getStripePaymentAccount(requestParameters: PaymentApiGetStripePaymentAccountRequest, options?: RawAxiosRequestConfig) {
6235
+ return PaymentApiFp(this.configuration).getStripePaymentAccount(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
6236
+ }
6237
+ }
6238
+
6239
+
6240
+
6241
+ /**
6242
+ * PixelsApi - axios parameter creator
6243
+ * @export
6244
+ */
6245
+ export const PixelsApiAxiosParamCreator = function (configuration?: Configuration) {
6246
+ return {
6247
+ /**
6248
+ *
6249
+ * @summary Create a pixel
6250
+ * @param {string} project Project unique identifier
6251
+ * @param {string} platformId The platform identifier
6252
+ * @param {number} [pageToken] Page reference token
6253
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
6254
+ * @param {string} [search] Search term to filter results
6255
+ * @param {CreatePixelRequest} [createPixelRequest]
6256
+ * @param {*} [options] Override http request option.
6257
+ * @throws {RequiredError}
6258
+ */
6259
+ createPixel: async (project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, createPixelRequest?: CreatePixelRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6260
+ // verify required parameter 'project' is not null or undefined
6261
+ assertParamExists('createPixel', 'project', project)
6262
+ // verify required parameter 'platformId' is not null or undefined
6263
+ assertParamExists('createPixel', 'platformId', platformId)
6264
+ const localVarPath = `/v1/platform/{platformId}/pixels`
6265
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
6266
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6267
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6268
+ let baseOptions;
6269
+ if (configuration) {
6270
+ baseOptions = configuration.baseOptions;
6271
+ }
6272
+
6273
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
6274
+ const localVarHeaderParameter = {} as any;
6275
+ const localVarQueryParameter = {} as any;
6276
+
6277
+ // authentication session-oauth required
6278
+ // oauth required
6279
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
6280
+
6281
+ // authentication api-key required
6282
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
6283
+
6284
+ if (project !== undefined) {
6285
+ localVarQueryParameter['project'] = project;
6286
+ }
6287
+
6288
+ if (pageToken !== undefined) {
6289
+ localVarQueryParameter['pageToken'] = pageToken;
6290
+ }
6291
+
6292
+ if (pageSize !== undefined) {
6293
+ localVarQueryParameter['pageSize'] = pageSize;
6294
+ }
6295
+
6296
+ if (search !== undefined) {
6297
+ localVarQueryParameter['search'] = search;
6298
+ }
6299
+
6300
+
6301
+
6302
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6303
+
6304
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6305
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6306
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6307
+ localVarRequestOptions.data = serializeDataIfNeeded(createPixelRequest, localVarRequestOptions, configuration)
6308
+
6309
+ return {
6310
+ url: toPathString(localVarUrlObj),
6311
+ options: localVarRequestOptions,
6312
+ };
6313
+ },
6314
+ /**
6315
+ * Delete a pixel
6316
+ * @summary Delete a pixel
6317
+ * @param {string} project Project unique identifier
6318
+ * @param {string} platformId The platform identifier
6319
+ * @param {string} pixelId The pixel identifier
6320
+ * @param {*} [options] Override http request option.
6321
+ * @throws {RequiredError}
6322
+ */
6323
+ deletePixel: async (project: string, platformId: string, pixelId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6324
+ // verify required parameter 'project' is not null or undefined
6325
+ assertParamExists('deletePixel', 'project', project)
6326
+ // verify required parameter 'platformId' is not null or undefined
6327
+ assertParamExists('deletePixel', 'platformId', platformId)
6328
+ // verify required parameter 'pixelId' is not null or undefined
6329
+ assertParamExists('deletePixel', 'pixelId', pixelId)
6330
+ const localVarPath = `/v1/platform/{platformId}/pixels/{pixelId}`
6331
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
6332
+ .replace(`{${"pixelId"}}`, encodeURIComponent(String(pixelId)));
6333
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6334
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6335
+ let baseOptions;
6336
+ if (configuration) {
6337
+ baseOptions = configuration.baseOptions;
6338
+ }
6339
+
6340
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
6341
+ const localVarHeaderParameter = {} as any;
6342
+ const localVarQueryParameter = {} as any;
6343
+
6344
+ // authentication session-oauth required
6345
+ // oauth required
6346
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
6347
+
6348
+ // authentication api-key required
6349
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
6350
+
6351
+ if (project !== undefined) {
6352
+ localVarQueryParameter['project'] = project;
6353
+ }
6354
+
6355
+
6356
+
6357
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6358
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6359
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6360
+
6361
+ return {
6362
+ url: toPathString(localVarUrlObj),
6363
+ options: localVarRequestOptions,
6364
+ };
6365
+ },
6366
+ /**
6367
+ * Get a pixel for a platform by a given pixel ID.
6368
+ * @summary Get pixel
6369
+ * @param {string} project Project unique identifier
6370
+ * @param {string} platformId The platform identifier
6371
+ * @param {string} pixelId The pixel identifier
6372
+ * @param {*} [options] Override http request option.
6373
+ * @throws {RequiredError}
6374
+ */
6375
+ getPixel: async (project: string, platformId: string, pixelId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6376
+ // verify required parameter 'project' is not null or undefined
6377
+ assertParamExists('getPixel', 'project', project)
6378
+ // verify required parameter 'platformId' is not null or undefined
6379
+ assertParamExists('getPixel', 'platformId', platformId)
6380
+ // verify required parameter 'pixelId' is not null or undefined
6381
+ assertParamExists('getPixel', 'pixelId', pixelId)
6382
+ const localVarPath = `/v1/platform/{platformId}/pixels/{pixelId}`
6383
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
6384
+ .replace(`{${"pixelId"}}`, encodeURIComponent(String(pixelId)));
6385
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6386
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6387
+ let baseOptions;
6388
+ if (configuration) {
6389
+ baseOptions = configuration.baseOptions;
6390
+ }
6391
+
6392
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
6393
+ const localVarHeaderParameter = {} as any;
6394
+ const localVarQueryParameter = {} as any;
6395
+
6396
+ // authentication session-oauth required
6397
+ // oauth required
6398
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
6399
+
6400
+ // authentication api-key required
6401
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
6402
+
6403
+ if (project !== undefined) {
6404
+ localVarQueryParameter['project'] = project;
6405
+ }
6406
+
6407
+
6408
+
6409
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6410
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6411
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6412
+
6413
+ return {
6414
+ url: toPathString(localVarUrlObj),
6415
+ options: localVarRequestOptions,
6416
+ };
6417
+ },
6418
+ /**
6419
+ * List pixels for a platform
6420
+ * @summary List pixels
6421
+ * @param {string} project Project unique identifier
6422
+ * @param {string} platformId The platform identifier
6423
+ * @param {number} [pageToken] Page reference token
6424
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
6425
+ * @param {string} [search] Search term to filter results
6426
+ * @param {*} [options] Override http request option.
6427
+ * @throws {RequiredError}
6428
+ */
6429
+ listPixels: async (project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6430
+ // verify required parameter 'project' is not null or undefined
6431
+ assertParamExists('listPixels', 'project', project)
6432
+ // verify required parameter 'platformId' is not null or undefined
6433
+ assertParamExists('listPixels', 'platformId', platformId)
6434
+ const localVarPath = `/v1/platform/{platformId}/pixels`
6435
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
5552
6436
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5553
6437
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5554
6438
  let baseOptions;
@@ -5556,7 +6440,7 @@ export const PaymentApiAxiosParamCreator = function (configuration?: Configurati
5556
6440
  baseOptions = configuration.baseOptions;
5557
6441
  }
5558
6442
 
5559
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
6443
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5560
6444
  const localVarHeaderParameter = {} as any;
5561
6445
  const localVarQueryParameter = {} as any;
5562
6446
 
@@ -5571,6 +6455,18 @@ export const PaymentApiAxiosParamCreator = function (configuration?: Configurati
5571
6455
  localVarQueryParameter['project'] = project;
5572
6456
  }
5573
6457
 
6458
+ if (pageToken !== undefined) {
6459
+ localVarQueryParameter['pageToken'] = pageToken;
6460
+ }
6461
+
6462
+ if (pageSize !== undefined) {
6463
+ localVarQueryParameter['pageSize'] = pageSize;
6464
+ }
6465
+
6466
+ if (search !== undefined) {
6467
+ localVarQueryParameter['search'] = search;
6468
+ }
6469
+
5574
6470
 
5575
6471
 
5576
6472
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -5583,16 +6479,25 @@ export const PaymentApiAxiosParamCreator = function (configuration?: Configurati
5583
6479
  };
5584
6480
  },
5585
6481
  /**
5586
- * Get the Stripe payment account for the project
5587
- * @summary Get Stripe Payment Account
6482
+ * Update a pixel
6483
+ * @summary Update a pixel
5588
6484
  * @param {string} project Project unique identifier
6485
+ * @param {string} platformId The platform identifier
6486
+ * @param {string} pixelId The pixel identifier
6487
+ * @param {CreatePixelRequest} [createPixelRequest]
5589
6488
  * @param {*} [options] Override http request option.
5590
6489
  * @throws {RequiredError}
5591
6490
  */
5592
- getStripePaymentAccount: async (project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6491
+ updatePixel: async (project: string, platformId: string, pixelId: string, createPixelRequest?: CreatePixelRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5593
6492
  // verify required parameter 'project' is not null or undefined
5594
- assertParamExists('getStripePaymentAccount', 'project', project)
5595
- const localVarPath = `/v1/platform/payment/stripe`;
6493
+ assertParamExists('updatePixel', 'project', project)
6494
+ // verify required parameter 'platformId' is not null or undefined
6495
+ assertParamExists('updatePixel', 'platformId', platformId)
6496
+ // verify required parameter 'pixelId' is not null or undefined
6497
+ assertParamExists('updatePixel', 'pixelId', pixelId)
6498
+ const localVarPath = `/v1/platform/{platformId}/pixels/{pixelId}`
6499
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
6500
+ .replace(`{${"pixelId"}}`, encodeURIComponent(String(pixelId)));
5596
6501
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5597
6502
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5598
6503
  let baseOptions;
@@ -5600,7 +6505,7 @@ export const PaymentApiAxiosParamCreator = function (configuration?: Configurati
5600
6505
  baseOptions = configuration.baseOptions;
5601
6506
  }
5602
6507
 
5603
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
6508
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
5604
6509
  const localVarHeaderParameter = {} as any;
5605
6510
  const localVarQueryParameter = {} as any;
5606
6511
 
@@ -5617,9 +6522,12 @@ export const PaymentApiAxiosParamCreator = function (configuration?: Configurati
5617
6522
 
5618
6523
 
5619
6524
 
6525
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6526
+
5620
6527
  setSearchParams(localVarUrlObj, localVarQueryParameter);
5621
6528
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5622
6529
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6530
+ localVarRequestOptions.data = serializeDataIfNeeded(createPixelRequest, localVarRequestOptions, configuration)
5623
6531
 
5624
6532
  return {
5625
6533
  url: toPathString(localVarUrlObj),
@@ -5630,177 +6538,403 @@ export const PaymentApiAxiosParamCreator = function (configuration?: Configurati
5630
6538
  };
5631
6539
 
5632
6540
  /**
5633
- * PaymentApi - functional programming interface
6541
+ * PixelsApi - functional programming interface
5634
6542
  * @export
5635
6543
  */
5636
- export const PaymentApiFp = function(configuration?: Configuration) {
5637
- const localVarAxiosParamCreator = PaymentApiAxiosParamCreator(configuration)
6544
+ export const PixelsApiFp = function(configuration?: Configuration) {
6545
+ const localVarAxiosParamCreator = PixelsApiAxiosParamCreator(configuration)
5638
6546
  return {
5639
6547
  /**
5640
- * Authorize a Stripe payment account
5641
- * @summary Authorize Stripe
6548
+ *
6549
+ * @summary Create a pixel
5642
6550
  * @param {string} project Project unique identifier
6551
+ * @param {string} platformId The platform identifier
6552
+ * @param {number} [pageToken] Page reference token
6553
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
6554
+ * @param {string} [search] Search term to filter results
6555
+ * @param {CreatePixelRequest} [createPixelRequest]
5643
6556
  * @param {*} [options] Override http request option.
5644
6557
  * @throws {RequiredError}
5645
6558
  */
5646
- async authorizeStripe(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineObject1>> {
5647
- const localVarAxiosArgs = await localVarAxiosParamCreator.authorizeStripe(project, options);
6559
+ async createPixel(project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, createPixelRequest?: CreatePixelRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Pixel>> {
6560
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createPixel(project, platformId, pageToken, pageSize, search, createPixelRequest, options);
5648
6561
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5649
- const localVarOperationServerBasePath = operationServerMap['PaymentApi.authorizeStripe']?.[localVarOperationServerIndex]?.url;
6562
+ const localVarOperationServerBasePath = operationServerMap['PixelsApi.createPixel']?.[localVarOperationServerIndex]?.url;
5650
6563
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5651
6564
  },
5652
6565
  /**
5653
- * Deauthorize a Stripe payment account
5654
- * @summary Deauthorize Stripe
6566
+ * Delete a pixel
6567
+ * @summary Delete a pixel
5655
6568
  * @param {string} project Project unique identifier
6569
+ * @param {string} platformId The platform identifier
6570
+ * @param {string} pixelId The pixel identifier
5656
6571
  * @param {*} [options] Override http request option.
5657
6572
  * @throws {RequiredError}
5658
6573
  */
5659
- async deauthorizeStripe(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
5660
- const localVarAxiosArgs = await localVarAxiosParamCreator.deauthorizeStripe(project, options);
6574
+ async deletePixel(project: string, platformId: string, pixelId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
6575
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deletePixel(project, platformId, pixelId, options);
5661
6576
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5662
- const localVarOperationServerBasePath = operationServerMap['PaymentApi.deauthorizeStripe']?.[localVarOperationServerIndex]?.url;
6577
+ const localVarOperationServerBasePath = operationServerMap['PixelsApi.deletePixel']?.[localVarOperationServerIndex]?.url;
5663
6578
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5664
6579
  },
5665
6580
  /**
5666
- * Get the Stripe payment account for the project
5667
- * @summary Get Stripe Payment Account
6581
+ * Get a pixel for a platform by a given pixel ID.
6582
+ * @summary Get pixel
5668
6583
  * @param {string} project Project unique identifier
6584
+ * @param {string} platformId The platform identifier
6585
+ * @param {string} pixelId The pixel identifier
5669
6586
  * @param {*} [options] Override http request option.
5670
6587
  * @throws {RequiredError}
5671
6588
  */
5672
- async getStripePaymentAccount(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentAccount>> {
5673
- const localVarAxiosArgs = await localVarAxiosParamCreator.getStripePaymentAccount(project, options);
6589
+ async getPixel(project: string, platformId: string, pixelId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Pixel>> {
6590
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPixel(project, platformId, pixelId, options);
5674
6591
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5675
- const localVarOperationServerBasePath = operationServerMap['PaymentApi.getStripePaymentAccount']?.[localVarOperationServerIndex]?.url;
6592
+ const localVarOperationServerBasePath = operationServerMap['PixelsApi.getPixel']?.[localVarOperationServerIndex]?.url;
6593
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6594
+ },
6595
+ /**
6596
+ * List pixels for a platform
6597
+ * @summary List pixels
6598
+ * @param {string} project Project unique identifier
6599
+ * @param {string} platformId The platform identifier
6600
+ * @param {number} [pageToken] Page reference token
6601
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
6602
+ * @param {string} [search] Search term to filter results
6603
+ * @param {*} [options] Override http request option.
6604
+ * @throws {RequiredError}
6605
+ */
6606
+ async listPixels(project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PixelsResponse>> {
6607
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPixels(project, platformId, pageToken, pageSize, search, options);
6608
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6609
+ const localVarOperationServerBasePath = operationServerMap['PixelsApi.listPixels']?.[localVarOperationServerIndex]?.url;
6610
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6611
+ },
6612
+ /**
6613
+ * Update a pixel
6614
+ * @summary Update a pixel
6615
+ * @param {string} project Project unique identifier
6616
+ * @param {string} platformId The platform identifier
6617
+ * @param {string} pixelId The pixel identifier
6618
+ * @param {CreatePixelRequest} [createPixelRequest]
6619
+ * @param {*} [options] Override http request option.
6620
+ * @throws {RequiredError}
6621
+ */
6622
+ async updatePixel(project: string, platformId: string, pixelId: string, createPixelRequest?: CreatePixelRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Pixel>> {
6623
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updatePixel(project, platformId, pixelId, createPixelRequest, options);
6624
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6625
+ const localVarOperationServerBasePath = operationServerMap['PixelsApi.updatePixel']?.[localVarOperationServerIndex]?.url;
5676
6626
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5677
6627
  },
5678
6628
  }
5679
6629
  };
5680
6630
 
5681
6631
  /**
5682
- * PaymentApi - factory interface
6632
+ * PixelsApi - factory interface
5683
6633
  * @export
5684
6634
  */
5685
- export const PaymentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
5686
- const localVarFp = PaymentApiFp(configuration)
6635
+ export const PixelsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
6636
+ const localVarFp = PixelsApiFp(configuration)
5687
6637
  return {
5688
6638
  /**
5689
- * Authorize a Stripe payment account
5690
- * @summary Authorize Stripe
5691
- * @param {PaymentApiAuthorizeStripeRequest} requestParameters Request parameters.
6639
+ *
6640
+ * @summary Create a pixel
6641
+ * @param {PixelsApiCreatePixelRequest} requestParameters Request parameters.
5692
6642
  * @param {*} [options] Override http request option.
5693
6643
  * @throws {RequiredError}
5694
6644
  */
5695
- authorizeStripe(requestParameters: PaymentApiAuthorizeStripeRequest, options?: RawAxiosRequestConfig): AxiosPromise<InlineObject1> {
5696
- return localVarFp.authorizeStripe(requestParameters.project, options).then((request) => request(axios, basePath));
6645
+ createPixel(requestParameters: PixelsApiCreatePixelRequest, options?: RawAxiosRequestConfig): AxiosPromise<Pixel> {
6646
+ return localVarFp.createPixel(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.createPixelRequest, options).then((request) => request(axios, basePath));
5697
6647
  },
5698
6648
  /**
5699
- * Deauthorize a Stripe payment account
5700
- * @summary Deauthorize Stripe
5701
- * @param {PaymentApiDeauthorizeStripeRequest} requestParameters Request parameters.
6649
+ * Delete a pixel
6650
+ * @summary Delete a pixel
6651
+ * @param {PixelsApiDeletePixelRequest} requestParameters Request parameters.
5702
6652
  * @param {*} [options] Override http request option.
5703
6653
  * @throws {RequiredError}
5704
6654
  */
5705
- deauthorizeStripe(requestParameters: PaymentApiDeauthorizeStripeRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
5706
- return localVarFp.deauthorizeStripe(requestParameters.project, options).then((request) => request(axios, basePath));
6655
+ deletePixel(requestParameters: PixelsApiDeletePixelRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
6656
+ return localVarFp.deletePixel(requestParameters.project, requestParameters.platformId, requestParameters.pixelId, options).then((request) => request(axios, basePath));
5707
6657
  },
5708
6658
  /**
5709
- * Get the Stripe payment account for the project
5710
- * @summary Get Stripe Payment Account
5711
- * @param {PaymentApiGetStripePaymentAccountRequest} requestParameters Request parameters.
6659
+ * Get a pixel for a platform by a given pixel ID.
6660
+ * @summary Get pixel
6661
+ * @param {PixelsApiGetPixelRequest} requestParameters Request parameters.
5712
6662
  * @param {*} [options] Override http request option.
5713
6663
  * @throws {RequiredError}
5714
6664
  */
5715
- getStripePaymentAccount(requestParameters: PaymentApiGetStripePaymentAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<PaymentAccount> {
5716
- return localVarFp.getStripePaymentAccount(requestParameters.project, options).then((request) => request(axios, basePath));
6665
+ getPixel(requestParameters: PixelsApiGetPixelRequest, options?: RawAxiosRequestConfig): AxiosPromise<Pixel> {
6666
+ return localVarFp.getPixel(requestParameters.project, requestParameters.platformId, requestParameters.pixelId, options).then((request) => request(axios, basePath));
6667
+ },
6668
+ /**
6669
+ * List pixels for a platform
6670
+ * @summary List pixels
6671
+ * @param {PixelsApiListPixelsRequest} requestParameters Request parameters.
6672
+ * @param {*} [options] Override http request option.
6673
+ * @throws {RequiredError}
6674
+ */
6675
+ listPixels(requestParameters: PixelsApiListPixelsRequest, options?: RawAxiosRequestConfig): AxiosPromise<PixelsResponse> {
6676
+ return localVarFp.listPixels(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
6677
+ },
6678
+ /**
6679
+ * Update a pixel
6680
+ * @summary Update a pixel
6681
+ * @param {PixelsApiUpdatePixelRequest} requestParameters Request parameters.
6682
+ * @param {*} [options] Override http request option.
6683
+ * @throws {RequiredError}
6684
+ */
6685
+ updatePixel(requestParameters: PixelsApiUpdatePixelRequest, options?: RawAxiosRequestConfig): AxiosPromise<Pixel> {
6686
+ return localVarFp.updatePixel(requestParameters.project, requestParameters.platformId, requestParameters.pixelId, requestParameters.createPixelRequest, options).then((request) => request(axios, basePath));
5717
6687
  },
5718
6688
  };
5719
6689
  };
5720
6690
 
5721
6691
  /**
5722
- * Request parameters for authorizeStripe operation in PaymentApi.
6692
+ * Request parameters for createPixel operation in PixelsApi.
5723
6693
  * @export
5724
- * @interface PaymentApiAuthorizeStripeRequest
6694
+ * @interface PixelsApiCreatePixelRequest
5725
6695
  */
5726
- export interface PaymentApiAuthorizeStripeRequest {
6696
+ export interface PixelsApiCreatePixelRequest {
5727
6697
  /**
5728
6698
  * Project unique identifier
5729
6699
  * @type {string}
5730
- * @memberof PaymentApiAuthorizeStripe
6700
+ * @memberof PixelsApiCreatePixel
6701
+ */
6702
+ readonly project: string
6703
+
6704
+ /**
6705
+ * The platform identifier
6706
+ * @type {string}
6707
+ * @memberof PixelsApiCreatePixel
6708
+ */
6709
+ readonly platformId: string
6710
+
6711
+ /**
6712
+ * Page reference token
6713
+ * @type {number}
6714
+ * @memberof PixelsApiCreatePixel
6715
+ */
6716
+ readonly pageToken?: number
6717
+
6718
+ /**
6719
+ * Max page size. This is the maximum page size that will be returned, but it might be smaller.
6720
+ * @type {number}
6721
+ * @memberof PixelsApiCreatePixel
6722
+ */
6723
+ readonly pageSize?: number
6724
+
6725
+ /**
6726
+ * Search term to filter results
6727
+ * @type {string}
6728
+ * @memberof PixelsApiCreatePixel
6729
+ */
6730
+ readonly search?: string
6731
+
6732
+ /**
6733
+ *
6734
+ * @type {CreatePixelRequest}
6735
+ * @memberof PixelsApiCreatePixel
6736
+ */
6737
+ readonly createPixelRequest?: CreatePixelRequest
6738
+ }
6739
+
6740
+ /**
6741
+ * Request parameters for deletePixel operation in PixelsApi.
6742
+ * @export
6743
+ * @interface PixelsApiDeletePixelRequest
6744
+ */
6745
+ export interface PixelsApiDeletePixelRequest {
6746
+ /**
6747
+ * Project unique identifier
6748
+ * @type {string}
6749
+ * @memberof PixelsApiDeletePixel
5731
6750
  */
5732
6751
  readonly project: string
6752
+
6753
+ /**
6754
+ * The platform identifier
6755
+ * @type {string}
6756
+ * @memberof PixelsApiDeletePixel
6757
+ */
6758
+ readonly platformId: string
6759
+
6760
+ /**
6761
+ * The pixel identifier
6762
+ * @type {string}
6763
+ * @memberof PixelsApiDeletePixel
6764
+ */
6765
+ readonly pixelId: string
5733
6766
  }
5734
6767
 
5735
6768
  /**
5736
- * Request parameters for deauthorizeStripe operation in PaymentApi.
6769
+ * Request parameters for getPixel operation in PixelsApi.
5737
6770
  * @export
5738
- * @interface PaymentApiDeauthorizeStripeRequest
6771
+ * @interface PixelsApiGetPixelRequest
5739
6772
  */
5740
- export interface PaymentApiDeauthorizeStripeRequest {
6773
+ export interface PixelsApiGetPixelRequest {
5741
6774
  /**
5742
6775
  * Project unique identifier
5743
6776
  * @type {string}
5744
- * @memberof PaymentApiDeauthorizeStripe
6777
+ * @memberof PixelsApiGetPixel
5745
6778
  */
5746
6779
  readonly project: string
6780
+
6781
+ /**
6782
+ * The platform identifier
6783
+ * @type {string}
6784
+ * @memberof PixelsApiGetPixel
6785
+ */
6786
+ readonly platformId: string
6787
+
6788
+ /**
6789
+ * The pixel identifier
6790
+ * @type {string}
6791
+ * @memberof PixelsApiGetPixel
6792
+ */
6793
+ readonly pixelId: string
5747
6794
  }
5748
6795
 
5749
6796
  /**
5750
- * Request parameters for getStripePaymentAccount operation in PaymentApi.
6797
+ * Request parameters for listPixels operation in PixelsApi.
5751
6798
  * @export
5752
- * @interface PaymentApiGetStripePaymentAccountRequest
6799
+ * @interface PixelsApiListPixelsRequest
5753
6800
  */
5754
- export interface PaymentApiGetStripePaymentAccountRequest {
6801
+ export interface PixelsApiListPixelsRequest {
5755
6802
  /**
5756
6803
  * Project unique identifier
5757
6804
  * @type {string}
5758
- * @memberof PaymentApiGetStripePaymentAccount
6805
+ * @memberof PixelsApiListPixels
6806
+ */
6807
+ readonly project: string
6808
+
6809
+ /**
6810
+ * The platform identifier
6811
+ * @type {string}
6812
+ * @memberof PixelsApiListPixels
6813
+ */
6814
+ readonly platformId: string
6815
+
6816
+ /**
6817
+ * Page reference token
6818
+ * @type {number}
6819
+ * @memberof PixelsApiListPixels
6820
+ */
6821
+ readonly pageToken?: number
6822
+
6823
+ /**
6824
+ * Max page size. This is the maximum page size that will be returned, but it might be smaller.
6825
+ * @type {number}
6826
+ * @memberof PixelsApiListPixels
6827
+ */
6828
+ readonly pageSize?: number
6829
+
6830
+ /**
6831
+ * Search term to filter results
6832
+ * @type {string}
6833
+ * @memberof PixelsApiListPixels
6834
+ */
6835
+ readonly search?: string
6836
+ }
6837
+
6838
+ /**
6839
+ * Request parameters for updatePixel operation in PixelsApi.
6840
+ * @export
6841
+ * @interface PixelsApiUpdatePixelRequest
6842
+ */
6843
+ export interface PixelsApiUpdatePixelRequest {
6844
+ /**
6845
+ * Project unique identifier
6846
+ * @type {string}
6847
+ * @memberof PixelsApiUpdatePixel
5759
6848
  */
5760
6849
  readonly project: string
6850
+
6851
+ /**
6852
+ * The platform identifier
6853
+ * @type {string}
6854
+ * @memberof PixelsApiUpdatePixel
6855
+ */
6856
+ readonly platformId: string
6857
+
6858
+ /**
6859
+ * The pixel identifier
6860
+ * @type {string}
6861
+ * @memberof PixelsApiUpdatePixel
6862
+ */
6863
+ readonly pixelId: string
6864
+
6865
+ /**
6866
+ *
6867
+ * @type {CreatePixelRequest}
6868
+ * @memberof PixelsApiUpdatePixel
6869
+ */
6870
+ readonly createPixelRequest?: CreatePixelRequest
5761
6871
  }
5762
6872
 
5763
6873
  /**
5764
- * PaymentApi - object-oriented interface
6874
+ * PixelsApi - object-oriented interface
5765
6875
  * @export
5766
- * @class PaymentApi
6876
+ * @class PixelsApi
5767
6877
  * @extends {BaseAPI}
5768
6878
  */
5769
- export class PaymentApi extends BaseAPI {
6879
+ export class PixelsApi extends BaseAPI {
5770
6880
  /**
5771
- * Authorize a Stripe payment account
5772
- * @summary Authorize Stripe
5773
- * @param {PaymentApiAuthorizeStripeRequest} requestParameters Request parameters.
6881
+ *
6882
+ * @summary Create a pixel
6883
+ * @param {PixelsApiCreatePixelRequest} requestParameters Request parameters.
5774
6884
  * @param {*} [options] Override http request option.
5775
6885
  * @throws {RequiredError}
5776
- * @memberof PaymentApi
6886
+ * @memberof PixelsApi
5777
6887
  */
5778
- public authorizeStripe(requestParameters: PaymentApiAuthorizeStripeRequest, options?: RawAxiosRequestConfig) {
5779
- return PaymentApiFp(this.configuration).authorizeStripe(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
6888
+ public createPixel(requestParameters: PixelsApiCreatePixelRequest, options?: RawAxiosRequestConfig) {
6889
+ 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));
5780
6890
  }
5781
6891
 
5782
6892
  /**
5783
- * Deauthorize a Stripe payment account
5784
- * @summary Deauthorize Stripe
5785
- * @param {PaymentApiDeauthorizeStripeRequest} requestParameters Request parameters.
6893
+ * Delete a pixel
6894
+ * @summary Delete a pixel
6895
+ * @param {PixelsApiDeletePixelRequest} requestParameters Request parameters.
5786
6896
  * @param {*} [options] Override http request option.
5787
6897
  * @throws {RequiredError}
5788
- * @memberof PaymentApi
6898
+ * @memberof PixelsApi
5789
6899
  */
5790
- public deauthorizeStripe(requestParameters: PaymentApiDeauthorizeStripeRequest, options?: RawAxiosRequestConfig) {
5791
- return PaymentApiFp(this.configuration).deauthorizeStripe(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
6900
+ public deletePixel(requestParameters: PixelsApiDeletePixelRequest, options?: RawAxiosRequestConfig) {
6901
+ return PixelsApiFp(this.configuration).deletePixel(requestParameters.project, requestParameters.platformId, requestParameters.pixelId, options).then((request) => request(this.axios, this.basePath));
5792
6902
  }
5793
6903
 
5794
6904
  /**
5795
- * Get the Stripe payment account for the project
5796
- * @summary Get Stripe Payment Account
5797
- * @param {PaymentApiGetStripePaymentAccountRequest} requestParameters Request parameters.
6905
+ * Get a pixel for a platform by a given pixel ID.
6906
+ * @summary Get pixel
6907
+ * @param {PixelsApiGetPixelRequest} requestParameters Request parameters.
5798
6908
  * @param {*} [options] Override http request option.
5799
6909
  * @throws {RequiredError}
5800
- * @memberof PaymentApi
6910
+ * @memberof PixelsApi
5801
6911
  */
5802
- public getStripePaymentAccount(requestParameters: PaymentApiGetStripePaymentAccountRequest, options?: RawAxiosRequestConfig) {
5803
- return PaymentApiFp(this.configuration).getStripePaymentAccount(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
6912
+ public getPixel(requestParameters: PixelsApiGetPixelRequest, options?: RawAxiosRequestConfig) {
6913
+ return PixelsApiFp(this.configuration).getPixel(requestParameters.project, requestParameters.platformId, requestParameters.pixelId, options).then((request) => request(this.axios, this.basePath));
6914
+ }
6915
+
6916
+ /**
6917
+ * List pixels for a platform
6918
+ * @summary List pixels
6919
+ * @param {PixelsApiListPixelsRequest} requestParameters Request parameters.
6920
+ * @param {*} [options] Override http request option.
6921
+ * @throws {RequiredError}
6922
+ * @memberof PixelsApi
6923
+ */
6924
+ public listPixels(requestParameters: PixelsApiListPixelsRequest, options?: RawAxiosRequestConfig) {
6925
+ return PixelsApiFp(this.configuration).listPixels(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
6926
+ }
6927
+
6928
+ /**
6929
+ * Update a pixel
6930
+ * @summary Update a pixel
6931
+ * @param {PixelsApiUpdatePixelRequest} requestParameters Request parameters.
6932
+ * @param {*} [options] Override http request option.
6933
+ * @throws {RequiredError}
6934
+ * @memberof PixelsApi
6935
+ */
6936
+ public updatePixel(requestParameters: PixelsApiUpdatePixelRequest, options?: RawAxiosRequestConfig) {
6937
+ return PixelsApiFp(this.configuration).updatePixel(requestParameters.project, requestParameters.platformId, requestParameters.pixelId, requestParameters.createPixelRequest, options).then((request) => request(this.axios, this.basePath));
5804
6938
  }
5805
6939
  }
5806
6940