@teemill/platform 0.30.5 → 0.31.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 +10 -2
- package/api.ts +372 -2
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +276 -2
- package/dist/api.js +124 -2
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +276 -2
- package/dist/esm/api.js +123 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AmendmentLog.md +30 -0
- package/docs/BulkCreateReviewPayload.md +20 -0
- package/docs/BulkCreatedReviews.md +20 -0
- package/docs/CreateReview201Response.md +42 -0
- package/docs/CreateReviewPayload.md +34 -0
- package/docs/CreateReviewPayloadAuthor.md +22 -0
- package/docs/CreateReviewRequest.md +36 -0
- package/docs/OrderItem.md +2 -0
- package/docs/ReviewsApi.md +81 -0
- 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.31.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -117,6 +117,54 @@ export declare const AmendOrderRequestAmendmentsInnerActionEnum: {
|
|
|
117
117
|
readonly Exchange: "exchange";
|
|
118
118
|
};
|
|
119
119
|
export type AmendOrderRequestAmendmentsInnerActionEnum = typeof AmendOrderRequestAmendmentsInnerActionEnum[keyof typeof AmendOrderRequestAmendmentsInnerActionEnum];
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @export
|
|
123
|
+
* @interface AmendmentLog
|
|
124
|
+
*/
|
|
125
|
+
export interface AmendmentLog {
|
|
126
|
+
/**
|
|
127
|
+
* Unique object identifier
|
|
128
|
+
* @type {string}
|
|
129
|
+
* @memberof AmendmentLog
|
|
130
|
+
*/
|
|
131
|
+
'id': string;
|
|
132
|
+
/**
|
|
133
|
+
* A reference to the order item that was amended.
|
|
134
|
+
* @type {string}
|
|
135
|
+
* @memberof AmendmentLog
|
|
136
|
+
*/
|
|
137
|
+
'orderItemId': string;
|
|
138
|
+
/**
|
|
139
|
+
* A reference to the top level order item that was amended, useful for finding the original item within a chain of exchanges, for example.
|
|
140
|
+
* @type {string}
|
|
141
|
+
* @memberof AmendmentLog
|
|
142
|
+
*/
|
|
143
|
+
'originalOrderItemId': string;
|
|
144
|
+
/**
|
|
145
|
+
*
|
|
146
|
+
* @type {string}
|
|
147
|
+
* @memberof AmendmentLog
|
|
148
|
+
*/
|
|
149
|
+
'amendmentType': AmendmentLogAmendmentTypeEnum;
|
|
150
|
+
/**
|
|
151
|
+
*
|
|
152
|
+
* @type {number}
|
|
153
|
+
* @memberof AmendmentLog
|
|
154
|
+
*/
|
|
155
|
+
'quantity': number;
|
|
156
|
+
/**
|
|
157
|
+
* ISO 8601 Timestamp
|
|
158
|
+
* @type {string}
|
|
159
|
+
* @memberof AmendmentLog
|
|
160
|
+
*/
|
|
161
|
+
'createdAt': string;
|
|
162
|
+
}
|
|
163
|
+
export declare const AmendmentLogAmendmentTypeEnum: {
|
|
164
|
+
readonly Refund: "refund";
|
|
165
|
+
readonly Exchange: "exchange";
|
|
166
|
+
};
|
|
167
|
+
export type AmendmentLogAmendmentTypeEnum = typeof AmendmentLogAmendmentTypeEnum[keyof typeof AmendmentLogAmendmentTypeEnum];
|
|
120
168
|
/**
|
|
121
169
|
*
|
|
122
170
|
* @export
|
|
@@ -136,6 +184,32 @@ export interface ApiError {
|
|
|
136
184
|
*/
|
|
137
185
|
'message': string;
|
|
138
186
|
}
|
|
187
|
+
/**
|
|
188
|
+
*
|
|
189
|
+
* @export
|
|
190
|
+
* @interface BulkCreateReviewPayload
|
|
191
|
+
*/
|
|
192
|
+
export interface BulkCreateReviewPayload {
|
|
193
|
+
/**
|
|
194
|
+
*
|
|
195
|
+
* @type {Array<CreateReviewPayload>}
|
|
196
|
+
* @memberof BulkCreateReviewPayload
|
|
197
|
+
*/
|
|
198
|
+
'reviews': Array<CreateReviewPayload>;
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
*
|
|
202
|
+
* @export
|
|
203
|
+
* @interface BulkCreatedReviews
|
|
204
|
+
*/
|
|
205
|
+
export interface BulkCreatedReviews {
|
|
206
|
+
/**
|
|
207
|
+
*
|
|
208
|
+
* @type {Array<Review>}
|
|
209
|
+
* @memberof BulkCreatedReviews
|
|
210
|
+
*/
|
|
211
|
+
'reviews': Array<Review>;
|
|
212
|
+
}
|
|
139
213
|
/**
|
|
140
214
|
*
|
|
141
215
|
* @export
|
|
@@ -344,6 +418,90 @@ export interface CreateOrderContactInformation {
|
|
|
344
418
|
*/
|
|
345
419
|
'phone'?: string | null;
|
|
346
420
|
}
|
|
421
|
+
/**
|
|
422
|
+
* @type CreateReview201Response
|
|
423
|
+
* @export
|
|
424
|
+
*/
|
|
425
|
+
export type CreateReview201Response = BulkCreatedReviews | Review;
|
|
426
|
+
/**
|
|
427
|
+
*
|
|
428
|
+
* @export
|
|
429
|
+
* @interface CreateReviewPayload
|
|
430
|
+
*/
|
|
431
|
+
export interface CreateReviewPayload {
|
|
432
|
+
/**
|
|
433
|
+
*
|
|
434
|
+
* @type {CreateReviewPayloadAuthor}
|
|
435
|
+
* @memberof CreateReviewPayload
|
|
436
|
+
*/
|
|
437
|
+
'author': CreateReviewPayloadAuthor;
|
|
438
|
+
/**
|
|
439
|
+
* The title of the review
|
|
440
|
+
* @type {string}
|
|
441
|
+
* @memberof CreateReviewPayload
|
|
442
|
+
*/
|
|
443
|
+
'title'?: string;
|
|
444
|
+
/**
|
|
445
|
+
* The text of the review
|
|
446
|
+
* @type {string}
|
|
447
|
+
* @memberof CreateReviewPayload
|
|
448
|
+
*/
|
|
449
|
+
'text': string;
|
|
450
|
+
/**
|
|
451
|
+
* A reference to the product being ordered
|
|
452
|
+
* @type {string}
|
|
453
|
+
* @memberof CreateReviewPayload
|
|
454
|
+
*/
|
|
455
|
+
'productRef': string;
|
|
456
|
+
/**
|
|
457
|
+
* The rating of the review
|
|
458
|
+
* @type {number}
|
|
459
|
+
* @memberof CreateReviewPayload
|
|
460
|
+
*/
|
|
461
|
+
'rating': number;
|
|
462
|
+
/**
|
|
463
|
+
*
|
|
464
|
+
* @type {Array<Image>}
|
|
465
|
+
* @memberof CreateReviewPayload
|
|
466
|
+
*/
|
|
467
|
+
'images'?: Array<Image>;
|
|
468
|
+
/**
|
|
469
|
+
* Whether the review has been approved or not. If the review is not enabled, it will not be visible to the public.
|
|
470
|
+
* @type {boolean}
|
|
471
|
+
* @memberof CreateReviewPayload
|
|
472
|
+
*/
|
|
473
|
+
'enabled': boolean;
|
|
474
|
+
/**
|
|
475
|
+
* A reference to the project being ordered
|
|
476
|
+
* @type {string}
|
|
477
|
+
* @memberof CreateReviewPayload
|
|
478
|
+
*/
|
|
479
|
+
'projectRef': string;
|
|
480
|
+
}
|
|
481
|
+
/**
|
|
482
|
+
*
|
|
483
|
+
* @export
|
|
484
|
+
* @interface CreateReviewPayloadAuthor
|
|
485
|
+
*/
|
|
486
|
+
export interface CreateReviewPayloadAuthor {
|
|
487
|
+
/**
|
|
488
|
+
* The name of the author
|
|
489
|
+
* @type {string}
|
|
490
|
+
* @memberof CreateReviewPayloadAuthor
|
|
491
|
+
*/
|
|
492
|
+
'name'?: string;
|
|
493
|
+
/**
|
|
494
|
+
* The email of the author
|
|
495
|
+
* @type {string}
|
|
496
|
+
* @memberof CreateReviewPayloadAuthor
|
|
497
|
+
*/
|
|
498
|
+
'email'?: string;
|
|
499
|
+
}
|
|
500
|
+
/**
|
|
501
|
+
* @type CreateReviewRequest
|
|
502
|
+
* @export
|
|
503
|
+
*/
|
|
504
|
+
export type CreateReviewRequest = BulkCreateReviewPayload | CreateReviewPayload;
|
|
347
505
|
/**
|
|
348
506
|
* The customer that has placed an order on your platform
|
|
349
507
|
* @export
|
|
@@ -1169,6 +1327,12 @@ export interface OrderItem {
|
|
|
1169
1327
|
* @memberof OrderItem
|
|
1170
1328
|
*/
|
|
1171
1329
|
'recipientCost'?: Price;
|
|
1330
|
+
/**
|
|
1331
|
+
*
|
|
1332
|
+
* @type {Array<AmendmentLog>}
|
|
1333
|
+
* @memberof OrderItem
|
|
1334
|
+
*/
|
|
1335
|
+
'amendmentLogs'?: Array<AmendmentLog>;
|
|
1172
1336
|
}
|
|
1173
1337
|
/**
|
|
1174
1338
|
*
|
|
@@ -1581,7 +1745,7 @@ export interface Review {
|
|
|
1581
1745
|
* @type {Array<ReviewReply>}
|
|
1582
1746
|
* @memberof Review
|
|
1583
1747
|
*/
|
|
1584
|
-
'replies'?: Array<ReviewReply
|
|
1748
|
+
'replies'?: Array<ReviewReply> | null;
|
|
1585
1749
|
}
|
|
1586
1750
|
/**
|
|
1587
1751
|
*
|
|
@@ -4429,6 +4593,22 @@ export declare class PlatformApi extends BaseAPI {
|
|
|
4429
4593
|
* @export
|
|
4430
4594
|
*/
|
|
4431
4595
|
export declare const ReviewsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
4596
|
+
/**
|
|
4597
|
+
*
|
|
4598
|
+
* @summary Create a review
|
|
4599
|
+
* @param {string} project Project unique identifier
|
|
4600
|
+
* @param {string} platformId The platform identifier
|
|
4601
|
+
* @param {CreateReviewRequest} createReviewRequest
|
|
4602
|
+
* @param {number} [pageToken] Page reference token
|
|
4603
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
4604
|
+
* @param {string} [search] Search term to filter results
|
|
4605
|
+
* @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
4606
|
+
* @param {string} [start] Start of date range to filter by
|
|
4607
|
+
* @param {string} [end] End of date range to filter by
|
|
4608
|
+
* @param {*} [options] Override http request option.
|
|
4609
|
+
* @throws {RequiredError}
|
|
4610
|
+
*/
|
|
4611
|
+
createReview: (project: string, platformId: string, createReviewRequest: CreateReviewRequest, pageToken?: number, pageSize?: number, search?: string, sortBy?: Array<string>, start?: string, end?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4432
4612
|
/**
|
|
4433
4613
|
* Export reviews as a CSV file.
|
|
4434
4614
|
* @summary Export reviews
|
|
@@ -4482,6 +4662,22 @@ export declare const ReviewsApiAxiosParamCreator: (configuration?: Configuration
|
|
|
4482
4662
|
* @export
|
|
4483
4663
|
*/
|
|
4484
4664
|
export declare const ReviewsApiFp: (configuration?: Configuration) => {
|
|
4665
|
+
/**
|
|
4666
|
+
*
|
|
4667
|
+
* @summary Create a review
|
|
4668
|
+
* @param {string} project Project unique identifier
|
|
4669
|
+
* @param {string} platformId The platform identifier
|
|
4670
|
+
* @param {CreateReviewRequest} createReviewRequest
|
|
4671
|
+
* @param {number} [pageToken] Page reference token
|
|
4672
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
4673
|
+
* @param {string} [search] Search term to filter results
|
|
4674
|
+
* @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
4675
|
+
* @param {string} [start] Start of date range to filter by
|
|
4676
|
+
* @param {string} [end] End of date range to filter by
|
|
4677
|
+
* @param {*} [options] Override http request option.
|
|
4678
|
+
* @throws {RequiredError}
|
|
4679
|
+
*/
|
|
4680
|
+
createReview(project: string, platformId: string, createReviewRequest: CreateReviewRequest, pageToken?: number, pageSize?: number, search?: string, sortBy?: Array<string>, start?: string, end?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateReview201Response>>;
|
|
4485
4681
|
/**
|
|
4486
4682
|
* Export reviews as a CSV file.
|
|
4487
4683
|
* @summary Export reviews
|
|
@@ -4535,6 +4731,14 @@ export declare const ReviewsApiFp: (configuration?: Configuration) => {
|
|
|
4535
4731
|
* @export
|
|
4536
4732
|
*/
|
|
4537
4733
|
export declare const ReviewsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
4734
|
+
/**
|
|
4735
|
+
*
|
|
4736
|
+
* @summary Create a review
|
|
4737
|
+
* @param {ReviewsApiCreateReviewRequest} requestParameters Request parameters.
|
|
4738
|
+
* @param {*} [options] Override http request option.
|
|
4739
|
+
* @throws {RequiredError}
|
|
4740
|
+
*/
|
|
4741
|
+
createReview(requestParameters: ReviewsApiCreateReviewRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateReview201Response>;
|
|
4538
4742
|
/**
|
|
4539
4743
|
* Export reviews as a CSV file.
|
|
4540
4744
|
* @summary Export reviews
|
|
@@ -4568,6 +4772,67 @@ export declare const ReviewsApiFactory: (configuration?: Configuration, basePath
|
|
|
4568
4772
|
*/
|
|
4569
4773
|
moderateReview(requestParameters: ReviewsApiModerateReviewRequest, options?: RawAxiosRequestConfig): AxiosPromise<Review>;
|
|
4570
4774
|
};
|
|
4775
|
+
/**
|
|
4776
|
+
* Request parameters for createReview operation in ReviewsApi.
|
|
4777
|
+
* @export
|
|
4778
|
+
* @interface ReviewsApiCreateReviewRequest
|
|
4779
|
+
*/
|
|
4780
|
+
export interface ReviewsApiCreateReviewRequest {
|
|
4781
|
+
/**
|
|
4782
|
+
* Project unique identifier
|
|
4783
|
+
* @type {string}
|
|
4784
|
+
* @memberof ReviewsApiCreateReview
|
|
4785
|
+
*/
|
|
4786
|
+
readonly project: string;
|
|
4787
|
+
/**
|
|
4788
|
+
* The platform identifier
|
|
4789
|
+
* @type {string}
|
|
4790
|
+
* @memberof ReviewsApiCreateReview
|
|
4791
|
+
*/
|
|
4792
|
+
readonly platformId: string;
|
|
4793
|
+
/**
|
|
4794
|
+
*
|
|
4795
|
+
* @type {CreateReviewRequest}
|
|
4796
|
+
* @memberof ReviewsApiCreateReview
|
|
4797
|
+
*/
|
|
4798
|
+
readonly createReviewRequest: CreateReviewRequest;
|
|
4799
|
+
/**
|
|
4800
|
+
* Page reference token
|
|
4801
|
+
* @type {number}
|
|
4802
|
+
* @memberof ReviewsApiCreateReview
|
|
4803
|
+
*/
|
|
4804
|
+
readonly pageToken?: number;
|
|
4805
|
+
/**
|
|
4806
|
+
* Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
4807
|
+
* @type {number}
|
|
4808
|
+
* @memberof ReviewsApiCreateReview
|
|
4809
|
+
*/
|
|
4810
|
+
readonly pageSize?: number;
|
|
4811
|
+
/**
|
|
4812
|
+
* Search term to filter results
|
|
4813
|
+
* @type {string}
|
|
4814
|
+
* @memberof ReviewsApiCreateReview
|
|
4815
|
+
*/
|
|
4816
|
+
readonly search?: string;
|
|
4817
|
+
/**
|
|
4818
|
+
* An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
4819
|
+
* @type {Array<string>}
|
|
4820
|
+
* @memberof ReviewsApiCreateReview
|
|
4821
|
+
*/
|
|
4822
|
+
readonly sortBy?: Array<string>;
|
|
4823
|
+
/**
|
|
4824
|
+
* Start of date range to filter by
|
|
4825
|
+
* @type {string}
|
|
4826
|
+
* @memberof ReviewsApiCreateReview
|
|
4827
|
+
*/
|
|
4828
|
+
readonly start?: string;
|
|
4829
|
+
/**
|
|
4830
|
+
* End of date range to filter by
|
|
4831
|
+
* @type {string}
|
|
4832
|
+
* @memberof ReviewsApiCreateReview
|
|
4833
|
+
*/
|
|
4834
|
+
readonly end?: string;
|
|
4835
|
+
}
|
|
4571
4836
|
/**
|
|
4572
4837
|
* Request parameters for exportReviews operation in ReviewsApi.
|
|
4573
4838
|
* @export
|
|
@@ -4717,6 +4982,15 @@ export interface ReviewsApiModerateReviewRequest {
|
|
|
4717
4982
|
* @extends {BaseAPI}
|
|
4718
4983
|
*/
|
|
4719
4984
|
export declare class ReviewsApi extends BaseAPI {
|
|
4985
|
+
/**
|
|
4986
|
+
*
|
|
4987
|
+
* @summary Create a review
|
|
4988
|
+
* @param {ReviewsApiCreateReviewRequest} requestParameters Request parameters.
|
|
4989
|
+
* @param {*} [options] Override http request option.
|
|
4990
|
+
* @throws {RequiredError}
|
|
4991
|
+
* @memberof ReviewsApi
|
|
4992
|
+
*/
|
|
4993
|
+
createReview(requestParameters: ReviewsApiCreateReviewRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateReview201Response, any>>;
|
|
4720
4994
|
/**
|
|
4721
4995
|
* Export reviews as a CSV file.
|
|
4722
4996
|
* @summary Export reviews
|
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.31.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.TermsApi = exports.TermsApiFactory = exports.TermsApiFp = exports.TermsApiAxiosParamCreator = exports.ReviewsApi = exports.ReviewsApiFactory = exports.ReviewsApiFp = exports.ReviewsApiAxiosParamCreator = exports.PlatformApi = exports.PlatformApiFactory = exports.PlatformApiFp = exports.PlatformApiAxiosParamCreator = exports.PaymentApi = exports.PaymentApiFactory = exports.PaymentApiFp = exports.PaymentApiAxiosParamCreator = exports.ListOrdersDateFilterTypeEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.EnquiriesApi = exports.EnquiriesApiFactory = exports.EnquiriesApiFp = exports.EnquiriesApiAxiosParamCreator = exports.ListCustomersGenderEnum = exports.ListCustomersSortByEnum = exports.ExportCustomersGenderEnum = exports.ExportCustomersSortByEnum = exports.CustomersApi = exports.CustomersApiFactory = exports.CustomersApiFp = exports.CustomersApiAxiosParamCreator = exports.PaymentAttemptStatusEnum = exports.PaymentAttemptPaymentProviderEnum = exports.PaymentAccountMethodEnum = exports.OrderStatus = exports.EnquiryStatusEnum = exports.CustomsInformationPreRegistrationTypeEnum = exports.AmendOrderRequestAmendmentsInnerActionEnum = void 0;
|
|
25
|
+
exports.TermsApi = exports.TermsApiFactory = exports.TermsApiFp = exports.TermsApiAxiosParamCreator = exports.ReviewsApi = exports.ReviewsApiFactory = exports.ReviewsApiFp = exports.ReviewsApiAxiosParamCreator = exports.PlatformApi = exports.PlatformApiFactory = exports.PlatformApiFp = exports.PlatformApiAxiosParamCreator = exports.PaymentApi = exports.PaymentApiFactory = exports.PaymentApiFp = exports.PaymentApiAxiosParamCreator = exports.ListOrdersDateFilterTypeEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.EnquiriesApi = exports.EnquiriesApiFactory = exports.EnquiriesApiFp = exports.EnquiriesApiAxiosParamCreator = exports.ListCustomersGenderEnum = exports.ListCustomersSortByEnum = exports.ExportCustomersGenderEnum = exports.ExportCustomersSortByEnum = exports.CustomersApi = exports.CustomersApiFactory = exports.CustomersApiFp = exports.CustomersApiAxiosParamCreator = exports.PaymentAttemptStatusEnum = exports.PaymentAttemptPaymentProviderEnum = exports.PaymentAccountMethodEnum = exports.OrderStatus = exports.EnquiryStatusEnum = exports.CustomsInformationPreRegistrationTypeEnum = exports.AmendmentLogAmendmentTypeEnum = exports.AmendOrderRequestAmendmentsInnerActionEnum = void 0;
|
|
26
26
|
const axios_1 = require("axios");
|
|
27
27
|
// Some imports not used depending on template conditions
|
|
28
28
|
// @ts-ignore
|
|
@@ -33,6 +33,10 @@ exports.AmendOrderRequestAmendmentsInnerActionEnum = {
|
|
|
33
33
|
Refund: 'refund',
|
|
34
34
|
Exchange: 'exchange'
|
|
35
35
|
};
|
|
36
|
+
exports.AmendmentLogAmendmentTypeEnum = {
|
|
37
|
+
Refund: 'refund',
|
|
38
|
+
Exchange: 'exchange'
|
|
39
|
+
};
|
|
36
40
|
exports.CustomsInformationPreRegistrationTypeEnum = {
|
|
37
41
|
Ioss: 'IOSS'
|
|
38
42
|
};
|
|
@@ -3144,6 +3148,79 @@ exports.PlatformApi = PlatformApi;
|
|
|
3144
3148
|
*/
|
|
3145
3149
|
const ReviewsApiAxiosParamCreator = function (configuration) {
|
|
3146
3150
|
return {
|
|
3151
|
+
/**
|
|
3152
|
+
*
|
|
3153
|
+
* @summary Create a review
|
|
3154
|
+
* @param {string} project Project unique identifier
|
|
3155
|
+
* @param {string} platformId The platform identifier
|
|
3156
|
+
* @param {CreateReviewRequest} createReviewRequest
|
|
3157
|
+
* @param {number} [pageToken] Page reference token
|
|
3158
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
3159
|
+
* @param {string} [search] Search term to filter results
|
|
3160
|
+
* @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
3161
|
+
* @param {string} [start] Start of date range to filter by
|
|
3162
|
+
* @param {string} [end] End of date range to filter by
|
|
3163
|
+
* @param {*} [options] Override http request option.
|
|
3164
|
+
* @throws {RequiredError}
|
|
3165
|
+
*/
|
|
3166
|
+
createReview: (project_1, platformId_1, createReviewRequest_1, pageToken_1, pageSize_1, search_1, sortBy_1, start_1, end_1, ...args_1) => __awaiter(this, [project_1, platformId_1, createReviewRequest_1, pageToken_1, pageSize_1, search_1, sortBy_1, start_1, end_1, ...args_1], void 0, function* (project, platformId, createReviewRequest, pageToken, pageSize, search, sortBy, start, end, options = {}) {
|
|
3167
|
+
// verify required parameter 'project' is not null or undefined
|
|
3168
|
+
(0, common_1.assertParamExists)('createReview', 'project', project);
|
|
3169
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
3170
|
+
(0, common_1.assertParamExists)('createReview', 'platformId', platformId);
|
|
3171
|
+
// verify required parameter 'createReviewRequest' is not null or undefined
|
|
3172
|
+
(0, common_1.assertParamExists)('createReview', 'createReviewRequest', createReviewRequest);
|
|
3173
|
+
const localVarPath = `/v1/platform/{platformId}/reviews`
|
|
3174
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
|
|
3175
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3176
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3177
|
+
let baseOptions;
|
|
3178
|
+
if (configuration) {
|
|
3179
|
+
baseOptions = configuration.baseOptions;
|
|
3180
|
+
}
|
|
3181
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3182
|
+
const localVarHeaderParameter = {};
|
|
3183
|
+
const localVarQueryParameter = {};
|
|
3184
|
+
// authentication session-oauth required
|
|
3185
|
+
// oauth required
|
|
3186
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
3187
|
+
// authentication api-key required
|
|
3188
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
3189
|
+
if (project !== undefined) {
|
|
3190
|
+
localVarQueryParameter['project'] = project;
|
|
3191
|
+
}
|
|
3192
|
+
if (pageToken !== undefined) {
|
|
3193
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
3194
|
+
}
|
|
3195
|
+
if (pageSize !== undefined) {
|
|
3196
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
3197
|
+
}
|
|
3198
|
+
if (search !== undefined) {
|
|
3199
|
+
localVarQueryParameter['search'] = search;
|
|
3200
|
+
}
|
|
3201
|
+
if (sortBy) {
|
|
3202
|
+
localVarQueryParameter['sortBy'] = sortBy;
|
|
3203
|
+
}
|
|
3204
|
+
if (start !== undefined) {
|
|
3205
|
+
localVarQueryParameter['start'] = (start instanceof Date) ?
|
|
3206
|
+
start.toISOString() :
|
|
3207
|
+
start;
|
|
3208
|
+
}
|
|
3209
|
+
if (end !== undefined) {
|
|
3210
|
+
localVarQueryParameter['end'] = (end instanceof Date) ?
|
|
3211
|
+
end.toISOString() :
|
|
3212
|
+
end;
|
|
3213
|
+
}
|
|
3214
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3215
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3216
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3217
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3218
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createReviewRequest, localVarRequestOptions, configuration);
|
|
3219
|
+
return {
|
|
3220
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3221
|
+
options: localVarRequestOptions,
|
|
3222
|
+
};
|
|
3223
|
+
}),
|
|
3147
3224
|
/**
|
|
3148
3225
|
* Export reviews as a CSV file.
|
|
3149
3226
|
* @summary Export reviews
|
|
@@ -3367,6 +3444,30 @@ exports.ReviewsApiAxiosParamCreator = ReviewsApiAxiosParamCreator;
|
|
|
3367
3444
|
const ReviewsApiFp = function (configuration) {
|
|
3368
3445
|
const localVarAxiosParamCreator = (0, exports.ReviewsApiAxiosParamCreator)(configuration);
|
|
3369
3446
|
return {
|
|
3447
|
+
/**
|
|
3448
|
+
*
|
|
3449
|
+
* @summary Create a review
|
|
3450
|
+
* @param {string} project Project unique identifier
|
|
3451
|
+
* @param {string} platformId The platform identifier
|
|
3452
|
+
* @param {CreateReviewRequest} createReviewRequest
|
|
3453
|
+
* @param {number} [pageToken] Page reference token
|
|
3454
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
3455
|
+
* @param {string} [search] Search term to filter results
|
|
3456
|
+
* @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
3457
|
+
* @param {string} [start] Start of date range to filter by
|
|
3458
|
+
* @param {string} [end] End of date range to filter by
|
|
3459
|
+
* @param {*} [options] Override http request option.
|
|
3460
|
+
* @throws {RequiredError}
|
|
3461
|
+
*/
|
|
3462
|
+
createReview(project, platformId, createReviewRequest, pageToken, pageSize, search, sortBy, start, end, options) {
|
|
3463
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3464
|
+
var _a, _b, _c;
|
|
3465
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createReview(project, platformId, createReviewRequest, pageToken, pageSize, search, sortBy, start, end, options);
|
|
3466
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3467
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ReviewsApi.createReview']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3468
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3469
|
+
});
|
|
3470
|
+
},
|
|
3370
3471
|
/**
|
|
3371
3472
|
* Export reviews as a CSV file.
|
|
3372
3473
|
* @summary Export reviews
|
|
@@ -3456,6 +3557,16 @@ exports.ReviewsApiFp = ReviewsApiFp;
|
|
|
3456
3557
|
const ReviewsApiFactory = function (configuration, basePath, axios) {
|
|
3457
3558
|
const localVarFp = (0, exports.ReviewsApiFp)(configuration);
|
|
3458
3559
|
return {
|
|
3560
|
+
/**
|
|
3561
|
+
*
|
|
3562
|
+
* @summary Create a review
|
|
3563
|
+
* @param {ReviewsApiCreateReviewRequest} requestParameters Request parameters.
|
|
3564
|
+
* @param {*} [options] Override http request option.
|
|
3565
|
+
* @throws {RequiredError}
|
|
3566
|
+
*/
|
|
3567
|
+
createReview(requestParameters, options) {
|
|
3568
|
+
return localVarFp.createReview(requestParameters.project, requestParameters.platformId, requestParameters.createReviewRequest, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
3569
|
+
},
|
|
3459
3570
|
/**
|
|
3460
3571
|
* Export reviews as a CSV file.
|
|
3461
3572
|
* @summary Export reviews
|
|
@@ -3506,6 +3617,17 @@ exports.ReviewsApiFactory = ReviewsApiFactory;
|
|
|
3506
3617
|
* @extends {BaseAPI}
|
|
3507
3618
|
*/
|
|
3508
3619
|
class ReviewsApi extends base_1.BaseAPI {
|
|
3620
|
+
/**
|
|
3621
|
+
*
|
|
3622
|
+
* @summary Create a review
|
|
3623
|
+
* @param {ReviewsApiCreateReviewRequest} requestParameters Request parameters.
|
|
3624
|
+
* @param {*} [options] Override http request option.
|
|
3625
|
+
* @throws {RequiredError}
|
|
3626
|
+
* @memberof ReviewsApi
|
|
3627
|
+
*/
|
|
3628
|
+
createReview(requestParameters, options) {
|
|
3629
|
+
return (0, exports.ReviewsApiFp)(this.configuration).createReview(requestParameters.project, requestParameters.platformId, requestParameters.createReviewRequest, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
|
|
3630
|
+
}
|
|
3509
3631
|
/**
|
|
3510
3632
|
* Export reviews as a CSV file.
|
|
3511
3633
|
* @summary Export reviews
|
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