flexinet-api 0.0.2310 → 0.0.2311
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 +2 -2
- package/api.ts +148 -0
- package/dist/api.d.ts +105 -0
- package/dist/api.js +73 -0
- package/dist/esm/api.d.ts +105 -0
- package/dist/esm/api.js +73 -0
- package/package.json +1 -1
package/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
## flexinet-api@0.0.
|
1
|
+
## flexinet-api@0.0.2311
|
2
2
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
4
4
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
36
36
|
_published:_
|
37
37
|
|
38
38
|
```
|
39
|
-
npm install flexinet-api@0.0.
|
39
|
+
npm install flexinet-api@0.0.2311 --save
|
40
40
|
```
|
41
41
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
@@ -2265,6 +2265,74 @@ export interface OrderCreationRequest {
|
|
2265
2265
|
*/
|
2266
2266
|
'items': Array<OrderItemCreationRequest>;
|
2267
2267
|
}
|
2268
|
+
/**
|
2269
|
+
*
|
2270
|
+
* @export
|
2271
|
+
* @interface OrderEvent
|
2272
|
+
*/
|
2273
|
+
export interface OrderEvent {
|
2274
|
+
/**
|
2275
|
+
*
|
2276
|
+
* @type {string}
|
2277
|
+
* @memberof OrderEvent
|
2278
|
+
*/
|
2279
|
+
'id': string;
|
2280
|
+
/**
|
2281
|
+
*
|
2282
|
+
* @type {string}
|
2283
|
+
* @memberof OrderEvent
|
2284
|
+
*/
|
2285
|
+
'orderID': string;
|
2286
|
+
/**
|
2287
|
+
*
|
2288
|
+
* @type {Order}
|
2289
|
+
* @memberof OrderEvent
|
2290
|
+
*/
|
2291
|
+
'order': Order;
|
2292
|
+
/**
|
2293
|
+
*
|
2294
|
+
* @type {string}
|
2295
|
+
* @memberof OrderEvent
|
2296
|
+
*/
|
2297
|
+
'status': string;
|
2298
|
+
/**
|
2299
|
+
*
|
2300
|
+
* @type {number}
|
2301
|
+
* @memberof OrderEvent
|
2302
|
+
*/
|
2303
|
+
'httpResponse'?: number;
|
2304
|
+
/**
|
2305
|
+
*
|
2306
|
+
* @type {string}
|
2307
|
+
* @memberof OrderEvent
|
2308
|
+
*/
|
2309
|
+
'lastRun'?: string;
|
2310
|
+
/**
|
2311
|
+
*
|
2312
|
+
* @type {string}
|
2313
|
+
* @memberof OrderEvent
|
2314
|
+
*/
|
2315
|
+
'body'?: string;
|
2316
|
+
}
|
2317
|
+
/**
|
2318
|
+
*
|
2319
|
+
* @export
|
2320
|
+
* @interface OrderEventListResponse
|
2321
|
+
*/
|
2322
|
+
export interface OrderEventListResponse {
|
2323
|
+
/**
|
2324
|
+
*
|
2325
|
+
* @type {Array<OrderEvent>}
|
2326
|
+
* @memberof OrderEventListResponse
|
2327
|
+
*/
|
2328
|
+
'events': Array<OrderEvent>;
|
2329
|
+
/**
|
2330
|
+
* This is the pagination token
|
2331
|
+
* @type {string}
|
2332
|
+
* @memberof OrderEventListResponse
|
2333
|
+
*/
|
2334
|
+
'nextToken'?: string;
|
2335
|
+
}
|
2268
2336
|
/**
|
2269
2337
|
*
|
2270
2338
|
* @export
|
@@ -9664,6 +9732,50 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
9664
9732
|
|
9665
9733
|
|
9666
9734
|
|
9735
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
9736
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
9737
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
9738
|
+
|
9739
|
+
return {
|
9740
|
+
url: toPathString(localVarUrlObj),
|
9741
|
+
options: localVarRequestOptions,
|
9742
|
+
};
|
9743
|
+
},
|
9744
|
+
/**
|
9745
|
+
* List order events
|
9746
|
+
* @summary List order events
|
9747
|
+
* @param {string} [orderId] Order ID
|
9748
|
+
* @param {string} [nextToken] This is the pagination token
|
9749
|
+
* @param {*} [options] Override http request option.
|
9750
|
+
* @throws {RequiredError}
|
9751
|
+
*/
|
9752
|
+
listOrderEvents: async (orderId?: string, nextToken?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
9753
|
+
const localVarPath = `/admins/order-events`;
|
9754
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
9755
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
9756
|
+
let baseOptions;
|
9757
|
+
if (configuration) {
|
9758
|
+
baseOptions = configuration.baseOptions;
|
9759
|
+
}
|
9760
|
+
|
9761
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
9762
|
+
const localVarHeaderParameter = {} as any;
|
9763
|
+
const localVarQueryParameter = {} as any;
|
9764
|
+
|
9765
|
+
// authentication systemJWT required
|
9766
|
+
// http bearer authentication required
|
9767
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
9768
|
+
|
9769
|
+
if (orderId !== undefined) {
|
9770
|
+
localVarQueryParameter['orderId'] = orderId;
|
9771
|
+
}
|
9772
|
+
|
9773
|
+
if (nextToken !== undefined) {
|
9774
|
+
localVarQueryParameter['nextToken'] = nextToken;
|
9775
|
+
}
|
9776
|
+
|
9777
|
+
|
9778
|
+
|
9667
9779
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
9668
9780
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
9669
9781
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
@@ -9888,6 +10000,18 @@ export const OrdersApiFp = function(configuration?: Configuration) {
|
|
9888
10000
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserOrder(id, options);
|
9889
10001
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
9890
10002
|
},
|
10003
|
+
/**
|
10004
|
+
* List order events
|
10005
|
+
* @summary List order events
|
10006
|
+
* @param {string} [orderId] Order ID
|
10007
|
+
* @param {string} [nextToken] This is the pagination token
|
10008
|
+
* @param {*} [options] Override http request option.
|
10009
|
+
* @throws {RequiredError}
|
10010
|
+
*/
|
10011
|
+
async listOrderEvents(orderId?: string, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderEventListResponse>> {
|
10012
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrderEvents(orderId, nextToken, options);
|
10013
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
10014
|
+
},
|
9891
10015
|
/**
|
9892
10016
|
* List orders for the users/clients visible to the authenticated system user. Returns a paginated list of orders. Can be filtered by nextToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source.
|
9893
10017
|
* @summary List orders
|
@@ -9975,6 +10099,17 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
|
|
9975
10099
|
getUserOrder(id: string, options?: any): AxiosPromise<UserOrder> {
|
9976
10100
|
return localVarFp.getUserOrder(id, options).then((request) => request(axios, basePath));
|
9977
10101
|
},
|
10102
|
+
/**
|
10103
|
+
* List order events
|
10104
|
+
* @summary List order events
|
10105
|
+
* @param {string} [orderId] Order ID
|
10106
|
+
* @param {string} [nextToken] This is the pagination token
|
10107
|
+
* @param {*} [options] Override http request option.
|
10108
|
+
* @throws {RequiredError}
|
10109
|
+
*/
|
10110
|
+
listOrderEvents(orderId?: string, nextToken?: string, options?: any): AxiosPromise<OrderEventListResponse> {
|
10111
|
+
return localVarFp.listOrderEvents(orderId, nextToken, options).then((request) => request(axios, basePath));
|
10112
|
+
},
|
9978
10113
|
/**
|
9979
10114
|
* List orders for the users/clients visible to the authenticated system user. Returns a paginated list of orders. Can be filtered by nextToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source.
|
9980
10115
|
* @summary List orders
|
@@ -10068,6 +10203,19 @@ export class OrdersApi extends BaseAPI {
|
|
10068
10203
|
return OrdersApiFp(this.configuration).getUserOrder(id, options).then((request) => request(this.axios, this.basePath));
|
10069
10204
|
}
|
10070
10205
|
|
10206
|
+
/**
|
10207
|
+
* List order events
|
10208
|
+
* @summary List order events
|
10209
|
+
* @param {string} [orderId] Order ID
|
10210
|
+
* @param {string} [nextToken] This is the pagination token
|
10211
|
+
* @param {*} [options] Override http request option.
|
10212
|
+
* @throws {RequiredError}
|
10213
|
+
* @memberof OrdersApi
|
10214
|
+
*/
|
10215
|
+
public listOrderEvents(orderId?: string, nextToken?: string, options?: AxiosRequestConfig) {
|
10216
|
+
return OrdersApiFp(this.configuration).listOrderEvents(orderId, nextToken, options).then((request) => request(this.axios, this.basePath));
|
10217
|
+
}
|
10218
|
+
|
10071
10219
|
/**
|
10072
10220
|
* List orders for the users/clients visible to the authenticated system user. Returns a paginated list of orders. Can be filtered by nextToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source.
|
10073
10221
|
* @summary List orders
|
package/dist/api.d.ts
CHANGED
@@ -2187,6 +2187,74 @@ export interface OrderCreationRequest {
|
|
2187
2187
|
*/
|
2188
2188
|
'items': Array<OrderItemCreationRequest>;
|
2189
2189
|
}
|
2190
|
+
/**
|
2191
|
+
*
|
2192
|
+
* @export
|
2193
|
+
* @interface OrderEvent
|
2194
|
+
*/
|
2195
|
+
export interface OrderEvent {
|
2196
|
+
/**
|
2197
|
+
*
|
2198
|
+
* @type {string}
|
2199
|
+
* @memberof OrderEvent
|
2200
|
+
*/
|
2201
|
+
'id': string;
|
2202
|
+
/**
|
2203
|
+
*
|
2204
|
+
* @type {string}
|
2205
|
+
* @memberof OrderEvent
|
2206
|
+
*/
|
2207
|
+
'orderID': string;
|
2208
|
+
/**
|
2209
|
+
*
|
2210
|
+
* @type {Order}
|
2211
|
+
* @memberof OrderEvent
|
2212
|
+
*/
|
2213
|
+
'order': Order;
|
2214
|
+
/**
|
2215
|
+
*
|
2216
|
+
* @type {string}
|
2217
|
+
* @memberof OrderEvent
|
2218
|
+
*/
|
2219
|
+
'status': string;
|
2220
|
+
/**
|
2221
|
+
*
|
2222
|
+
* @type {number}
|
2223
|
+
* @memberof OrderEvent
|
2224
|
+
*/
|
2225
|
+
'httpResponse'?: number;
|
2226
|
+
/**
|
2227
|
+
*
|
2228
|
+
* @type {string}
|
2229
|
+
* @memberof OrderEvent
|
2230
|
+
*/
|
2231
|
+
'lastRun'?: string;
|
2232
|
+
/**
|
2233
|
+
*
|
2234
|
+
* @type {string}
|
2235
|
+
* @memberof OrderEvent
|
2236
|
+
*/
|
2237
|
+
'body'?: string;
|
2238
|
+
}
|
2239
|
+
/**
|
2240
|
+
*
|
2241
|
+
* @export
|
2242
|
+
* @interface OrderEventListResponse
|
2243
|
+
*/
|
2244
|
+
export interface OrderEventListResponse {
|
2245
|
+
/**
|
2246
|
+
*
|
2247
|
+
* @type {Array<OrderEvent>}
|
2248
|
+
* @memberof OrderEventListResponse
|
2249
|
+
*/
|
2250
|
+
'events': Array<OrderEvent>;
|
2251
|
+
/**
|
2252
|
+
* This is the pagination token
|
2253
|
+
* @type {string}
|
2254
|
+
* @memberof OrderEventListResponse
|
2255
|
+
*/
|
2256
|
+
'nextToken'?: string;
|
2257
|
+
}
|
2190
2258
|
/**
|
2191
2259
|
*
|
2192
2260
|
* @export
|
@@ -7530,6 +7598,15 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
|
|
7530
7598
|
* @throws {RequiredError}
|
7531
7599
|
*/
|
7532
7600
|
getUserOrder: (id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
7601
|
+
/**
|
7602
|
+
* List order events
|
7603
|
+
* @summary List order events
|
7604
|
+
* @param {string} [orderId] Order ID
|
7605
|
+
* @param {string} [nextToken] This is the pagination token
|
7606
|
+
* @param {*} [options] Override http request option.
|
7607
|
+
* @throws {RequiredError}
|
7608
|
+
*/
|
7609
|
+
listOrderEvents: (orderId?: string, nextToken?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
7533
7610
|
/**
|
7534
7611
|
* List orders for the users/clients visible to the authenticated system user. Returns a paginated list of orders. Can be filtered by nextToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source.
|
7535
7612
|
* @summary List orders
|
@@ -7599,6 +7676,15 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
|
|
7599
7676
|
* @throws {RequiredError}
|
7600
7677
|
*/
|
7601
7678
|
getUserOrder(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserOrder>>;
|
7679
|
+
/**
|
7680
|
+
* List order events
|
7681
|
+
* @summary List order events
|
7682
|
+
* @param {string} [orderId] Order ID
|
7683
|
+
* @param {string} [nextToken] This is the pagination token
|
7684
|
+
* @param {*} [options] Override http request option.
|
7685
|
+
* @throws {RequiredError}
|
7686
|
+
*/
|
7687
|
+
listOrderEvents(orderId?: string, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderEventListResponse>>;
|
7602
7688
|
/**
|
7603
7689
|
* List orders for the users/clients visible to the authenticated system user. Returns a paginated list of orders. Can be filtered by nextToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source.
|
7604
7690
|
* @summary List orders
|
@@ -7668,6 +7754,15 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
|
|
7668
7754
|
* @throws {RequiredError}
|
7669
7755
|
*/
|
7670
7756
|
getUserOrder(id: string, options?: any): AxiosPromise<UserOrder>;
|
7757
|
+
/**
|
7758
|
+
* List order events
|
7759
|
+
* @summary List order events
|
7760
|
+
* @param {string} [orderId] Order ID
|
7761
|
+
* @param {string} [nextToken] This is the pagination token
|
7762
|
+
* @param {*} [options] Override http request option.
|
7763
|
+
* @throws {RequiredError}
|
7764
|
+
*/
|
7765
|
+
listOrderEvents(orderId?: string, nextToken?: string, options?: any): AxiosPromise<OrderEventListResponse>;
|
7671
7766
|
/**
|
7672
7767
|
* List orders for the users/clients visible to the authenticated system user. Returns a paginated list of orders. Can be filtered by nextToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source.
|
7673
7768
|
* @summary List orders
|
@@ -7743,6 +7838,16 @@ export declare class OrdersApi extends BaseAPI {
|
|
7743
7838
|
* @memberof OrdersApi
|
7744
7839
|
*/
|
7745
7840
|
getUserOrder(id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UserOrder, any>>;
|
7841
|
+
/**
|
7842
|
+
* List order events
|
7843
|
+
* @summary List order events
|
7844
|
+
* @param {string} [orderId] Order ID
|
7845
|
+
* @param {string} [nextToken] This is the pagination token
|
7846
|
+
* @param {*} [options] Override http request option.
|
7847
|
+
* @throws {RequiredError}
|
7848
|
+
* @memberof OrdersApi
|
7849
|
+
*/
|
7850
|
+
listOrderEvents(orderId?: string, nextToken?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderEventListResponse, any>>;
|
7746
7851
|
/**
|
7747
7852
|
* List orders for the users/clients visible to the authenticated system user. Returns a paginated list of orders. Can be filtered by nextToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source.
|
7748
7853
|
* @summary List orders
|
package/dist/api.js
CHANGED
@@ -3794,6 +3794,42 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
3794
3794
|
options: localVarRequestOptions,
|
3795
3795
|
};
|
3796
3796
|
}),
|
3797
|
+
/**
|
3798
|
+
* List order events
|
3799
|
+
* @summary List order events
|
3800
|
+
* @param {string} [orderId] Order ID
|
3801
|
+
* @param {string} [nextToken] This is the pagination token
|
3802
|
+
* @param {*} [options] Override http request option.
|
3803
|
+
* @throws {RequiredError}
|
3804
|
+
*/
|
3805
|
+
listOrderEvents: (orderId, nextToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
3806
|
+
const localVarPath = `/admins/order-events`;
|
3807
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
3808
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
3809
|
+
let baseOptions;
|
3810
|
+
if (configuration) {
|
3811
|
+
baseOptions = configuration.baseOptions;
|
3812
|
+
}
|
3813
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
3814
|
+
const localVarHeaderParameter = {};
|
3815
|
+
const localVarQueryParameter = {};
|
3816
|
+
// authentication systemJWT required
|
3817
|
+
// http bearer authentication required
|
3818
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
3819
|
+
if (orderId !== undefined) {
|
3820
|
+
localVarQueryParameter['orderId'] = orderId;
|
3821
|
+
}
|
3822
|
+
if (nextToken !== undefined) {
|
3823
|
+
localVarQueryParameter['nextToken'] = nextToken;
|
3824
|
+
}
|
3825
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
3826
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
3827
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
3828
|
+
return {
|
3829
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
3830
|
+
options: localVarRequestOptions,
|
3831
|
+
};
|
3832
|
+
}),
|
3797
3833
|
/**
|
3798
3834
|
* List orders for the users/clients visible to the authenticated system user. Returns a paginated list of orders. Can be filtered by nextToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source.
|
3799
3835
|
* @summary List orders
|
@@ -3988,6 +4024,20 @@ const OrdersApiFp = function (configuration) {
|
|
3988
4024
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
3989
4025
|
});
|
3990
4026
|
},
|
4027
|
+
/**
|
4028
|
+
* List order events
|
4029
|
+
* @summary List order events
|
4030
|
+
* @param {string} [orderId] Order ID
|
4031
|
+
* @param {string} [nextToken] This is the pagination token
|
4032
|
+
* @param {*} [options] Override http request option.
|
4033
|
+
* @throws {RequiredError}
|
4034
|
+
*/
|
4035
|
+
listOrderEvents(orderId, nextToken, options) {
|
4036
|
+
return __awaiter(this, void 0, void 0, function* () {
|
4037
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrderEvents(orderId, nextToken, options);
|
4038
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
4039
|
+
});
|
4040
|
+
},
|
3991
4041
|
/**
|
3992
4042
|
* List orders for the users/clients visible to the authenticated system user. Returns a paginated list of orders. Can be filtered by nextToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source.
|
3993
4043
|
* @summary List orders
|
@@ -4079,6 +4129,17 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
4079
4129
|
getUserOrder(id, options) {
|
4080
4130
|
return localVarFp.getUserOrder(id, options).then((request) => request(axios, basePath));
|
4081
4131
|
},
|
4132
|
+
/**
|
4133
|
+
* List order events
|
4134
|
+
* @summary List order events
|
4135
|
+
* @param {string} [orderId] Order ID
|
4136
|
+
* @param {string} [nextToken] This is the pagination token
|
4137
|
+
* @param {*} [options] Override http request option.
|
4138
|
+
* @throws {RequiredError}
|
4139
|
+
*/
|
4140
|
+
listOrderEvents(orderId, nextToken, options) {
|
4141
|
+
return localVarFp.listOrderEvents(orderId, nextToken, options).then((request) => request(axios, basePath));
|
4142
|
+
},
|
4082
4143
|
/**
|
4083
4144
|
* List orders for the users/clients visible to the authenticated system user. Returns a paginated list of orders. Can be filtered by nextToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source.
|
4084
4145
|
* @summary List orders
|
@@ -4168,6 +4229,18 @@ class OrdersApi extends base_1.BaseAPI {
|
|
4168
4229
|
getUserOrder(id, options) {
|
4169
4230
|
return (0, exports.OrdersApiFp)(this.configuration).getUserOrder(id, options).then((request) => request(this.axios, this.basePath));
|
4170
4231
|
}
|
4232
|
+
/**
|
4233
|
+
* List order events
|
4234
|
+
* @summary List order events
|
4235
|
+
* @param {string} [orderId] Order ID
|
4236
|
+
* @param {string} [nextToken] This is the pagination token
|
4237
|
+
* @param {*} [options] Override http request option.
|
4238
|
+
* @throws {RequiredError}
|
4239
|
+
* @memberof OrdersApi
|
4240
|
+
*/
|
4241
|
+
listOrderEvents(orderId, nextToken, options) {
|
4242
|
+
return (0, exports.OrdersApiFp)(this.configuration).listOrderEvents(orderId, nextToken, options).then((request) => request(this.axios, this.basePath));
|
4243
|
+
}
|
4171
4244
|
/**
|
4172
4245
|
* List orders for the users/clients visible to the authenticated system user. Returns a paginated list of orders. Can be filtered by nextToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source.
|
4173
4246
|
* @summary List orders
|
package/dist/esm/api.d.ts
CHANGED
@@ -2187,6 +2187,74 @@ export interface OrderCreationRequest {
|
|
2187
2187
|
*/
|
2188
2188
|
'items': Array<OrderItemCreationRequest>;
|
2189
2189
|
}
|
2190
|
+
/**
|
2191
|
+
*
|
2192
|
+
* @export
|
2193
|
+
* @interface OrderEvent
|
2194
|
+
*/
|
2195
|
+
export interface OrderEvent {
|
2196
|
+
/**
|
2197
|
+
*
|
2198
|
+
* @type {string}
|
2199
|
+
* @memberof OrderEvent
|
2200
|
+
*/
|
2201
|
+
'id': string;
|
2202
|
+
/**
|
2203
|
+
*
|
2204
|
+
* @type {string}
|
2205
|
+
* @memberof OrderEvent
|
2206
|
+
*/
|
2207
|
+
'orderID': string;
|
2208
|
+
/**
|
2209
|
+
*
|
2210
|
+
* @type {Order}
|
2211
|
+
* @memberof OrderEvent
|
2212
|
+
*/
|
2213
|
+
'order': Order;
|
2214
|
+
/**
|
2215
|
+
*
|
2216
|
+
* @type {string}
|
2217
|
+
* @memberof OrderEvent
|
2218
|
+
*/
|
2219
|
+
'status': string;
|
2220
|
+
/**
|
2221
|
+
*
|
2222
|
+
* @type {number}
|
2223
|
+
* @memberof OrderEvent
|
2224
|
+
*/
|
2225
|
+
'httpResponse'?: number;
|
2226
|
+
/**
|
2227
|
+
*
|
2228
|
+
* @type {string}
|
2229
|
+
* @memberof OrderEvent
|
2230
|
+
*/
|
2231
|
+
'lastRun'?: string;
|
2232
|
+
/**
|
2233
|
+
*
|
2234
|
+
* @type {string}
|
2235
|
+
* @memberof OrderEvent
|
2236
|
+
*/
|
2237
|
+
'body'?: string;
|
2238
|
+
}
|
2239
|
+
/**
|
2240
|
+
*
|
2241
|
+
* @export
|
2242
|
+
* @interface OrderEventListResponse
|
2243
|
+
*/
|
2244
|
+
export interface OrderEventListResponse {
|
2245
|
+
/**
|
2246
|
+
*
|
2247
|
+
* @type {Array<OrderEvent>}
|
2248
|
+
* @memberof OrderEventListResponse
|
2249
|
+
*/
|
2250
|
+
'events': Array<OrderEvent>;
|
2251
|
+
/**
|
2252
|
+
* This is the pagination token
|
2253
|
+
* @type {string}
|
2254
|
+
* @memberof OrderEventListResponse
|
2255
|
+
*/
|
2256
|
+
'nextToken'?: string;
|
2257
|
+
}
|
2190
2258
|
/**
|
2191
2259
|
*
|
2192
2260
|
* @export
|
@@ -7530,6 +7598,15 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
|
|
7530
7598
|
* @throws {RequiredError}
|
7531
7599
|
*/
|
7532
7600
|
getUserOrder: (id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
7601
|
+
/**
|
7602
|
+
* List order events
|
7603
|
+
* @summary List order events
|
7604
|
+
* @param {string} [orderId] Order ID
|
7605
|
+
* @param {string} [nextToken] This is the pagination token
|
7606
|
+
* @param {*} [options] Override http request option.
|
7607
|
+
* @throws {RequiredError}
|
7608
|
+
*/
|
7609
|
+
listOrderEvents: (orderId?: string, nextToken?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
7533
7610
|
/**
|
7534
7611
|
* List orders for the users/clients visible to the authenticated system user. Returns a paginated list of orders. Can be filtered by nextToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source.
|
7535
7612
|
* @summary List orders
|
@@ -7599,6 +7676,15 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
|
|
7599
7676
|
* @throws {RequiredError}
|
7600
7677
|
*/
|
7601
7678
|
getUserOrder(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserOrder>>;
|
7679
|
+
/**
|
7680
|
+
* List order events
|
7681
|
+
* @summary List order events
|
7682
|
+
* @param {string} [orderId] Order ID
|
7683
|
+
* @param {string} [nextToken] This is the pagination token
|
7684
|
+
* @param {*} [options] Override http request option.
|
7685
|
+
* @throws {RequiredError}
|
7686
|
+
*/
|
7687
|
+
listOrderEvents(orderId?: string, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderEventListResponse>>;
|
7602
7688
|
/**
|
7603
7689
|
* List orders for the users/clients visible to the authenticated system user. Returns a paginated list of orders. Can be filtered by nextToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source.
|
7604
7690
|
* @summary List orders
|
@@ -7668,6 +7754,15 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
|
|
7668
7754
|
* @throws {RequiredError}
|
7669
7755
|
*/
|
7670
7756
|
getUserOrder(id: string, options?: any): AxiosPromise<UserOrder>;
|
7757
|
+
/**
|
7758
|
+
* List order events
|
7759
|
+
* @summary List order events
|
7760
|
+
* @param {string} [orderId] Order ID
|
7761
|
+
* @param {string} [nextToken] This is the pagination token
|
7762
|
+
* @param {*} [options] Override http request option.
|
7763
|
+
* @throws {RequiredError}
|
7764
|
+
*/
|
7765
|
+
listOrderEvents(orderId?: string, nextToken?: string, options?: any): AxiosPromise<OrderEventListResponse>;
|
7671
7766
|
/**
|
7672
7767
|
* List orders for the users/clients visible to the authenticated system user. Returns a paginated list of orders. Can be filtered by nextToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source.
|
7673
7768
|
* @summary List orders
|
@@ -7743,6 +7838,16 @@ export declare class OrdersApi extends BaseAPI {
|
|
7743
7838
|
* @memberof OrdersApi
|
7744
7839
|
*/
|
7745
7840
|
getUserOrder(id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UserOrder, any>>;
|
7841
|
+
/**
|
7842
|
+
* List order events
|
7843
|
+
* @summary List order events
|
7844
|
+
* @param {string} [orderId] Order ID
|
7845
|
+
* @param {string} [nextToken] This is the pagination token
|
7846
|
+
* @param {*} [options] Override http request option.
|
7847
|
+
* @throws {RequiredError}
|
7848
|
+
* @memberof OrdersApi
|
7849
|
+
*/
|
7850
|
+
listOrderEvents(orderId?: string, nextToken?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderEventListResponse, any>>;
|
7746
7851
|
/**
|
7747
7852
|
* List orders for the users/clients visible to the authenticated system user. Returns a paginated list of orders. Can be filtered by nextToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source.
|
7748
7853
|
* @summary List orders
|
package/dist/esm/api.js
CHANGED
@@ -3749,6 +3749,42 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
|
|
3749
3749
|
options: localVarRequestOptions,
|
3750
3750
|
};
|
3751
3751
|
}),
|
3752
|
+
/**
|
3753
|
+
* List order events
|
3754
|
+
* @summary List order events
|
3755
|
+
* @param {string} [orderId] Order ID
|
3756
|
+
* @param {string} [nextToken] This is the pagination token
|
3757
|
+
* @param {*} [options] Override http request option.
|
3758
|
+
* @throws {RequiredError}
|
3759
|
+
*/
|
3760
|
+
listOrderEvents: (orderId, nextToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
3761
|
+
const localVarPath = `/admins/order-events`;
|
3762
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
3763
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
3764
|
+
let baseOptions;
|
3765
|
+
if (configuration) {
|
3766
|
+
baseOptions = configuration.baseOptions;
|
3767
|
+
}
|
3768
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
3769
|
+
const localVarHeaderParameter = {};
|
3770
|
+
const localVarQueryParameter = {};
|
3771
|
+
// authentication systemJWT required
|
3772
|
+
// http bearer authentication required
|
3773
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
3774
|
+
if (orderId !== undefined) {
|
3775
|
+
localVarQueryParameter['orderId'] = orderId;
|
3776
|
+
}
|
3777
|
+
if (nextToken !== undefined) {
|
3778
|
+
localVarQueryParameter['nextToken'] = nextToken;
|
3779
|
+
}
|
3780
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
3781
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
3782
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
3783
|
+
return {
|
3784
|
+
url: toPathString(localVarUrlObj),
|
3785
|
+
options: localVarRequestOptions,
|
3786
|
+
};
|
3787
|
+
}),
|
3752
3788
|
/**
|
3753
3789
|
* List orders for the users/clients visible to the authenticated system user. Returns a paginated list of orders. Can be filtered by nextToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source.
|
3754
3790
|
* @summary List orders
|
@@ -3942,6 +3978,20 @@ export const OrdersApiFp = function (configuration) {
|
|
3942
3978
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
3943
3979
|
});
|
3944
3980
|
},
|
3981
|
+
/**
|
3982
|
+
* List order events
|
3983
|
+
* @summary List order events
|
3984
|
+
* @param {string} [orderId] Order ID
|
3985
|
+
* @param {string} [nextToken] This is the pagination token
|
3986
|
+
* @param {*} [options] Override http request option.
|
3987
|
+
* @throws {RequiredError}
|
3988
|
+
*/
|
3989
|
+
listOrderEvents(orderId, nextToken, options) {
|
3990
|
+
return __awaiter(this, void 0, void 0, function* () {
|
3991
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrderEvents(orderId, nextToken, options);
|
3992
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
3993
|
+
});
|
3994
|
+
},
|
3945
3995
|
/**
|
3946
3996
|
* List orders for the users/clients visible to the authenticated system user. Returns a paginated list of orders. Can be filtered by nextToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source.
|
3947
3997
|
* @summary List orders
|
@@ -4032,6 +4082,17 @@ export const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
4032
4082
|
getUserOrder(id, options) {
|
4033
4083
|
return localVarFp.getUserOrder(id, options).then((request) => request(axios, basePath));
|
4034
4084
|
},
|
4085
|
+
/**
|
4086
|
+
* List order events
|
4087
|
+
* @summary List order events
|
4088
|
+
* @param {string} [orderId] Order ID
|
4089
|
+
* @param {string} [nextToken] This is the pagination token
|
4090
|
+
* @param {*} [options] Override http request option.
|
4091
|
+
* @throws {RequiredError}
|
4092
|
+
*/
|
4093
|
+
listOrderEvents(orderId, nextToken, options) {
|
4094
|
+
return localVarFp.listOrderEvents(orderId, nextToken, options).then((request) => request(axios, basePath));
|
4095
|
+
},
|
4035
4096
|
/**
|
4036
4097
|
* List orders for the users/clients visible to the authenticated system user. Returns a paginated list of orders. Can be filtered by nextToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source.
|
4037
4098
|
* @summary List orders
|
@@ -4120,6 +4181,18 @@ export class OrdersApi extends BaseAPI {
|
|
4120
4181
|
getUserOrder(id, options) {
|
4121
4182
|
return OrdersApiFp(this.configuration).getUserOrder(id, options).then((request) => request(this.axios, this.basePath));
|
4122
4183
|
}
|
4184
|
+
/**
|
4185
|
+
* List order events
|
4186
|
+
* @summary List order events
|
4187
|
+
* @param {string} [orderId] Order ID
|
4188
|
+
* @param {string} [nextToken] This is the pagination token
|
4189
|
+
* @param {*} [options] Override http request option.
|
4190
|
+
* @throws {RequiredError}
|
4191
|
+
* @memberof OrdersApi
|
4192
|
+
*/
|
4193
|
+
listOrderEvents(orderId, nextToken, options) {
|
4194
|
+
return OrdersApiFp(this.configuration).listOrderEvents(orderId, nextToken, options).then((request) => request(this.axios, this.basePath));
|
4195
|
+
}
|
4123
4196
|
/**
|
4124
4197
|
* List orders for the users/clients visible to the authenticated system user. Returns a paginated list of orders. Can be filtered by nextToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source.
|
4125
4198
|
* @summary List orders
|