@teemill/platform 0.33.1 → 0.34.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/api.ts +229 -14
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +138 -9
- package/dist/api.js +124 -11
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +138 -9
- package/dist/esm/api.js +124 -11
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/CustomersApi.md +81 -0
- package/docs/InlineObject1.md +4 -2
- package/docs/InlineObject2.md +20 -0
- package/docs/PaymentApi.md +2 -2
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Platform API
|
|
3
3
|
* Manage Your podOS platform
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.34.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1121,10 +1121,29 @@ export interface InlineObject {
|
|
|
1121
1121
|
* @interface InlineObject1
|
|
1122
1122
|
*/
|
|
1123
1123
|
export interface InlineObject1 {
|
|
1124
|
+
/**
|
|
1125
|
+
*
|
|
1126
|
+
* @type {Array<string>}
|
|
1127
|
+
* @memberof InlineObject1
|
|
1128
|
+
*/
|
|
1129
|
+
'tags': Array<string>;
|
|
1130
|
+
/**
|
|
1131
|
+
*
|
|
1132
|
+
* @type {number}
|
|
1133
|
+
* @memberof InlineObject1
|
|
1134
|
+
*/
|
|
1135
|
+
'nextPageToken'?: number | null;
|
|
1136
|
+
}
|
|
1137
|
+
/**
|
|
1138
|
+
*
|
|
1139
|
+
* @export
|
|
1140
|
+
* @interface InlineObject2
|
|
1141
|
+
*/
|
|
1142
|
+
export interface InlineObject2 {
|
|
1124
1143
|
/**
|
|
1125
1144
|
* The URL to redirect to
|
|
1126
1145
|
* @type {string}
|
|
1127
|
-
* @memberof
|
|
1146
|
+
* @memberof InlineObject2
|
|
1128
1147
|
*/
|
|
1129
1148
|
'redirect_url': string;
|
|
1130
1149
|
}
|
|
@@ -2449,6 +2468,8 @@ export declare const CustomersApiAxiosParamCreator: (configuration?: Configurati
|
|
|
2449
2468
|
* @param {Array<string>} [projects] Filter customers by project. In the absence of this field, all projects will be included in the export.
|
|
2450
2469
|
* @param {ExportCustomersGenderEnum} [gender] Filter customers by gender equal to the value provided
|
|
2451
2470
|
* @param {Array<number>} [productTypes] Filter customers by purchased product types. In the absence of this field, all customers will be included in the export.
|
|
2471
|
+
* @param {Array<string>} [demographics] Filter customers by purchase demographics. In the absence of this field, all customers will be included in the export.
|
|
2472
|
+
* @param {Array<string>} [tags] Filter customers by purchase tags. In the absence of this field, all customers will be included in the export.
|
|
2452
2473
|
* @param {boolean} [usedDiscount] Filter customers by whether they have used a discount
|
|
2453
2474
|
* @param {number} [minimumTotalOrderCount] Filter customers by total order count greater than or equal to the value provided
|
|
2454
2475
|
* @param {number} [maximumTotalOrderCount] Filter customers by total order count less than or equal to the value provided
|
|
@@ -2461,7 +2482,7 @@ export declare const CustomersApiAxiosParamCreator: (configuration?: Configurati
|
|
|
2461
2482
|
* @param {*} [options] Override http request option.
|
|
2462
2483
|
* @throws {RequiredError}
|
|
2463
2484
|
*/
|
|
2464
|
-
exportCustomers: (project: string, platformId: string, sortBy?: Array<ExportCustomersSortByEnum>, countries?: Array<string>, projects?: Array<string>, gender?: ExportCustomersGenderEnum, productTypes?: Array<number>, usedDiscount?: boolean, minimumTotalOrderCount?: number, maximumTotalOrderCount?: number, minimumRefundedOrderCount?: number, maximumRefundedOrderCount?: number, minimumLifetimeValue?: number, maximumLifetimeValue?: number, lastPurchasedStart?: string, lastPurchasedEnd?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2485
|
+
exportCustomers: (project: string, platformId: string, sortBy?: Array<ExportCustomersSortByEnum>, countries?: Array<string>, projects?: Array<string>, gender?: ExportCustomersGenderEnum, productTypes?: Array<number>, demographics?: Array<string>, tags?: Array<string>, usedDiscount?: boolean, minimumTotalOrderCount?: number, maximumTotalOrderCount?: number, minimumRefundedOrderCount?: number, maximumRefundedOrderCount?: number, minimumLifetimeValue?: number, maximumLifetimeValue?: number, lastPurchasedStart?: string, lastPurchasedEnd?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2465
2486
|
/**
|
|
2466
2487
|
* Get a customer for a platform by a given customer ID.
|
|
2467
2488
|
* @summary Get customer
|
|
@@ -2472,6 +2493,18 @@ export declare const CustomersApiAxiosParamCreator: (configuration?: Configurati
|
|
|
2472
2493
|
* @throws {RequiredError}
|
|
2473
2494
|
*/
|
|
2474
2495
|
getCustomer: (project: string, platformId: string, customerId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2496
|
+
/**
|
|
2497
|
+
* List customer tags
|
|
2498
|
+
* @summary List customer tags
|
|
2499
|
+
* @param {string} project Project unique identifier
|
|
2500
|
+
* @param {string} platformId The platform identifier
|
|
2501
|
+
* @param {number} [pageToken] Page reference token
|
|
2502
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
2503
|
+
* @param {string} [search] Search term to filter results
|
|
2504
|
+
* @param {*} [options] Override http request option.
|
|
2505
|
+
* @throws {RequiredError}
|
|
2506
|
+
*/
|
|
2507
|
+
listCustomerTags: (project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2475
2508
|
/**
|
|
2476
2509
|
* List customers for a platform
|
|
2477
2510
|
* @summary List customers
|
|
@@ -2485,6 +2518,8 @@ export declare const CustomersApiAxiosParamCreator: (configuration?: Configurati
|
|
|
2485
2518
|
* @param {Array<string>} [projects] Filter customers by project. In the absence of this field, all projects will be included in the export.
|
|
2486
2519
|
* @param {ListCustomersGenderEnum} [gender] Filter customers by gender equal to the value provided
|
|
2487
2520
|
* @param {Array<number>} [productTypes] Filter customers by purchased product types. In the absence of this field, all customers will be included in the export.
|
|
2521
|
+
* @param {Array<string>} [demographics] Filter customers by purchase demographics. In the absence of this field, all customers will be included in the export.
|
|
2522
|
+
* @param {Array<string>} [tags] Filter customers by purchase tags. In the absence of this field, all customers will be included in the export.
|
|
2488
2523
|
* @param {boolean} [usedDiscount] Filter customers by whether they have used a discount
|
|
2489
2524
|
* @param {number} [minimumTotalOrderCount] Filter customers by total order count greater than or equal to the value provided
|
|
2490
2525
|
* @param {number} [maximumTotalOrderCount] Filter customers by total order count less than or equal to the value provided
|
|
@@ -2497,7 +2532,7 @@ export declare const CustomersApiAxiosParamCreator: (configuration?: Configurati
|
|
|
2497
2532
|
* @param {*} [options] Override http request option.
|
|
2498
2533
|
* @throws {RequiredError}
|
|
2499
2534
|
*/
|
|
2500
|
-
listCustomers: (project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, sortBy?: Array<ListCustomersSortByEnum>, countries?: Array<string>, projects?: Array<string>, gender?: ListCustomersGenderEnum, productTypes?: Array<number>, usedDiscount?: boolean, minimumTotalOrderCount?: number, maximumTotalOrderCount?: number, minimumRefundedOrderCount?: number, maximumRefundedOrderCount?: number, minimumLifetimeValue?: number, maximumLifetimeValue?: number, lastPurchasedStart?: string, lastPurchasedEnd?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2535
|
+
listCustomers: (project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, sortBy?: Array<ListCustomersSortByEnum>, countries?: Array<string>, projects?: Array<string>, gender?: ListCustomersGenderEnum, productTypes?: Array<number>, demographics?: Array<string>, tags?: Array<string>, usedDiscount?: boolean, minimumTotalOrderCount?: number, maximumTotalOrderCount?: number, minimumRefundedOrderCount?: number, maximumRefundedOrderCount?: number, minimumLifetimeValue?: number, maximumLifetimeValue?: number, lastPurchasedStart?: string, lastPurchasedEnd?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2501
2536
|
};
|
|
2502
2537
|
/**
|
|
2503
2538
|
* CustomersApi - functional programming interface
|
|
@@ -2514,6 +2549,8 @@ export declare const CustomersApiFp: (configuration?: Configuration) => {
|
|
|
2514
2549
|
* @param {Array<string>} [projects] Filter customers by project. In the absence of this field, all projects will be included in the export.
|
|
2515
2550
|
* @param {ExportCustomersGenderEnum} [gender] Filter customers by gender equal to the value provided
|
|
2516
2551
|
* @param {Array<number>} [productTypes] Filter customers by purchased product types. In the absence of this field, all customers will be included in the export.
|
|
2552
|
+
* @param {Array<string>} [demographics] Filter customers by purchase demographics. In the absence of this field, all customers will be included in the export.
|
|
2553
|
+
* @param {Array<string>} [tags] Filter customers by purchase tags. In the absence of this field, all customers will be included in the export.
|
|
2517
2554
|
* @param {boolean} [usedDiscount] Filter customers by whether they have used a discount
|
|
2518
2555
|
* @param {number} [minimumTotalOrderCount] Filter customers by total order count greater than or equal to the value provided
|
|
2519
2556
|
* @param {number} [maximumTotalOrderCount] Filter customers by total order count less than or equal to the value provided
|
|
@@ -2526,7 +2563,7 @@ export declare const CustomersApiFp: (configuration?: Configuration) => {
|
|
|
2526
2563
|
* @param {*} [options] Override http request option.
|
|
2527
2564
|
* @throws {RequiredError}
|
|
2528
2565
|
*/
|
|
2529
|
-
exportCustomers(project: string, platformId: string, sortBy?: Array<ExportCustomersSortByEnum>, countries?: Array<string>, projects?: Array<string>, gender?: ExportCustomersGenderEnum, productTypes?: Array<number>, usedDiscount?: boolean, minimumTotalOrderCount?: number, maximumTotalOrderCount?: number, minimumRefundedOrderCount?: number, maximumRefundedOrderCount?: number, minimumLifetimeValue?: number, maximumLifetimeValue?: number, lastPurchasedStart?: string, lastPurchasedEnd?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
|
|
2566
|
+
exportCustomers(project: string, platformId: string, sortBy?: Array<ExportCustomersSortByEnum>, countries?: Array<string>, projects?: Array<string>, gender?: ExportCustomersGenderEnum, productTypes?: Array<number>, demographics?: Array<string>, tags?: Array<string>, usedDiscount?: boolean, minimumTotalOrderCount?: number, maximumTotalOrderCount?: number, minimumRefundedOrderCount?: number, maximumRefundedOrderCount?: number, minimumLifetimeValue?: number, maximumLifetimeValue?: number, lastPurchasedStart?: string, lastPurchasedEnd?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
|
|
2530
2567
|
/**
|
|
2531
2568
|
* Get a customer for a platform by a given customer ID.
|
|
2532
2569
|
* @summary Get customer
|
|
@@ -2537,6 +2574,18 @@ export declare const CustomersApiFp: (configuration?: Configuration) => {
|
|
|
2537
2574
|
* @throws {RequiredError}
|
|
2538
2575
|
*/
|
|
2539
2576
|
getCustomer(project: string, platformId: string, customerId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Customer>>;
|
|
2577
|
+
/**
|
|
2578
|
+
* List customer tags
|
|
2579
|
+
* @summary List customer tags
|
|
2580
|
+
* @param {string} project Project unique identifier
|
|
2581
|
+
* @param {string} platformId The platform identifier
|
|
2582
|
+
* @param {number} [pageToken] Page reference token
|
|
2583
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
2584
|
+
* @param {string} [search] Search term to filter results
|
|
2585
|
+
* @param {*} [options] Override http request option.
|
|
2586
|
+
* @throws {RequiredError}
|
|
2587
|
+
*/
|
|
2588
|
+
listCustomerTags(project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineObject1>>;
|
|
2540
2589
|
/**
|
|
2541
2590
|
* List customers for a platform
|
|
2542
2591
|
* @summary List customers
|
|
@@ -2550,6 +2599,8 @@ export declare const CustomersApiFp: (configuration?: Configuration) => {
|
|
|
2550
2599
|
* @param {Array<string>} [projects] Filter customers by project. In the absence of this field, all projects will be included in the export.
|
|
2551
2600
|
* @param {ListCustomersGenderEnum} [gender] Filter customers by gender equal to the value provided
|
|
2552
2601
|
* @param {Array<number>} [productTypes] Filter customers by purchased product types. In the absence of this field, all customers will be included in the export.
|
|
2602
|
+
* @param {Array<string>} [demographics] Filter customers by purchase demographics. In the absence of this field, all customers will be included in the export.
|
|
2603
|
+
* @param {Array<string>} [tags] Filter customers by purchase tags. In the absence of this field, all customers will be included in the export.
|
|
2553
2604
|
* @param {boolean} [usedDiscount] Filter customers by whether they have used a discount
|
|
2554
2605
|
* @param {number} [minimumTotalOrderCount] Filter customers by total order count greater than or equal to the value provided
|
|
2555
2606
|
* @param {number} [maximumTotalOrderCount] Filter customers by total order count less than or equal to the value provided
|
|
@@ -2562,7 +2613,7 @@ export declare const CustomersApiFp: (configuration?: Configuration) => {
|
|
|
2562
2613
|
* @param {*} [options] Override http request option.
|
|
2563
2614
|
* @throws {RequiredError}
|
|
2564
2615
|
*/
|
|
2565
|
-
listCustomers(project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, sortBy?: Array<ListCustomersSortByEnum>, countries?: Array<string>, projects?: Array<string>, gender?: ListCustomersGenderEnum, productTypes?: Array<number>, usedDiscount?: boolean, minimumTotalOrderCount?: number, maximumTotalOrderCount?: number, minimumRefundedOrderCount?: number, maximumRefundedOrderCount?: number, minimumLifetimeValue?: number, maximumLifetimeValue?: number, lastPurchasedStart?: string, lastPurchasedEnd?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomersResponse>>;
|
|
2616
|
+
listCustomers(project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, sortBy?: Array<ListCustomersSortByEnum>, countries?: Array<string>, projects?: Array<string>, gender?: ListCustomersGenderEnum, productTypes?: Array<number>, demographics?: Array<string>, tags?: Array<string>, usedDiscount?: boolean, minimumTotalOrderCount?: number, maximumTotalOrderCount?: number, minimumRefundedOrderCount?: number, maximumRefundedOrderCount?: number, minimumLifetimeValue?: number, maximumLifetimeValue?: number, lastPurchasedStart?: string, lastPurchasedEnd?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomersResponse>>;
|
|
2566
2617
|
};
|
|
2567
2618
|
/**
|
|
2568
2619
|
* CustomersApi - factory interface
|
|
@@ -2585,6 +2636,14 @@ export declare const CustomersApiFactory: (configuration?: Configuration, basePa
|
|
|
2585
2636
|
* @throws {RequiredError}
|
|
2586
2637
|
*/
|
|
2587
2638
|
getCustomer(requestParameters: CustomersApiGetCustomerRequest, options?: RawAxiosRequestConfig): AxiosPromise<Customer>;
|
|
2639
|
+
/**
|
|
2640
|
+
* List customer tags
|
|
2641
|
+
* @summary List customer tags
|
|
2642
|
+
* @param {CustomersApiListCustomerTagsRequest} requestParameters Request parameters.
|
|
2643
|
+
* @param {*} [options] Override http request option.
|
|
2644
|
+
* @throws {RequiredError}
|
|
2645
|
+
*/
|
|
2646
|
+
listCustomerTags(requestParameters: CustomersApiListCustomerTagsRequest, options?: RawAxiosRequestConfig): AxiosPromise<InlineObject1>;
|
|
2588
2647
|
/**
|
|
2589
2648
|
* List customers for a platform
|
|
2590
2649
|
* @summary List customers
|
|
@@ -2642,6 +2701,18 @@ export interface CustomersApiExportCustomersRequest {
|
|
|
2642
2701
|
* @memberof CustomersApiExportCustomers
|
|
2643
2702
|
*/
|
|
2644
2703
|
readonly productTypes?: Array<number>;
|
|
2704
|
+
/**
|
|
2705
|
+
* Filter customers by purchase demographics. In the absence of this field, all customers will be included in the export.
|
|
2706
|
+
* @type {Array<string>}
|
|
2707
|
+
* @memberof CustomersApiExportCustomers
|
|
2708
|
+
*/
|
|
2709
|
+
readonly demographics?: Array<string>;
|
|
2710
|
+
/**
|
|
2711
|
+
* Filter customers by purchase tags. In the absence of this field, all customers will be included in the export.
|
|
2712
|
+
* @type {Array<string>}
|
|
2713
|
+
* @memberof CustomersApiExportCustomers
|
|
2714
|
+
*/
|
|
2715
|
+
readonly tags?: Array<string>;
|
|
2645
2716
|
/**
|
|
2646
2717
|
* Filter customers by whether they have used a discount
|
|
2647
2718
|
* @type {boolean}
|
|
@@ -2722,6 +2793,43 @@ export interface CustomersApiGetCustomerRequest {
|
|
|
2722
2793
|
*/
|
|
2723
2794
|
readonly customerId: string;
|
|
2724
2795
|
}
|
|
2796
|
+
/**
|
|
2797
|
+
* Request parameters for listCustomerTags operation in CustomersApi.
|
|
2798
|
+
* @export
|
|
2799
|
+
* @interface CustomersApiListCustomerTagsRequest
|
|
2800
|
+
*/
|
|
2801
|
+
export interface CustomersApiListCustomerTagsRequest {
|
|
2802
|
+
/**
|
|
2803
|
+
* Project unique identifier
|
|
2804
|
+
* @type {string}
|
|
2805
|
+
* @memberof CustomersApiListCustomerTags
|
|
2806
|
+
*/
|
|
2807
|
+
readonly project: string;
|
|
2808
|
+
/**
|
|
2809
|
+
* The platform identifier
|
|
2810
|
+
* @type {string}
|
|
2811
|
+
* @memberof CustomersApiListCustomerTags
|
|
2812
|
+
*/
|
|
2813
|
+
readonly platformId: string;
|
|
2814
|
+
/**
|
|
2815
|
+
* Page reference token
|
|
2816
|
+
* @type {number}
|
|
2817
|
+
* @memberof CustomersApiListCustomerTags
|
|
2818
|
+
*/
|
|
2819
|
+
readonly pageToken?: number;
|
|
2820
|
+
/**
|
|
2821
|
+
* Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
2822
|
+
* @type {number}
|
|
2823
|
+
* @memberof CustomersApiListCustomerTags
|
|
2824
|
+
*/
|
|
2825
|
+
readonly pageSize?: number;
|
|
2826
|
+
/**
|
|
2827
|
+
* Search term to filter results
|
|
2828
|
+
* @type {string}
|
|
2829
|
+
* @memberof CustomersApiListCustomerTags
|
|
2830
|
+
*/
|
|
2831
|
+
readonly search?: string;
|
|
2832
|
+
}
|
|
2725
2833
|
/**
|
|
2726
2834
|
* Request parameters for listCustomers operation in CustomersApi.
|
|
2727
2835
|
* @export
|
|
@@ -2788,6 +2896,18 @@ export interface CustomersApiListCustomersRequest {
|
|
|
2788
2896
|
* @memberof CustomersApiListCustomers
|
|
2789
2897
|
*/
|
|
2790
2898
|
readonly productTypes?: Array<number>;
|
|
2899
|
+
/**
|
|
2900
|
+
* Filter customers by purchase demographics. In the absence of this field, all customers will be included in the export.
|
|
2901
|
+
* @type {Array<string>}
|
|
2902
|
+
* @memberof CustomersApiListCustomers
|
|
2903
|
+
*/
|
|
2904
|
+
readonly demographics?: Array<string>;
|
|
2905
|
+
/**
|
|
2906
|
+
* Filter customers by purchase tags. In the absence of this field, all customers will be included in the export.
|
|
2907
|
+
* @type {Array<string>}
|
|
2908
|
+
* @memberof CustomersApiListCustomers
|
|
2909
|
+
*/
|
|
2910
|
+
readonly tags?: Array<string>;
|
|
2791
2911
|
/**
|
|
2792
2912
|
* Filter customers by whether they have used a discount
|
|
2793
2913
|
* @type {boolean}
|
|
@@ -2868,6 +2988,15 @@ export declare class CustomersApi extends BaseAPI {
|
|
|
2868
2988
|
* @memberof CustomersApi
|
|
2869
2989
|
*/
|
|
2870
2990
|
getCustomer(requestParameters: CustomersApiGetCustomerRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Customer, any>>;
|
|
2991
|
+
/**
|
|
2992
|
+
* List customer tags
|
|
2993
|
+
* @summary List customer tags
|
|
2994
|
+
* @param {CustomersApiListCustomerTagsRequest} requestParameters Request parameters.
|
|
2995
|
+
* @param {*} [options] Override http request option.
|
|
2996
|
+
* @throws {RequiredError}
|
|
2997
|
+
* @memberof CustomersApi
|
|
2998
|
+
*/
|
|
2999
|
+
listCustomerTags(requestParameters: CustomersApiListCustomerTagsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineObject1, any>>;
|
|
2871
3000
|
/**
|
|
2872
3001
|
* List customers for a platform
|
|
2873
3002
|
* @summary List customers
|
|
@@ -4431,7 +4560,7 @@ export declare const PaymentApiFp: (configuration?: Configuration) => {
|
|
|
4431
4560
|
* @param {*} [options] Override http request option.
|
|
4432
4561
|
* @throws {RequiredError}
|
|
4433
4562
|
*/
|
|
4434
|
-
authorizeStripe(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
4563
|
+
authorizeStripe(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineObject2>>;
|
|
4435
4564
|
/**
|
|
4436
4565
|
* Deauthorize a Stripe payment account
|
|
4437
4566
|
* @summary Deauthorize Stripe
|
|
@@ -4461,7 +4590,7 @@ export declare const PaymentApiFactory: (configuration?: Configuration, basePath
|
|
|
4461
4590
|
* @param {*} [options] Override http request option.
|
|
4462
4591
|
* @throws {RequiredError}
|
|
4463
4592
|
*/
|
|
4464
|
-
authorizeStripe(requestParameters: PaymentApiAuthorizeStripeRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
4593
|
+
authorizeStripe(requestParameters: PaymentApiAuthorizeStripeRequest, options?: RawAxiosRequestConfig): AxiosPromise<InlineObject2>;
|
|
4465
4594
|
/**
|
|
4466
4595
|
* Deauthorize a Stripe payment account
|
|
4467
4596
|
* @summary Deauthorize Stripe
|
|
@@ -4533,7 +4662,7 @@ export declare class PaymentApi extends BaseAPI {
|
|
|
4533
4662
|
* @throws {RequiredError}
|
|
4534
4663
|
* @memberof PaymentApi
|
|
4535
4664
|
*/
|
|
4536
|
-
authorizeStripe(requestParameters: PaymentApiAuthorizeStripeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
4665
|
+
authorizeStripe(requestParameters: PaymentApiAuthorizeStripeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineObject2, any>>;
|
|
4537
4666
|
/**
|
|
4538
4667
|
* Deauthorize a Stripe payment account
|
|
4539
4668
|
* @summary Deauthorize Stripe
|
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Platform API
|
|
6
6
|
* Manage Your podOS platform
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.
|
|
8
|
+
* The version of the OpenAPI document: 0.34.1
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -91,6 +91,8 @@ const CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
91
91
|
* @param {Array<string>} [projects] Filter customers by project. In the absence of this field, all projects will be included in the export.
|
|
92
92
|
* @param {ExportCustomersGenderEnum} [gender] Filter customers by gender equal to the value provided
|
|
93
93
|
* @param {Array<number>} [productTypes] Filter customers by purchased product types. In the absence of this field, all customers will be included in the export.
|
|
94
|
+
* @param {Array<string>} [demographics] Filter customers by purchase demographics. In the absence of this field, all customers will be included in the export.
|
|
95
|
+
* @param {Array<string>} [tags] Filter customers by purchase tags. In the absence of this field, all customers will be included in the export.
|
|
94
96
|
* @param {boolean} [usedDiscount] Filter customers by whether they have used a discount
|
|
95
97
|
* @param {number} [minimumTotalOrderCount] Filter customers by total order count greater than or equal to the value provided
|
|
96
98
|
* @param {number} [maximumTotalOrderCount] Filter customers by total order count less than or equal to the value provided
|
|
@@ -103,7 +105,7 @@ const CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
103
105
|
* @param {*} [options] Override http request option.
|
|
104
106
|
* @throws {RequiredError}
|
|
105
107
|
*/
|
|
106
|
-
exportCustomers: (project_1, platformId_1, sortBy_1, countries_1, projects_1, gender_1, productTypes_1, usedDiscount_1, minimumTotalOrderCount_1, maximumTotalOrderCount_1, minimumRefundedOrderCount_1, maximumRefundedOrderCount_1, minimumLifetimeValue_1, maximumLifetimeValue_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1) => __awaiter(this, [project_1, platformId_1, sortBy_1, countries_1, projects_1, gender_1, productTypes_1, usedDiscount_1, minimumTotalOrderCount_1, maximumTotalOrderCount_1, minimumRefundedOrderCount_1, maximumRefundedOrderCount_1, minimumLifetimeValue_1, maximumLifetimeValue_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1], void 0, function* (project, platformId, sortBy, countries, projects, gender, productTypes, usedDiscount, minimumTotalOrderCount, maximumTotalOrderCount, minimumRefundedOrderCount, maximumRefundedOrderCount, minimumLifetimeValue, maximumLifetimeValue, lastPurchasedStart, lastPurchasedEnd, options = {}) {
|
|
108
|
+
exportCustomers: (project_1, platformId_1, sortBy_1, countries_1, projects_1, gender_1, productTypes_1, demographics_1, tags_1, usedDiscount_1, minimumTotalOrderCount_1, maximumTotalOrderCount_1, minimumRefundedOrderCount_1, maximumRefundedOrderCount_1, minimumLifetimeValue_1, maximumLifetimeValue_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1) => __awaiter(this, [project_1, platformId_1, sortBy_1, countries_1, projects_1, gender_1, productTypes_1, demographics_1, tags_1, usedDiscount_1, minimumTotalOrderCount_1, maximumTotalOrderCount_1, minimumRefundedOrderCount_1, maximumRefundedOrderCount_1, minimumLifetimeValue_1, maximumLifetimeValue_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1], void 0, function* (project, platformId, sortBy, countries, projects, gender, productTypes, demographics, tags, usedDiscount, minimumTotalOrderCount, maximumTotalOrderCount, minimumRefundedOrderCount, maximumRefundedOrderCount, minimumLifetimeValue, maximumLifetimeValue, lastPurchasedStart, lastPurchasedEnd, options = {}) {
|
|
107
109
|
// verify required parameter 'project' is not null or undefined
|
|
108
110
|
(0, common_1.assertParamExists)('exportCustomers', 'project', project);
|
|
109
111
|
// verify required parameter 'platformId' is not null or undefined
|
|
@@ -142,6 +144,12 @@ const CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
142
144
|
if (productTypes) {
|
|
143
145
|
localVarQueryParameter['productTypes'] = productTypes;
|
|
144
146
|
}
|
|
147
|
+
if (demographics) {
|
|
148
|
+
localVarQueryParameter['demographics'] = demographics;
|
|
149
|
+
}
|
|
150
|
+
if (tags) {
|
|
151
|
+
localVarQueryParameter['tags'] = tags;
|
|
152
|
+
}
|
|
145
153
|
if (usedDiscount !== undefined) {
|
|
146
154
|
localVarQueryParameter['usedDiscount'] = usedDiscount;
|
|
147
155
|
}
|
|
@@ -223,6 +231,58 @@ const CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
223
231
|
options: localVarRequestOptions,
|
|
224
232
|
};
|
|
225
233
|
}),
|
|
234
|
+
/**
|
|
235
|
+
* List customer tags
|
|
236
|
+
* @summary List customer tags
|
|
237
|
+
* @param {string} project Project unique identifier
|
|
238
|
+
* @param {string} platformId The platform identifier
|
|
239
|
+
* @param {number} [pageToken] Page reference token
|
|
240
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
241
|
+
* @param {string} [search] Search term to filter results
|
|
242
|
+
* @param {*} [options] Override http request option.
|
|
243
|
+
* @throws {RequiredError}
|
|
244
|
+
*/
|
|
245
|
+
listCustomerTags: (project_1, platformId_1, pageToken_1, pageSize_1, search_1, ...args_1) => __awaiter(this, [project_1, platformId_1, pageToken_1, pageSize_1, search_1, ...args_1], void 0, function* (project, platformId, pageToken, pageSize, search, options = {}) {
|
|
246
|
+
// verify required parameter 'project' is not null or undefined
|
|
247
|
+
(0, common_1.assertParamExists)('listCustomerTags', 'project', project);
|
|
248
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
249
|
+
(0, common_1.assertParamExists)('listCustomerTags', 'platformId', platformId);
|
|
250
|
+
const localVarPath = `/v1/platform/{platformId}/customers/tags`
|
|
251
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
|
|
252
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
253
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
254
|
+
let baseOptions;
|
|
255
|
+
if (configuration) {
|
|
256
|
+
baseOptions = configuration.baseOptions;
|
|
257
|
+
}
|
|
258
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
259
|
+
const localVarHeaderParameter = {};
|
|
260
|
+
const localVarQueryParameter = {};
|
|
261
|
+
// authentication session-oauth required
|
|
262
|
+
// oauth required
|
|
263
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
264
|
+
// authentication api-key required
|
|
265
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
266
|
+
if (project !== undefined) {
|
|
267
|
+
localVarQueryParameter['project'] = project;
|
|
268
|
+
}
|
|
269
|
+
if (pageToken !== undefined) {
|
|
270
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
271
|
+
}
|
|
272
|
+
if (pageSize !== undefined) {
|
|
273
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
274
|
+
}
|
|
275
|
+
if (search !== undefined) {
|
|
276
|
+
localVarQueryParameter['search'] = search;
|
|
277
|
+
}
|
|
278
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
279
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
280
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
281
|
+
return {
|
|
282
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
283
|
+
options: localVarRequestOptions,
|
|
284
|
+
};
|
|
285
|
+
}),
|
|
226
286
|
/**
|
|
227
287
|
* List customers for a platform
|
|
228
288
|
* @summary List customers
|
|
@@ -236,6 +296,8 @@ const CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
236
296
|
* @param {Array<string>} [projects] Filter customers by project. In the absence of this field, all projects will be included in the export.
|
|
237
297
|
* @param {ListCustomersGenderEnum} [gender] Filter customers by gender equal to the value provided
|
|
238
298
|
* @param {Array<number>} [productTypes] Filter customers by purchased product types. In the absence of this field, all customers will be included in the export.
|
|
299
|
+
* @param {Array<string>} [demographics] Filter customers by purchase demographics. In the absence of this field, all customers will be included in the export.
|
|
300
|
+
* @param {Array<string>} [tags] Filter customers by purchase tags. In the absence of this field, all customers will be included in the export.
|
|
239
301
|
* @param {boolean} [usedDiscount] Filter customers by whether they have used a discount
|
|
240
302
|
* @param {number} [minimumTotalOrderCount] Filter customers by total order count greater than or equal to the value provided
|
|
241
303
|
* @param {number} [maximumTotalOrderCount] Filter customers by total order count less than or equal to the value provided
|
|
@@ -248,7 +310,7 @@ const CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
248
310
|
* @param {*} [options] Override http request option.
|
|
249
311
|
* @throws {RequiredError}
|
|
250
312
|
*/
|
|
251
|
-
listCustomers: (project_1, platformId_1, pageToken_1, pageSize_1, search_1, sortBy_1, countries_1, projects_1, gender_1, productTypes_1, usedDiscount_1, minimumTotalOrderCount_1, maximumTotalOrderCount_1, minimumRefundedOrderCount_1, maximumRefundedOrderCount_1, minimumLifetimeValue_1, maximumLifetimeValue_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1) => __awaiter(this, [project_1, platformId_1, pageToken_1, pageSize_1, search_1, sortBy_1, countries_1, projects_1, gender_1, productTypes_1, usedDiscount_1, minimumTotalOrderCount_1, maximumTotalOrderCount_1, minimumRefundedOrderCount_1, maximumRefundedOrderCount_1, minimumLifetimeValue_1, maximumLifetimeValue_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1], void 0, function* (project, platformId, pageToken, pageSize, search, sortBy, countries, projects, gender, productTypes, usedDiscount, minimumTotalOrderCount, maximumTotalOrderCount, minimumRefundedOrderCount, maximumRefundedOrderCount, minimumLifetimeValue, maximumLifetimeValue, lastPurchasedStart, lastPurchasedEnd, options = {}) {
|
|
313
|
+
listCustomers: (project_1, platformId_1, pageToken_1, pageSize_1, search_1, sortBy_1, countries_1, projects_1, gender_1, productTypes_1, demographics_1, tags_1, usedDiscount_1, minimumTotalOrderCount_1, maximumTotalOrderCount_1, minimumRefundedOrderCount_1, maximumRefundedOrderCount_1, minimumLifetimeValue_1, maximumLifetimeValue_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1) => __awaiter(this, [project_1, platformId_1, pageToken_1, pageSize_1, search_1, sortBy_1, countries_1, projects_1, gender_1, productTypes_1, demographics_1, tags_1, usedDiscount_1, minimumTotalOrderCount_1, maximumTotalOrderCount_1, minimumRefundedOrderCount_1, maximumRefundedOrderCount_1, minimumLifetimeValue_1, maximumLifetimeValue_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1], void 0, function* (project, platformId, pageToken, pageSize, search, sortBy, countries, projects, gender, productTypes, demographics, tags, usedDiscount, minimumTotalOrderCount, maximumTotalOrderCount, minimumRefundedOrderCount, maximumRefundedOrderCount, minimumLifetimeValue, maximumLifetimeValue, lastPurchasedStart, lastPurchasedEnd, options = {}) {
|
|
252
314
|
// verify required parameter 'project' is not null or undefined
|
|
253
315
|
(0, common_1.assertParamExists)('listCustomers', 'project', project);
|
|
254
316
|
// verify required parameter 'platformId' is not null or undefined
|
|
@@ -296,6 +358,12 @@ const CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
296
358
|
if (productTypes) {
|
|
297
359
|
localVarQueryParameter['productTypes'] = productTypes;
|
|
298
360
|
}
|
|
361
|
+
if (demographics) {
|
|
362
|
+
localVarQueryParameter['demographics'] = demographics;
|
|
363
|
+
}
|
|
364
|
+
if (tags) {
|
|
365
|
+
localVarQueryParameter['tags'] = tags;
|
|
366
|
+
}
|
|
299
367
|
if (usedDiscount !== undefined) {
|
|
300
368
|
localVarQueryParameter['usedDiscount'] = usedDiscount;
|
|
301
369
|
}
|
|
@@ -353,6 +421,8 @@ const CustomersApiFp = function (configuration) {
|
|
|
353
421
|
* @param {Array<string>} [projects] Filter customers by project. In the absence of this field, all projects will be included in the export.
|
|
354
422
|
* @param {ExportCustomersGenderEnum} [gender] Filter customers by gender equal to the value provided
|
|
355
423
|
* @param {Array<number>} [productTypes] Filter customers by purchased product types. In the absence of this field, all customers will be included in the export.
|
|
424
|
+
* @param {Array<string>} [demographics] Filter customers by purchase demographics. In the absence of this field, all customers will be included in the export.
|
|
425
|
+
* @param {Array<string>} [tags] Filter customers by purchase tags. In the absence of this field, all customers will be included in the export.
|
|
356
426
|
* @param {boolean} [usedDiscount] Filter customers by whether they have used a discount
|
|
357
427
|
* @param {number} [minimumTotalOrderCount] Filter customers by total order count greater than or equal to the value provided
|
|
358
428
|
* @param {number} [maximumTotalOrderCount] Filter customers by total order count less than or equal to the value provided
|
|
@@ -365,10 +435,10 @@ const CustomersApiFp = function (configuration) {
|
|
|
365
435
|
* @param {*} [options] Override http request option.
|
|
366
436
|
* @throws {RequiredError}
|
|
367
437
|
*/
|
|
368
|
-
exportCustomers(project, platformId, sortBy, countries, projects, gender, productTypes, usedDiscount, minimumTotalOrderCount, maximumTotalOrderCount, minimumRefundedOrderCount, maximumRefundedOrderCount, minimumLifetimeValue, maximumLifetimeValue, lastPurchasedStart, lastPurchasedEnd, options) {
|
|
438
|
+
exportCustomers(project, platformId, sortBy, countries, projects, gender, productTypes, demographics, tags, usedDiscount, minimumTotalOrderCount, maximumTotalOrderCount, minimumRefundedOrderCount, maximumRefundedOrderCount, minimumLifetimeValue, maximumLifetimeValue, lastPurchasedStart, lastPurchasedEnd, options) {
|
|
369
439
|
return __awaiter(this, void 0, void 0, function* () {
|
|
370
440
|
var _a, _b, _c;
|
|
371
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.exportCustomers(project, platformId, sortBy, countries, projects, gender, productTypes, usedDiscount, minimumTotalOrderCount, maximumTotalOrderCount, minimumRefundedOrderCount, maximumRefundedOrderCount, minimumLifetimeValue, maximumLifetimeValue, lastPurchasedStart, lastPurchasedEnd, options);
|
|
441
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.exportCustomers(project, platformId, sortBy, countries, projects, gender, productTypes, demographics, tags, usedDiscount, minimumTotalOrderCount, maximumTotalOrderCount, minimumRefundedOrderCount, maximumRefundedOrderCount, minimumLifetimeValue, maximumLifetimeValue, lastPurchasedStart, lastPurchasedEnd, options);
|
|
372
442
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
373
443
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CustomersApi.exportCustomers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
374
444
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -392,6 +462,26 @@ const CustomersApiFp = function (configuration) {
|
|
|
392
462
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
393
463
|
});
|
|
394
464
|
},
|
|
465
|
+
/**
|
|
466
|
+
* List customer tags
|
|
467
|
+
* @summary List customer tags
|
|
468
|
+
* @param {string} project Project unique identifier
|
|
469
|
+
* @param {string} platformId The platform identifier
|
|
470
|
+
* @param {number} [pageToken] Page reference token
|
|
471
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
472
|
+
* @param {string} [search] Search term to filter results
|
|
473
|
+
* @param {*} [options] Override http request option.
|
|
474
|
+
* @throws {RequiredError}
|
|
475
|
+
*/
|
|
476
|
+
listCustomerTags(project, platformId, pageToken, pageSize, search, options) {
|
|
477
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
478
|
+
var _a, _b, _c;
|
|
479
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listCustomerTags(project, platformId, pageToken, pageSize, search, options);
|
|
480
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
481
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CustomersApi.listCustomerTags']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
482
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
483
|
+
});
|
|
484
|
+
},
|
|
395
485
|
/**
|
|
396
486
|
* List customers for a platform
|
|
397
487
|
* @summary List customers
|
|
@@ -405,6 +495,8 @@ const CustomersApiFp = function (configuration) {
|
|
|
405
495
|
* @param {Array<string>} [projects] Filter customers by project. In the absence of this field, all projects will be included in the export.
|
|
406
496
|
* @param {ListCustomersGenderEnum} [gender] Filter customers by gender equal to the value provided
|
|
407
497
|
* @param {Array<number>} [productTypes] Filter customers by purchased product types. In the absence of this field, all customers will be included in the export.
|
|
498
|
+
* @param {Array<string>} [demographics] Filter customers by purchase demographics. In the absence of this field, all customers will be included in the export.
|
|
499
|
+
* @param {Array<string>} [tags] Filter customers by purchase tags. In the absence of this field, all customers will be included in the export.
|
|
408
500
|
* @param {boolean} [usedDiscount] Filter customers by whether they have used a discount
|
|
409
501
|
* @param {number} [minimumTotalOrderCount] Filter customers by total order count greater than or equal to the value provided
|
|
410
502
|
* @param {number} [maximumTotalOrderCount] Filter customers by total order count less than or equal to the value provided
|
|
@@ -417,10 +509,10 @@ const CustomersApiFp = function (configuration) {
|
|
|
417
509
|
* @param {*} [options] Override http request option.
|
|
418
510
|
* @throws {RequiredError}
|
|
419
511
|
*/
|
|
420
|
-
listCustomers(project, platformId, pageToken, pageSize, search, sortBy, countries, projects, gender, productTypes, usedDiscount, minimumTotalOrderCount, maximumTotalOrderCount, minimumRefundedOrderCount, maximumRefundedOrderCount, minimumLifetimeValue, maximumLifetimeValue, lastPurchasedStart, lastPurchasedEnd, options) {
|
|
512
|
+
listCustomers(project, platformId, pageToken, pageSize, search, sortBy, countries, projects, gender, productTypes, demographics, tags, usedDiscount, minimumTotalOrderCount, maximumTotalOrderCount, minimumRefundedOrderCount, maximumRefundedOrderCount, minimumLifetimeValue, maximumLifetimeValue, lastPurchasedStart, lastPurchasedEnd, options) {
|
|
421
513
|
return __awaiter(this, void 0, void 0, function* () {
|
|
422
514
|
var _a, _b, _c;
|
|
423
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listCustomers(project, platformId, pageToken, pageSize, search, sortBy, countries, projects, gender, productTypes, usedDiscount, minimumTotalOrderCount, maximumTotalOrderCount, minimumRefundedOrderCount, maximumRefundedOrderCount, minimumLifetimeValue, maximumLifetimeValue, lastPurchasedStart, lastPurchasedEnd, options);
|
|
515
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listCustomers(project, platformId, pageToken, pageSize, search, sortBy, countries, projects, gender, productTypes, demographics, tags, usedDiscount, minimumTotalOrderCount, maximumTotalOrderCount, minimumRefundedOrderCount, maximumRefundedOrderCount, minimumLifetimeValue, maximumLifetimeValue, lastPurchasedStart, lastPurchasedEnd, options);
|
|
424
516
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
425
517
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CustomersApi.listCustomers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
426
518
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -444,7 +536,7 @@ const CustomersApiFactory = function (configuration, basePath, axios) {
|
|
|
444
536
|
* @throws {RequiredError}
|
|
445
537
|
*/
|
|
446
538
|
exportCustomers(requestParameters, options) {
|
|
447
|
-
return localVarFp.exportCustomers(requestParameters.project, requestParameters.platformId, requestParameters.sortBy, requestParameters.countries, requestParameters.projects, requestParameters.gender, requestParameters.productTypes, requestParameters.usedDiscount, requestParameters.minimumTotalOrderCount, requestParameters.maximumTotalOrderCount, requestParameters.minimumRefundedOrderCount, requestParameters.maximumRefundedOrderCount, requestParameters.minimumLifetimeValue, requestParameters.maximumLifetimeValue, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(axios, basePath));
|
|
539
|
+
return localVarFp.exportCustomers(requestParameters.project, requestParameters.platformId, requestParameters.sortBy, requestParameters.countries, requestParameters.projects, requestParameters.gender, requestParameters.productTypes, requestParameters.demographics, requestParameters.tags, requestParameters.usedDiscount, requestParameters.minimumTotalOrderCount, requestParameters.maximumTotalOrderCount, requestParameters.minimumRefundedOrderCount, requestParameters.maximumRefundedOrderCount, requestParameters.minimumLifetimeValue, requestParameters.maximumLifetimeValue, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(axios, basePath));
|
|
448
540
|
},
|
|
449
541
|
/**
|
|
450
542
|
* Get a customer for a platform by a given customer ID.
|
|
@@ -456,6 +548,16 @@ const CustomersApiFactory = function (configuration, basePath, axios) {
|
|
|
456
548
|
getCustomer(requestParameters, options) {
|
|
457
549
|
return localVarFp.getCustomer(requestParameters.project, requestParameters.platformId, requestParameters.customerId, options).then((request) => request(axios, basePath));
|
|
458
550
|
},
|
|
551
|
+
/**
|
|
552
|
+
* List customer tags
|
|
553
|
+
* @summary List customer tags
|
|
554
|
+
* @param {CustomersApiListCustomerTagsRequest} requestParameters Request parameters.
|
|
555
|
+
* @param {*} [options] Override http request option.
|
|
556
|
+
* @throws {RequiredError}
|
|
557
|
+
*/
|
|
558
|
+
listCustomerTags(requestParameters, options) {
|
|
559
|
+
return localVarFp.listCustomerTags(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
560
|
+
},
|
|
459
561
|
/**
|
|
460
562
|
* List customers for a platform
|
|
461
563
|
* @summary List customers
|
|
@@ -464,7 +566,7 @@ const CustomersApiFactory = function (configuration, basePath, axios) {
|
|
|
464
566
|
* @throws {RequiredError}
|
|
465
567
|
*/
|
|
466
568
|
listCustomers(requestParameters, options) {
|
|
467
|
-
return localVarFp.listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.countries, requestParameters.projects, requestParameters.gender, requestParameters.productTypes, requestParameters.usedDiscount, requestParameters.minimumTotalOrderCount, requestParameters.maximumTotalOrderCount, requestParameters.minimumRefundedOrderCount, requestParameters.maximumRefundedOrderCount, requestParameters.minimumLifetimeValue, requestParameters.maximumLifetimeValue, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(axios, basePath));
|
|
569
|
+
return localVarFp.listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.countries, requestParameters.projects, requestParameters.gender, requestParameters.productTypes, requestParameters.demographics, requestParameters.tags, requestParameters.usedDiscount, requestParameters.minimumTotalOrderCount, requestParameters.maximumTotalOrderCount, requestParameters.minimumRefundedOrderCount, requestParameters.maximumRefundedOrderCount, requestParameters.minimumLifetimeValue, requestParameters.maximumLifetimeValue, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(axios, basePath));
|
|
468
570
|
},
|
|
469
571
|
};
|
|
470
572
|
};
|
|
@@ -485,7 +587,7 @@ class CustomersApi extends base_1.BaseAPI {
|
|
|
485
587
|
* @memberof CustomersApi
|
|
486
588
|
*/
|
|
487
589
|
exportCustomers(requestParameters, options) {
|
|
488
|
-
return (0, exports.CustomersApiFp)(this.configuration).exportCustomers(requestParameters.project, requestParameters.platformId, requestParameters.sortBy, requestParameters.countries, requestParameters.projects, requestParameters.gender, requestParameters.productTypes, requestParameters.usedDiscount, requestParameters.minimumTotalOrderCount, requestParameters.maximumTotalOrderCount, requestParameters.minimumRefundedOrderCount, requestParameters.maximumRefundedOrderCount, requestParameters.minimumLifetimeValue, requestParameters.maximumLifetimeValue, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(this.axios, this.basePath));
|
|
590
|
+
return (0, exports.CustomersApiFp)(this.configuration).exportCustomers(requestParameters.project, requestParameters.platformId, requestParameters.sortBy, requestParameters.countries, requestParameters.projects, requestParameters.gender, requestParameters.productTypes, requestParameters.demographics, requestParameters.tags, requestParameters.usedDiscount, requestParameters.minimumTotalOrderCount, requestParameters.maximumTotalOrderCount, requestParameters.minimumRefundedOrderCount, requestParameters.maximumRefundedOrderCount, requestParameters.minimumLifetimeValue, requestParameters.maximumLifetimeValue, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(this.axios, this.basePath));
|
|
489
591
|
}
|
|
490
592
|
/**
|
|
491
593
|
* Get a customer for a platform by a given customer ID.
|
|
@@ -498,6 +600,17 @@ class CustomersApi extends base_1.BaseAPI {
|
|
|
498
600
|
getCustomer(requestParameters, options) {
|
|
499
601
|
return (0, exports.CustomersApiFp)(this.configuration).getCustomer(requestParameters.project, requestParameters.platformId, requestParameters.customerId, options).then((request) => request(this.axios, this.basePath));
|
|
500
602
|
}
|
|
603
|
+
/**
|
|
604
|
+
* List customer tags
|
|
605
|
+
* @summary List customer tags
|
|
606
|
+
* @param {CustomersApiListCustomerTagsRequest} requestParameters Request parameters.
|
|
607
|
+
* @param {*} [options] Override http request option.
|
|
608
|
+
* @throws {RequiredError}
|
|
609
|
+
* @memberof CustomersApi
|
|
610
|
+
*/
|
|
611
|
+
listCustomerTags(requestParameters, options) {
|
|
612
|
+
return (0, exports.CustomersApiFp)(this.configuration).listCustomerTags(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
613
|
+
}
|
|
501
614
|
/**
|
|
502
615
|
* List customers for a platform
|
|
503
616
|
* @summary List customers
|
|
@@ -507,7 +620,7 @@ class CustomersApi extends base_1.BaseAPI {
|
|
|
507
620
|
* @memberof CustomersApi
|
|
508
621
|
*/
|
|
509
622
|
listCustomers(requestParameters, options) {
|
|
510
|
-
return (0, exports.CustomersApiFp)(this.configuration).listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.countries, requestParameters.projects, requestParameters.gender, requestParameters.productTypes, requestParameters.usedDiscount, requestParameters.minimumTotalOrderCount, requestParameters.maximumTotalOrderCount, requestParameters.minimumRefundedOrderCount, requestParameters.maximumRefundedOrderCount, requestParameters.minimumLifetimeValue, requestParameters.maximumLifetimeValue, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(this.axios, this.basePath));
|
|
623
|
+
return (0, exports.CustomersApiFp)(this.configuration).listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.countries, requestParameters.projects, requestParameters.gender, requestParameters.productTypes, requestParameters.demographics, requestParameters.tags, requestParameters.usedDiscount, requestParameters.minimumTotalOrderCount, requestParameters.maximumTotalOrderCount, requestParameters.minimumRefundedOrderCount, requestParameters.maximumRefundedOrderCount, requestParameters.minimumLifetimeValue, requestParameters.maximumLifetimeValue, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(this.axios, this.basePath));
|
|
511
624
|
}
|
|
512
625
|
}
|
|
513
626
|
exports.CustomersApi = CustomersApi;
|
package/dist/base.d.ts
CHANGED
package/dist/base.js
CHANGED
package/dist/common.d.ts
CHANGED
package/dist/common.js
CHANGED
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.js
CHANGED