@teemill/platform 0.15.0 → 0.17.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/README.md +95 -2
- package/api.ts +879 -4
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +596 -4
- package/dist/api.js +429 -4
- 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 +596 -4
- package/dist/esm/api.js +424 -3
- 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/Address.md +35 -0
- package/docs/ApiError.md +22 -0
- package/docs/AuthorizeStripe200Response.md +20 -0
- package/docs/ContactInformation.md +23 -0
- package/docs/Customer.md +33 -0
- package/docs/CustomersApi.md +229 -0
- package/docs/CustomersResponse.md +22 -0
- package/docs/DeliveryEstimates.md +22 -0
- package/docs/ExportOrders202Response.md +20 -0
- package/docs/Fulfiller.md +23 -0
- package/docs/FulfillerLocation.md +22 -0
- package/docs/FulfillersResponse.md +22 -0
- package/docs/Fulfillment.md +34 -0
- package/docs/FulfillmentItem.md +24 -0
- package/docs/Image.md +27 -0
- package/docs/ModerateReviewRequest.md +20 -0
- package/docs/Option.md +22 -0
- package/docs/Order.md +56 -0
- package/docs/OrderItem.md +42 -0
- package/docs/OrderStatus.md +16 -0
- package/docs/OrderTracking.md +24 -0
- package/docs/OrdersApi.md +410 -0
- package/docs/OrdersResponse.md +22 -0
- package/docs/Origin.md +22 -0
- package/docs/PaymentAccount.md +24 -0
- package/docs/PaymentApi.md +178 -0
- package/docs/PaymentAttempt.md +29 -0
- package/docs/Platform.md +38 -0
- package/docs/PlatformApi.md +122 -0
- package/docs/PlatformLogo.md +22 -0
- package/docs/Price.md +23 -0
- package/docs/Project.md +22 -0
- package/docs/Review.md +40 -0
- package/docs/ReviewAuthor.md +22 -0
- package/docs/ReviewImagesInner.md +22 -0
- package/docs/ReviewProduct.md +23 -0
- package/docs/ReviewReply.md +26 -0
- package/docs/ReviewReplyAuthor.md +20 -0
- package/docs/ReviewsApi.md +278 -0
- package/docs/ReviewsResponse.md +22 -0
- package/docs/ShippingMethod.md +34 -0
- package/docs/Statistics.md +24 -0
- package/docs/StatusHistoryItem.md +22 -0
- package/docs/UpdateFulfillmentRequest.md +20 -0
- package/docs/UpdatePlatformRequest.md +32 -0
- package/docs/ValidationError.md +20 -0
- package/docs/Variant.md +24 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/base.ts
CHANGED
package/common.ts
CHANGED
package/configuration.ts
CHANGED
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.17.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -387,6 +387,19 @@ export interface Image {
|
|
|
387
387
|
*/
|
|
388
388
|
'sortOrder'?: number;
|
|
389
389
|
}
|
|
390
|
+
/**
|
|
391
|
+
*
|
|
392
|
+
* @export
|
|
393
|
+
* @interface ModerateReviewRequest
|
|
394
|
+
*/
|
|
395
|
+
export interface ModerateReviewRequest {
|
|
396
|
+
/**
|
|
397
|
+
* Whether the review has been approved or not. If the review is not enabled, it will not be visible to the public.
|
|
398
|
+
* @type {boolean}
|
|
399
|
+
* @memberof ModerateReviewRequest
|
|
400
|
+
*/
|
|
401
|
+
'enabled'?: boolean;
|
|
402
|
+
}
|
|
390
403
|
/**
|
|
391
404
|
*
|
|
392
405
|
* @export
|
|
@@ -520,6 +533,12 @@ export interface Order {
|
|
|
520
533
|
* @memberof Order
|
|
521
534
|
*/
|
|
522
535
|
'project': Project;
|
|
536
|
+
/**
|
|
537
|
+
*
|
|
538
|
+
* @type {Array<PaymentAttempt>}
|
|
539
|
+
* @memberof Order
|
|
540
|
+
*/
|
|
541
|
+
'paymentAttempts'?: Array<PaymentAttempt>;
|
|
523
542
|
}
|
|
524
543
|
/**
|
|
525
544
|
*
|
|
@@ -708,6 +727,56 @@ export declare const PaymentAccountMethodEnum: {
|
|
|
708
727
|
readonly Stripe: "stripe";
|
|
709
728
|
};
|
|
710
729
|
export type PaymentAccountMethodEnum = typeof PaymentAccountMethodEnum[keyof typeof PaymentAccountMethodEnum];
|
|
730
|
+
/**
|
|
731
|
+
* List of payment attempts for this order
|
|
732
|
+
* @export
|
|
733
|
+
* @interface PaymentAttempt
|
|
734
|
+
*/
|
|
735
|
+
export interface PaymentAttempt {
|
|
736
|
+
/**
|
|
737
|
+
*
|
|
738
|
+
* @type {string}
|
|
739
|
+
* @memberof PaymentAttempt
|
|
740
|
+
*/
|
|
741
|
+
'paymentProvider'?: PaymentAttemptPaymentProviderEnum;
|
|
742
|
+
/**
|
|
743
|
+
*
|
|
744
|
+
* @type {string}
|
|
745
|
+
* @memberof PaymentAttempt
|
|
746
|
+
*/
|
|
747
|
+
'status'?: PaymentAttemptStatusEnum;
|
|
748
|
+
/**
|
|
749
|
+
*
|
|
750
|
+
* @type {string}
|
|
751
|
+
* @memberof PaymentAttempt
|
|
752
|
+
*/
|
|
753
|
+
'transactionId'?: string | null;
|
|
754
|
+
/**
|
|
755
|
+
*
|
|
756
|
+
* @type {string}
|
|
757
|
+
* @memberof PaymentAttempt
|
|
758
|
+
*/
|
|
759
|
+
'message'?: string;
|
|
760
|
+
/**
|
|
761
|
+
* ISO 8601 Timestamp
|
|
762
|
+
* @type {string}
|
|
763
|
+
* @memberof PaymentAttempt
|
|
764
|
+
*/
|
|
765
|
+
'createdAt'?: string;
|
|
766
|
+
}
|
|
767
|
+
export declare const PaymentAttemptPaymentProviderEnum: {
|
|
768
|
+
readonly Stripe: "stripe";
|
|
769
|
+
readonly Paypal: "paypal";
|
|
770
|
+
readonly Wallet: "wallet";
|
|
771
|
+
};
|
|
772
|
+
export type PaymentAttemptPaymentProviderEnum = typeof PaymentAttemptPaymentProviderEnum[keyof typeof PaymentAttemptPaymentProviderEnum];
|
|
773
|
+
export declare const PaymentAttemptStatusEnum: {
|
|
774
|
+
readonly Success: "success";
|
|
775
|
+
readonly Failed: "failed";
|
|
776
|
+
readonly Pending: "pending";
|
|
777
|
+
readonly Cancelled: "cancelled";
|
|
778
|
+
};
|
|
779
|
+
export type PaymentAttemptStatusEnum = typeof PaymentAttemptStatusEnum[keyof typeof PaymentAttemptStatusEnum];
|
|
711
780
|
/**
|
|
712
781
|
*
|
|
713
782
|
* @export
|
|
@@ -834,6 +903,199 @@ export interface Project {
|
|
|
834
903
|
*/
|
|
835
904
|
'name': string;
|
|
836
905
|
}
|
|
906
|
+
/**
|
|
907
|
+
*
|
|
908
|
+
* @export
|
|
909
|
+
* @interface Review
|
|
910
|
+
*/
|
|
911
|
+
export interface Review {
|
|
912
|
+
/**
|
|
913
|
+
* Unique object identifier
|
|
914
|
+
* @type {string}
|
|
915
|
+
* @memberof Review
|
|
916
|
+
*/
|
|
917
|
+
'id': string;
|
|
918
|
+
/**
|
|
919
|
+
* Text content of the review
|
|
920
|
+
* @type {string}
|
|
921
|
+
* @memberof Review
|
|
922
|
+
*/
|
|
923
|
+
'text': string;
|
|
924
|
+
/**
|
|
925
|
+
*
|
|
926
|
+
* @type {ReviewProduct}
|
|
927
|
+
* @memberof Review
|
|
928
|
+
*/
|
|
929
|
+
'product'?: ReviewProduct;
|
|
930
|
+
/**
|
|
931
|
+
*
|
|
932
|
+
* @type {ReviewAuthor}
|
|
933
|
+
* @memberof Review
|
|
934
|
+
*/
|
|
935
|
+
'author'?: ReviewAuthor;
|
|
936
|
+
/**
|
|
937
|
+
* Rating of the review
|
|
938
|
+
* @type {number}
|
|
939
|
+
* @memberof Review
|
|
940
|
+
*/
|
|
941
|
+
'rating'?: number;
|
|
942
|
+
/**
|
|
943
|
+
* Google\'s sentiment analysis score
|
|
944
|
+
* @type {number}
|
|
945
|
+
* @memberof Review
|
|
946
|
+
*/
|
|
947
|
+
'sentiment'?: number;
|
|
948
|
+
/**
|
|
949
|
+
* Whether the review has been approved or not. If the review is not enabled, it will not be visible to the public.
|
|
950
|
+
* @type {boolean}
|
|
951
|
+
* @memberof Review
|
|
952
|
+
*/
|
|
953
|
+
'enabled': boolean;
|
|
954
|
+
/**
|
|
955
|
+
*
|
|
956
|
+
* @type {string}
|
|
957
|
+
* @memberof Review
|
|
958
|
+
*/
|
|
959
|
+
'createdAt'?: string;
|
|
960
|
+
/**
|
|
961
|
+
*
|
|
962
|
+
* @type {Project}
|
|
963
|
+
* @memberof Review
|
|
964
|
+
*/
|
|
965
|
+
'project': Project;
|
|
966
|
+
/**
|
|
967
|
+
*
|
|
968
|
+
* @type {Array<ReviewImagesInner>}
|
|
969
|
+
* @memberof Review
|
|
970
|
+
*/
|
|
971
|
+
'images'?: Array<ReviewImagesInner>;
|
|
972
|
+
/**
|
|
973
|
+
*
|
|
974
|
+
* @type {Array<ReviewReply>}
|
|
975
|
+
* @memberof Review
|
|
976
|
+
*/
|
|
977
|
+
'replies'?: Array<ReviewReply>;
|
|
978
|
+
}
|
|
979
|
+
/**
|
|
980
|
+
*
|
|
981
|
+
* @export
|
|
982
|
+
* @interface ReviewAuthor
|
|
983
|
+
*/
|
|
984
|
+
export interface ReviewAuthor {
|
|
985
|
+
/**
|
|
986
|
+
* Name of the review\'s author
|
|
987
|
+
* @type {string}
|
|
988
|
+
* @memberof ReviewAuthor
|
|
989
|
+
*/
|
|
990
|
+
'name'?: string;
|
|
991
|
+
/**
|
|
992
|
+
* Email of the review\'s author
|
|
993
|
+
* @type {string}
|
|
994
|
+
* @memberof ReviewAuthor
|
|
995
|
+
*/
|
|
996
|
+
'email'?: string;
|
|
997
|
+
}
|
|
998
|
+
/**
|
|
999
|
+
*
|
|
1000
|
+
* @export
|
|
1001
|
+
* @interface ReviewImagesInner
|
|
1002
|
+
*/
|
|
1003
|
+
export interface ReviewImagesInner {
|
|
1004
|
+
/**
|
|
1005
|
+
* URL of the image
|
|
1006
|
+
* @type {string}
|
|
1007
|
+
* @memberof ReviewImagesInner
|
|
1008
|
+
*/
|
|
1009
|
+
'src'?: string;
|
|
1010
|
+
/**
|
|
1011
|
+
* Alternative text for the image
|
|
1012
|
+
* @type {string}
|
|
1013
|
+
* @memberof ReviewImagesInner
|
|
1014
|
+
*/
|
|
1015
|
+
'alt'?: string;
|
|
1016
|
+
}
|
|
1017
|
+
/**
|
|
1018
|
+
* The product that the review is for
|
|
1019
|
+
* @export
|
|
1020
|
+
* @interface ReviewProduct
|
|
1021
|
+
*/
|
|
1022
|
+
export interface ReviewProduct {
|
|
1023
|
+
/**
|
|
1024
|
+
* Unique object identifier
|
|
1025
|
+
* @type {string}
|
|
1026
|
+
* @memberof ReviewProduct
|
|
1027
|
+
*/
|
|
1028
|
+
'id'?: string;
|
|
1029
|
+
/**
|
|
1030
|
+
* The title of the product
|
|
1031
|
+
* @type {string}
|
|
1032
|
+
* @memberof ReviewProduct
|
|
1033
|
+
*/
|
|
1034
|
+
'title'?: string;
|
|
1035
|
+
}
|
|
1036
|
+
/**
|
|
1037
|
+
*
|
|
1038
|
+
* @export
|
|
1039
|
+
* @interface ReviewReply
|
|
1040
|
+
*/
|
|
1041
|
+
export interface ReviewReply {
|
|
1042
|
+
/**
|
|
1043
|
+
* Unique object identifier
|
|
1044
|
+
* @type {string}
|
|
1045
|
+
* @memberof ReviewReply
|
|
1046
|
+
*/
|
|
1047
|
+
'id': string;
|
|
1048
|
+
/**
|
|
1049
|
+
* Text content of the reply
|
|
1050
|
+
* @type {string}
|
|
1051
|
+
* @memberof ReviewReply
|
|
1052
|
+
*/
|
|
1053
|
+
'text': string;
|
|
1054
|
+
/**
|
|
1055
|
+
*
|
|
1056
|
+
* @type {ReviewReplyAuthor}
|
|
1057
|
+
* @memberof ReviewReply
|
|
1058
|
+
*/
|
|
1059
|
+
'author'?: ReviewReplyAuthor;
|
|
1060
|
+
/**
|
|
1061
|
+
*
|
|
1062
|
+
* @type {string}
|
|
1063
|
+
* @memberof ReviewReply
|
|
1064
|
+
*/
|
|
1065
|
+
'createdAt'?: string;
|
|
1066
|
+
}
|
|
1067
|
+
/**
|
|
1068
|
+
*
|
|
1069
|
+
* @export
|
|
1070
|
+
* @interface ReviewReplyAuthor
|
|
1071
|
+
*/
|
|
1072
|
+
export interface ReviewReplyAuthor {
|
|
1073
|
+
/**
|
|
1074
|
+
* Name of the reply\'s author
|
|
1075
|
+
* @type {string}
|
|
1076
|
+
* @memberof ReviewReplyAuthor
|
|
1077
|
+
*/
|
|
1078
|
+
'name'?: string;
|
|
1079
|
+
}
|
|
1080
|
+
/**
|
|
1081
|
+
*
|
|
1082
|
+
* @export
|
|
1083
|
+
* @interface ReviewsResponse
|
|
1084
|
+
*/
|
|
1085
|
+
export interface ReviewsResponse {
|
|
1086
|
+
/**
|
|
1087
|
+
*
|
|
1088
|
+
* @type {Array<Review>}
|
|
1089
|
+
* @memberof ReviewsResponse
|
|
1090
|
+
*/
|
|
1091
|
+
'reviews'?: Array<Review>;
|
|
1092
|
+
/**
|
|
1093
|
+
* The token referencing the next page number
|
|
1094
|
+
* @type {number}
|
|
1095
|
+
* @memberof ReviewsResponse
|
|
1096
|
+
*/
|
|
1097
|
+
'nextPageToken'?: number | null;
|
|
1098
|
+
}
|
|
837
1099
|
/**
|
|
838
1100
|
*
|
|
839
1101
|
* @export
|
|
@@ -1069,7 +1331,7 @@ export declare const CustomersApiAxiosParamCreator: (configuration?: Configurati
|
|
|
1069
1331
|
* @param {string} platformId The platform identifier
|
|
1070
1332
|
* @param {number} [pageToken] Page reference token
|
|
1071
1333
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1072
|
-
* @param {string} [search] Search term to filter
|
|
1334
|
+
* @param {string} [search] Search term to filter results
|
|
1073
1335
|
* @param {Array<ListCustomersSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
1074
1336
|
* @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
|
|
1075
1337
|
* @param {number} [lifetimeValue] Filter customers by lifetime value less than or equal to the value provided
|
|
@@ -1116,7 +1378,7 @@ export declare const CustomersApiFp: (configuration?: Configuration) => {
|
|
|
1116
1378
|
* @param {string} platformId The platform identifier
|
|
1117
1379
|
* @param {number} [pageToken] Page reference token
|
|
1118
1380
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1119
|
-
* @param {string} [search] Search term to filter
|
|
1381
|
+
* @param {string} [search] Search term to filter results
|
|
1120
1382
|
* @param {Array<ListCustomersSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
1121
1383
|
* @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
|
|
1122
1384
|
* @param {number} [lifetimeValue] Filter customers by lifetime value less than or equal to the value provided
|
|
@@ -1262,7 +1524,7 @@ export interface CustomersApiListCustomersRequest {
|
|
|
1262
1524
|
*/
|
|
1263
1525
|
readonly pageSize?: number;
|
|
1264
1526
|
/**
|
|
1265
|
-
* Search term to filter
|
|
1527
|
+
* Search term to filter results
|
|
1266
1528
|
* @type {string}
|
|
1267
1529
|
* @memberof CustomersApiListCustomers
|
|
1268
1530
|
*/
|
|
@@ -2118,3 +2380,333 @@ export declare class PlatformApi extends BaseAPI {
|
|
|
2118
2380
|
*/
|
|
2119
2381
|
updatePlatform(requestParameters: PlatformApiUpdatePlatformRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Platform, any>>;
|
|
2120
2382
|
}
|
|
2383
|
+
/**
|
|
2384
|
+
* ReviewsApi - axios parameter creator
|
|
2385
|
+
* @export
|
|
2386
|
+
*/
|
|
2387
|
+
export declare const ReviewsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
2388
|
+
/**
|
|
2389
|
+
* Export reviews as a CSV file.
|
|
2390
|
+
* @summary Export reviews
|
|
2391
|
+
* @param {string} project Project unique identifier
|
|
2392
|
+
* @param {string} platformId The platform identifier
|
|
2393
|
+
* @param {string} start Start of date range to filter by
|
|
2394
|
+
* @param {string} [end] End of date range to filter by
|
|
2395
|
+
* @param {*} [options] Override http request option.
|
|
2396
|
+
* @throws {RequiredError}
|
|
2397
|
+
*/
|
|
2398
|
+
exportReviews: (project: string, platformId: string, start: string, end?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2399
|
+
/**
|
|
2400
|
+
* Get a review left on a platform by a given review ID.
|
|
2401
|
+
* @summary Get review
|
|
2402
|
+
* @param {string} project Project unique identifier
|
|
2403
|
+
* @param {string} platformId The platform identifier
|
|
2404
|
+
* @param {string} reviewId The review identifier
|
|
2405
|
+
* @param {*} [options] Override http request option.
|
|
2406
|
+
* @throws {RequiredError}
|
|
2407
|
+
*/
|
|
2408
|
+
getReview: (project: string, platformId: string, reviewId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2409
|
+
/**
|
|
2410
|
+
* List reviews left on projects belonging to this platform, paginated into configurable chunks.
|
|
2411
|
+
* @summary List reviews
|
|
2412
|
+
* @param {string} project Project unique identifier
|
|
2413
|
+
* @param {string} platformId The platform identifier
|
|
2414
|
+
* @param {number} [pageToken] Page reference token
|
|
2415
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
2416
|
+
* @param {string} [search] Search term to filter results
|
|
2417
|
+
* @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
2418
|
+
* @param {string} [start] Start of date range to filter by
|
|
2419
|
+
* @param {string} [end] End of date range to filter by
|
|
2420
|
+
* @param {*} [options] Override http request option.
|
|
2421
|
+
* @throws {RequiredError}
|
|
2422
|
+
*/
|
|
2423
|
+
listReviews: (project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, sortBy?: Array<string>, start?: string, end?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2424
|
+
/**
|
|
2425
|
+
* Moderate a review left on a platform.
|
|
2426
|
+
* @summary Moderate review
|
|
2427
|
+
* @param {string} project Project unique identifier
|
|
2428
|
+
* @param {string} platformId The platform identifier
|
|
2429
|
+
* @param {string} reviewId The review identifier
|
|
2430
|
+
* @param {ModerateReviewRequest} [moderateReviewRequest]
|
|
2431
|
+
* @param {*} [options] Override http request option.
|
|
2432
|
+
* @throws {RequiredError}
|
|
2433
|
+
*/
|
|
2434
|
+
moderateReview: (project: string, platformId: string, reviewId: string, moderateReviewRequest?: ModerateReviewRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2435
|
+
};
|
|
2436
|
+
/**
|
|
2437
|
+
* ReviewsApi - functional programming interface
|
|
2438
|
+
* @export
|
|
2439
|
+
*/
|
|
2440
|
+
export declare const ReviewsApiFp: (configuration?: Configuration) => {
|
|
2441
|
+
/**
|
|
2442
|
+
* Export reviews as a CSV file.
|
|
2443
|
+
* @summary Export reviews
|
|
2444
|
+
* @param {string} project Project unique identifier
|
|
2445
|
+
* @param {string} platformId The platform identifier
|
|
2446
|
+
* @param {string} start Start of date range to filter by
|
|
2447
|
+
* @param {string} [end] End of date range to filter by
|
|
2448
|
+
* @param {*} [options] Override http request option.
|
|
2449
|
+
* @throws {RequiredError}
|
|
2450
|
+
*/
|
|
2451
|
+
exportReviews(project: string, platformId: string, start: string, end?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
|
|
2452
|
+
/**
|
|
2453
|
+
* Get a review left on a platform by a given review ID.
|
|
2454
|
+
* @summary Get review
|
|
2455
|
+
* @param {string} project Project unique identifier
|
|
2456
|
+
* @param {string} platformId The platform identifier
|
|
2457
|
+
* @param {string} reviewId The review identifier
|
|
2458
|
+
* @param {*} [options] Override http request option.
|
|
2459
|
+
* @throws {RequiredError}
|
|
2460
|
+
*/
|
|
2461
|
+
getReview(project: string, platformId: string, reviewId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Review>>;
|
|
2462
|
+
/**
|
|
2463
|
+
* List reviews left on projects belonging to this platform, paginated into configurable chunks.
|
|
2464
|
+
* @summary List reviews
|
|
2465
|
+
* @param {string} project Project unique identifier
|
|
2466
|
+
* @param {string} platformId The platform identifier
|
|
2467
|
+
* @param {number} [pageToken] Page reference token
|
|
2468
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
2469
|
+
* @param {string} [search] Search term to filter results
|
|
2470
|
+
* @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
2471
|
+
* @param {string} [start] Start of date range to filter by
|
|
2472
|
+
* @param {string} [end] End of date range to filter by
|
|
2473
|
+
* @param {*} [options] Override http request option.
|
|
2474
|
+
* @throws {RequiredError}
|
|
2475
|
+
*/
|
|
2476
|
+
listReviews(project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, sortBy?: Array<string>, start?: string, end?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReviewsResponse>>;
|
|
2477
|
+
/**
|
|
2478
|
+
* Moderate a review left on a platform.
|
|
2479
|
+
* @summary Moderate review
|
|
2480
|
+
* @param {string} project Project unique identifier
|
|
2481
|
+
* @param {string} platformId The platform identifier
|
|
2482
|
+
* @param {string} reviewId The review identifier
|
|
2483
|
+
* @param {ModerateReviewRequest} [moderateReviewRequest]
|
|
2484
|
+
* @param {*} [options] Override http request option.
|
|
2485
|
+
* @throws {RequiredError}
|
|
2486
|
+
*/
|
|
2487
|
+
moderateReview(project: string, platformId: string, reviewId: string, moderateReviewRequest?: ModerateReviewRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Review>>;
|
|
2488
|
+
};
|
|
2489
|
+
/**
|
|
2490
|
+
* ReviewsApi - factory interface
|
|
2491
|
+
* @export
|
|
2492
|
+
*/
|
|
2493
|
+
export declare const ReviewsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
2494
|
+
/**
|
|
2495
|
+
* Export reviews as a CSV file.
|
|
2496
|
+
* @summary Export reviews
|
|
2497
|
+
* @param {ReviewsApiExportReviewsRequest} requestParameters Request parameters.
|
|
2498
|
+
* @param {*} [options] Override http request option.
|
|
2499
|
+
* @throws {RequiredError}
|
|
2500
|
+
*/
|
|
2501
|
+
exportReviews(requestParameters: ReviewsApiExportReviewsRequest, options?: RawAxiosRequestConfig): AxiosPromise<File>;
|
|
2502
|
+
/**
|
|
2503
|
+
* Get a review left on a platform by a given review ID.
|
|
2504
|
+
* @summary Get review
|
|
2505
|
+
* @param {ReviewsApiGetReviewRequest} requestParameters Request parameters.
|
|
2506
|
+
* @param {*} [options] Override http request option.
|
|
2507
|
+
* @throws {RequiredError}
|
|
2508
|
+
*/
|
|
2509
|
+
getReview(requestParameters: ReviewsApiGetReviewRequest, options?: RawAxiosRequestConfig): AxiosPromise<Review>;
|
|
2510
|
+
/**
|
|
2511
|
+
* List reviews left on projects belonging to this platform, paginated into configurable chunks.
|
|
2512
|
+
* @summary List reviews
|
|
2513
|
+
* @param {ReviewsApiListReviewsRequest} requestParameters Request parameters.
|
|
2514
|
+
* @param {*} [options] Override http request option.
|
|
2515
|
+
* @throws {RequiredError}
|
|
2516
|
+
*/
|
|
2517
|
+
listReviews(requestParameters: ReviewsApiListReviewsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReviewsResponse>;
|
|
2518
|
+
/**
|
|
2519
|
+
* Moderate a review left on a platform.
|
|
2520
|
+
* @summary Moderate review
|
|
2521
|
+
* @param {ReviewsApiModerateReviewRequest} requestParameters Request parameters.
|
|
2522
|
+
* @param {*} [options] Override http request option.
|
|
2523
|
+
* @throws {RequiredError}
|
|
2524
|
+
*/
|
|
2525
|
+
moderateReview(requestParameters: ReviewsApiModerateReviewRequest, options?: RawAxiosRequestConfig): AxiosPromise<Review>;
|
|
2526
|
+
};
|
|
2527
|
+
/**
|
|
2528
|
+
* Request parameters for exportReviews operation in ReviewsApi.
|
|
2529
|
+
* @export
|
|
2530
|
+
* @interface ReviewsApiExportReviewsRequest
|
|
2531
|
+
*/
|
|
2532
|
+
export interface ReviewsApiExportReviewsRequest {
|
|
2533
|
+
/**
|
|
2534
|
+
* Project unique identifier
|
|
2535
|
+
* @type {string}
|
|
2536
|
+
* @memberof ReviewsApiExportReviews
|
|
2537
|
+
*/
|
|
2538
|
+
readonly project: string;
|
|
2539
|
+
/**
|
|
2540
|
+
* The platform identifier
|
|
2541
|
+
* @type {string}
|
|
2542
|
+
* @memberof ReviewsApiExportReviews
|
|
2543
|
+
*/
|
|
2544
|
+
readonly platformId: string;
|
|
2545
|
+
/**
|
|
2546
|
+
* Start of date range to filter by
|
|
2547
|
+
* @type {string}
|
|
2548
|
+
* @memberof ReviewsApiExportReviews
|
|
2549
|
+
*/
|
|
2550
|
+
readonly start: string;
|
|
2551
|
+
/**
|
|
2552
|
+
* End of date range to filter by
|
|
2553
|
+
* @type {string}
|
|
2554
|
+
* @memberof ReviewsApiExportReviews
|
|
2555
|
+
*/
|
|
2556
|
+
readonly end?: string;
|
|
2557
|
+
}
|
|
2558
|
+
/**
|
|
2559
|
+
* Request parameters for getReview operation in ReviewsApi.
|
|
2560
|
+
* @export
|
|
2561
|
+
* @interface ReviewsApiGetReviewRequest
|
|
2562
|
+
*/
|
|
2563
|
+
export interface ReviewsApiGetReviewRequest {
|
|
2564
|
+
/**
|
|
2565
|
+
* Project unique identifier
|
|
2566
|
+
* @type {string}
|
|
2567
|
+
* @memberof ReviewsApiGetReview
|
|
2568
|
+
*/
|
|
2569
|
+
readonly project: string;
|
|
2570
|
+
/**
|
|
2571
|
+
* The platform identifier
|
|
2572
|
+
* @type {string}
|
|
2573
|
+
* @memberof ReviewsApiGetReview
|
|
2574
|
+
*/
|
|
2575
|
+
readonly platformId: string;
|
|
2576
|
+
/**
|
|
2577
|
+
* The review identifier
|
|
2578
|
+
* @type {string}
|
|
2579
|
+
* @memberof ReviewsApiGetReview
|
|
2580
|
+
*/
|
|
2581
|
+
readonly reviewId: string;
|
|
2582
|
+
}
|
|
2583
|
+
/**
|
|
2584
|
+
* Request parameters for listReviews operation in ReviewsApi.
|
|
2585
|
+
* @export
|
|
2586
|
+
* @interface ReviewsApiListReviewsRequest
|
|
2587
|
+
*/
|
|
2588
|
+
export interface ReviewsApiListReviewsRequest {
|
|
2589
|
+
/**
|
|
2590
|
+
* Project unique identifier
|
|
2591
|
+
* @type {string}
|
|
2592
|
+
* @memberof ReviewsApiListReviews
|
|
2593
|
+
*/
|
|
2594
|
+
readonly project: string;
|
|
2595
|
+
/**
|
|
2596
|
+
* The platform identifier
|
|
2597
|
+
* @type {string}
|
|
2598
|
+
* @memberof ReviewsApiListReviews
|
|
2599
|
+
*/
|
|
2600
|
+
readonly platformId: string;
|
|
2601
|
+
/**
|
|
2602
|
+
* Page reference token
|
|
2603
|
+
* @type {number}
|
|
2604
|
+
* @memberof ReviewsApiListReviews
|
|
2605
|
+
*/
|
|
2606
|
+
readonly pageToken?: number;
|
|
2607
|
+
/**
|
|
2608
|
+
* Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
2609
|
+
* @type {number}
|
|
2610
|
+
* @memberof ReviewsApiListReviews
|
|
2611
|
+
*/
|
|
2612
|
+
readonly pageSize?: number;
|
|
2613
|
+
/**
|
|
2614
|
+
* Search term to filter results
|
|
2615
|
+
* @type {string}
|
|
2616
|
+
* @memberof ReviewsApiListReviews
|
|
2617
|
+
*/
|
|
2618
|
+
readonly search?: string;
|
|
2619
|
+
/**
|
|
2620
|
+
* An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
2621
|
+
* @type {Array<string>}
|
|
2622
|
+
* @memberof ReviewsApiListReviews
|
|
2623
|
+
*/
|
|
2624
|
+
readonly sortBy?: Array<string>;
|
|
2625
|
+
/**
|
|
2626
|
+
* Start of date range to filter by
|
|
2627
|
+
* @type {string}
|
|
2628
|
+
* @memberof ReviewsApiListReviews
|
|
2629
|
+
*/
|
|
2630
|
+
readonly start?: string;
|
|
2631
|
+
/**
|
|
2632
|
+
* End of date range to filter by
|
|
2633
|
+
* @type {string}
|
|
2634
|
+
* @memberof ReviewsApiListReviews
|
|
2635
|
+
*/
|
|
2636
|
+
readonly end?: string;
|
|
2637
|
+
}
|
|
2638
|
+
/**
|
|
2639
|
+
* Request parameters for moderateReview operation in ReviewsApi.
|
|
2640
|
+
* @export
|
|
2641
|
+
* @interface ReviewsApiModerateReviewRequest
|
|
2642
|
+
*/
|
|
2643
|
+
export interface ReviewsApiModerateReviewRequest {
|
|
2644
|
+
/**
|
|
2645
|
+
* Project unique identifier
|
|
2646
|
+
* @type {string}
|
|
2647
|
+
* @memberof ReviewsApiModerateReview
|
|
2648
|
+
*/
|
|
2649
|
+
readonly project: string;
|
|
2650
|
+
/**
|
|
2651
|
+
* The platform identifier
|
|
2652
|
+
* @type {string}
|
|
2653
|
+
* @memberof ReviewsApiModerateReview
|
|
2654
|
+
*/
|
|
2655
|
+
readonly platformId: string;
|
|
2656
|
+
/**
|
|
2657
|
+
* The review identifier
|
|
2658
|
+
* @type {string}
|
|
2659
|
+
* @memberof ReviewsApiModerateReview
|
|
2660
|
+
*/
|
|
2661
|
+
readonly reviewId: string;
|
|
2662
|
+
/**
|
|
2663
|
+
*
|
|
2664
|
+
* @type {ModerateReviewRequest}
|
|
2665
|
+
* @memberof ReviewsApiModerateReview
|
|
2666
|
+
*/
|
|
2667
|
+
readonly moderateReviewRequest?: ModerateReviewRequest;
|
|
2668
|
+
}
|
|
2669
|
+
/**
|
|
2670
|
+
* ReviewsApi - object-oriented interface
|
|
2671
|
+
* @export
|
|
2672
|
+
* @class ReviewsApi
|
|
2673
|
+
* @extends {BaseAPI}
|
|
2674
|
+
*/
|
|
2675
|
+
export declare class ReviewsApi extends BaseAPI {
|
|
2676
|
+
/**
|
|
2677
|
+
* Export reviews as a CSV file.
|
|
2678
|
+
* @summary Export reviews
|
|
2679
|
+
* @param {ReviewsApiExportReviewsRequest} requestParameters Request parameters.
|
|
2680
|
+
* @param {*} [options] Override http request option.
|
|
2681
|
+
* @throws {RequiredError}
|
|
2682
|
+
* @memberof ReviewsApi
|
|
2683
|
+
*/
|
|
2684
|
+
exportReviews(requestParameters: ReviewsApiExportReviewsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any>>;
|
|
2685
|
+
/**
|
|
2686
|
+
* Get a review left on a platform by a given review ID.
|
|
2687
|
+
* @summary Get review
|
|
2688
|
+
* @param {ReviewsApiGetReviewRequest} requestParameters Request parameters.
|
|
2689
|
+
* @param {*} [options] Override http request option.
|
|
2690
|
+
* @throws {RequiredError}
|
|
2691
|
+
* @memberof ReviewsApi
|
|
2692
|
+
*/
|
|
2693
|
+
getReview(requestParameters: ReviewsApiGetReviewRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Review, any>>;
|
|
2694
|
+
/**
|
|
2695
|
+
* List reviews left on projects belonging to this platform, paginated into configurable chunks.
|
|
2696
|
+
* @summary List reviews
|
|
2697
|
+
* @param {ReviewsApiListReviewsRequest} requestParameters Request parameters.
|
|
2698
|
+
* @param {*} [options] Override http request option.
|
|
2699
|
+
* @throws {RequiredError}
|
|
2700
|
+
* @memberof ReviewsApi
|
|
2701
|
+
*/
|
|
2702
|
+
listReviews(requestParameters: ReviewsApiListReviewsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReviewsResponse, any>>;
|
|
2703
|
+
/**
|
|
2704
|
+
* Moderate a review left on a platform.
|
|
2705
|
+
* @summary Moderate review
|
|
2706
|
+
* @param {ReviewsApiModerateReviewRequest} requestParameters Request parameters.
|
|
2707
|
+
* @param {*} [options] Override http request option.
|
|
2708
|
+
* @throws {RequiredError}
|
|
2709
|
+
* @memberof ReviewsApi
|
|
2710
|
+
*/
|
|
2711
|
+
moderateReview(requestParameters: ReviewsApiModerateReviewRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Review, any>>;
|
|
2712
|
+
}
|