flexinet-api 0.0.1231-prerelease0 → 0.0.1232
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 +198 -57
- package/dist/api.d.ts +193 -51
- package/dist/api.js +9 -14
- package/dist/esm/api.d.ts +193 -51
- package/dist/esm/api.js +6 -11
- package/package.json +1 -1
package/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
## flexinet-api@0.0.
|
1
|
+
## flexinet-api@0.0.1232
|
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.1232 --save
|
40
40
|
```
|
41
41
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
@@ -206,15 +206,7 @@ export interface Balance {
|
|
206
206
|
* @memberof Balance
|
207
207
|
*/
|
208
208
|
'beneficiary': Beneficiary;
|
209
|
-
/**
|
210
|
-
*
|
211
|
-
* @type {TransactionCurrencyKind}
|
212
|
-
* @memberof Balance
|
213
|
-
*/
|
214
|
-
'currency': TransactionCurrencyKind;
|
215
209
|
}
|
216
|
-
|
217
|
-
|
218
210
|
/**
|
219
211
|
*
|
220
212
|
* @export
|
@@ -239,12 +231,6 @@ export interface BalanceUpdateRequest {
|
|
239
231
|
* @memberof BalanceUpdateRequest
|
240
232
|
*/
|
241
233
|
'transactionKind'?: TransactionKind;
|
242
|
-
/**
|
243
|
-
*
|
244
|
-
* @type {TransactionCurrencyKind}
|
245
|
-
* @memberof BalanceUpdateRequest
|
246
|
-
*/
|
247
|
-
'currency'?: TransactionCurrencyKind;
|
248
234
|
}
|
249
235
|
|
250
236
|
|
@@ -272,15 +258,7 @@ export interface BalanceWithBeneficiaryRef {
|
|
272
258
|
* @memberof BalanceWithBeneficiaryRef
|
273
259
|
*/
|
274
260
|
'beneficiaryRef': BeneficiaryWithRef;
|
275
|
-
/**
|
276
|
-
*
|
277
|
-
* @type {TransactionCurrencyKind}
|
278
|
-
* @memberof BalanceWithBeneficiaryRef
|
279
|
-
*/
|
280
|
-
'currency': TransactionCurrencyKind;
|
281
261
|
}
|
282
|
-
|
283
|
-
|
284
262
|
/**
|
285
263
|
*
|
286
264
|
* @export
|
@@ -1280,10 +1258,10 @@ export interface Order {
|
|
1280
1258
|
'createdAt'?: string;
|
1281
1259
|
/**
|
1282
1260
|
*
|
1283
|
-
* @type {
|
1261
|
+
* @type {OrderKind}
|
1284
1262
|
* @memberof Order
|
1285
1263
|
*/
|
1286
|
-
'kind'
|
1264
|
+
'kind': OrderKind;
|
1287
1265
|
/**
|
1288
1266
|
*
|
1289
1267
|
* @type {string}
|
@@ -1304,12 +1282,6 @@ export interface Order {
|
|
1304
1282
|
'status'?: OrderStatus;
|
1305
1283
|
}
|
1306
1284
|
|
1307
|
-
export const OrderKindEnum = {
|
1308
|
-
Webshop: 'webshop',
|
1309
|
-
Promotions: 'promotions'
|
1310
|
-
} as const;
|
1311
|
-
|
1312
|
-
export type OrderKindEnum = typeof OrderKindEnum[keyof typeof OrderKindEnum];
|
1313
1285
|
|
1314
1286
|
/**
|
1315
1287
|
*
|
@@ -1349,6 +1321,20 @@ export interface OrderItemCreationRequest {
|
|
1349
1321
|
*/
|
1350
1322
|
'productId': string;
|
1351
1323
|
}
|
1324
|
+
/**
|
1325
|
+
*
|
1326
|
+
* @export
|
1327
|
+
* @enum {string}
|
1328
|
+
*/
|
1329
|
+
|
1330
|
+
export const OrderKind = {
|
1331
|
+
Webshop: 'webshop',
|
1332
|
+
Promotions: 'promotions'
|
1333
|
+
} as const;
|
1334
|
+
|
1335
|
+
export type OrderKind = typeof OrderKind[keyof typeof OrderKind];
|
1336
|
+
|
1337
|
+
|
1352
1338
|
/**
|
1353
1339
|
*
|
1354
1340
|
* @export
|
@@ -3518,30 +3504,9 @@ export interface Transaction {
|
|
3518
3504
|
* @memberof Transaction
|
3519
3505
|
*/
|
3520
3506
|
'createdAt': string;
|
3521
|
-
/**
|
3522
|
-
*
|
3523
|
-
* @type {TransactionCurrencyKind}
|
3524
|
-
* @memberof Transaction
|
3525
|
-
*/
|
3526
|
-
'currency': TransactionCurrencyKind;
|
3527
3507
|
}
|
3528
3508
|
|
3529
3509
|
|
3530
|
-
/**
|
3531
|
-
*
|
3532
|
-
* @export
|
3533
|
-
* @enum {string}
|
3534
|
-
*/
|
3535
|
-
|
3536
|
-
export const TransactionCurrencyKind = {
|
3537
|
-
Points: 'points',
|
3538
|
-
CustomDealBudget: 'customDealBudget',
|
3539
|
-
SalesBudget: 'salesBudget'
|
3540
|
-
} as const;
|
3541
|
-
|
3542
|
-
export type TransactionCurrencyKind = typeof TransactionCurrencyKind[keyof typeof TransactionCurrencyKind];
|
3543
|
-
|
3544
|
-
|
3545
3510
|
/**
|
3546
3511
|
*
|
3547
3512
|
* @export
|
@@ -3931,6 +3896,25 @@ export interface UserBalance {
|
|
3931
3896
|
*/
|
3932
3897
|
export type UserDetails = { source: 'customer' } & CustomerUserDetails | { source: 'system' } & SystemUserDetails;
|
3933
3898
|
|
3899
|
+
/**
|
3900
|
+
*
|
3901
|
+
* @export
|
3902
|
+
* @interface UserItem
|
3903
|
+
*/
|
3904
|
+
export interface UserItem {
|
3905
|
+
/**
|
3906
|
+
*
|
3907
|
+
* @type {number}
|
3908
|
+
* @memberof UserItem
|
3909
|
+
*/
|
3910
|
+
'qty': number;
|
3911
|
+
/**
|
3912
|
+
*
|
3913
|
+
* @type {UserProduct}
|
3914
|
+
* @memberof UserItem
|
3915
|
+
*/
|
3916
|
+
'product': UserProduct;
|
3917
|
+
}
|
3934
3918
|
/**
|
3935
3919
|
*
|
3936
3920
|
* @export
|
@@ -3956,6 +3940,163 @@ export interface UserListResponse {
|
|
3956
3940
|
*/
|
3957
3941
|
'hasMore': boolean;
|
3958
3942
|
}
|
3943
|
+
/**
|
3944
|
+
*
|
3945
|
+
* @export
|
3946
|
+
* @interface UserOrder
|
3947
|
+
*/
|
3948
|
+
export interface UserOrder {
|
3949
|
+
/**
|
3950
|
+
*
|
3951
|
+
* @type {Balance}
|
3952
|
+
* @memberof UserOrder
|
3953
|
+
*/
|
3954
|
+
'balance'?: Balance;
|
3955
|
+
/**
|
3956
|
+
*
|
3957
|
+
* @type {Array<UserItem>}
|
3958
|
+
* @memberof UserOrder
|
3959
|
+
*/
|
3960
|
+
'items': Array<UserItem>;
|
3961
|
+
/**
|
3962
|
+
*
|
3963
|
+
* @type {string}
|
3964
|
+
* @memberof UserOrder
|
3965
|
+
*/
|
3966
|
+
'id': string;
|
3967
|
+
/**
|
3968
|
+
*
|
3969
|
+
* @type {string}
|
3970
|
+
* @memberof UserOrder
|
3971
|
+
*/
|
3972
|
+
'createdAt'?: string;
|
3973
|
+
/**
|
3974
|
+
*
|
3975
|
+
* @type {OrderKind}
|
3976
|
+
* @memberof UserOrder
|
3977
|
+
*/
|
3978
|
+
'kind': OrderKind;
|
3979
|
+
/**
|
3980
|
+
*
|
3981
|
+
* @type {string}
|
3982
|
+
* @memberof UserOrder
|
3983
|
+
*/
|
3984
|
+
'source'?: string;
|
3985
|
+
/**
|
3986
|
+
*
|
3987
|
+
* @type {string}
|
3988
|
+
* @memberof UserOrder
|
3989
|
+
*/
|
3990
|
+
'userID'?: string;
|
3991
|
+
/**
|
3992
|
+
*
|
3993
|
+
* @type {OrderStatus}
|
3994
|
+
* @memberof UserOrder
|
3995
|
+
*/
|
3996
|
+
'status'?: OrderStatus;
|
3997
|
+
}
|
3998
|
+
|
3999
|
+
|
4000
|
+
/**
|
4001
|
+
*
|
4002
|
+
* @export
|
4003
|
+
* @interface UserOrderListResponse
|
4004
|
+
*/
|
4005
|
+
export interface UserOrderListResponse {
|
4006
|
+
/**
|
4007
|
+
*
|
4008
|
+
* @type {Array<UserOrder>}
|
4009
|
+
* @memberof UserOrderListResponse
|
4010
|
+
*/
|
4011
|
+
'orders': Array<UserOrder>;
|
4012
|
+
/**
|
4013
|
+
* This is the pagination token
|
4014
|
+
* @type {string}
|
4015
|
+
* @memberof UserOrderListResponse
|
4016
|
+
*/
|
4017
|
+
'nextToken'?: string;
|
4018
|
+
}
|
4019
|
+
/**
|
4020
|
+
*
|
4021
|
+
* @export
|
4022
|
+
* @interface UserProduct
|
4023
|
+
*/
|
4024
|
+
export interface UserProduct {
|
4025
|
+
/**
|
4026
|
+
*
|
4027
|
+
* @type {string}
|
4028
|
+
* @memberof UserProduct
|
4029
|
+
*/
|
4030
|
+
'id': string;
|
4031
|
+
/**
|
4032
|
+
*
|
4033
|
+
* @type {string}
|
4034
|
+
* @memberof UserProduct
|
4035
|
+
*/
|
4036
|
+
'name': string;
|
4037
|
+
/**
|
4038
|
+
*
|
4039
|
+
* @type {string}
|
4040
|
+
* @memberof UserProduct
|
4041
|
+
*/
|
4042
|
+
'description': string;
|
4043
|
+
/**
|
4044
|
+
*
|
4045
|
+
* @type {number}
|
4046
|
+
* @memberof UserProduct
|
4047
|
+
*/
|
4048
|
+
'value': number;
|
4049
|
+
/**
|
4050
|
+
*
|
4051
|
+
* @type {ProductAvailability}
|
4052
|
+
* @memberof UserProduct
|
4053
|
+
*/
|
4054
|
+
'availability': ProductAvailability;
|
4055
|
+
/**
|
4056
|
+
*
|
4057
|
+
* @type {Array<string>}
|
4058
|
+
* @memberof UserProduct
|
4059
|
+
*/
|
4060
|
+
'media': Array<string>;
|
4061
|
+
/**
|
4062
|
+
*
|
4063
|
+
* @type {string}
|
4064
|
+
* @memberof UserProduct
|
4065
|
+
*/
|
4066
|
+
'productCode': string;
|
4067
|
+
/**
|
4068
|
+
*
|
4069
|
+
* @type {ProductKind}
|
4070
|
+
* @memberof UserProduct
|
4071
|
+
*/
|
4072
|
+
'kind': ProductKind;
|
4073
|
+
/**
|
4074
|
+
*
|
4075
|
+
* @type {string}
|
4076
|
+
* @memberof UserProduct
|
4077
|
+
*/
|
4078
|
+
'createdAt': string;
|
4079
|
+
/**
|
4080
|
+
*
|
4081
|
+
* @type {string}
|
4082
|
+
* @memberof UserProduct
|
4083
|
+
*/
|
4084
|
+
'updatedAt': string;
|
4085
|
+
/**
|
4086
|
+
*
|
4087
|
+
* @type {string}
|
4088
|
+
* @memberof UserProduct
|
4089
|
+
*/
|
4090
|
+
'category': string;
|
4091
|
+
/**
|
4092
|
+
*
|
4093
|
+
* @type {number}
|
4094
|
+
* @memberof UserProduct
|
4095
|
+
*/
|
4096
|
+
'quantity': number;
|
4097
|
+
}
|
4098
|
+
|
4099
|
+
|
3959
4100
|
/**
|
3960
4101
|
*
|
3961
4102
|
* @export
|
@@ -6986,7 +7127,7 @@ export const OrderApiFp = function(configuration?: Configuration) {
|
|
6986
7127
|
* @param {*} [options] Override http request option.
|
6987
7128
|
* @throws {RequiredError}
|
6988
7129
|
*/
|
6989
|
-
async createOrder(orderCreationRequest?: OrderCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
7130
|
+
async createOrder(orderCreationRequest?: OrderCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserOrder>> {
|
6990
7131
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createOrder(orderCreationRequest, options);
|
6991
7132
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
6992
7133
|
},
|
@@ -7008,7 +7149,7 @@ export const OrderApiFp = function(configuration?: Configuration) {
|
|
7008
7149
|
* @param {*} [options] Override http request option.
|
7009
7150
|
* @throws {RequiredError}
|
7010
7151
|
*/
|
7011
|
-
async getUserOrder(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
7152
|
+
async getUserOrder(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserOrder>> {
|
7012
7153
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserOrder(id, options);
|
7013
7154
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
7014
7155
|
},
|
@@ -7043,7 +7184,7 @@ export const OrderApiFp = function(configuration?: Configuration) {
|
|
7043
7184
|
* @param {*} [options] Override http request option.
|
7044
7185
|
* @throws {RequiredError}
|
7045
7186
|
*/
|
7046
|
-
async listOrdersUser(paginationToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
7187
|
+
async listOrdersUser(paginationToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserOrderListResponse>> {
|
7047
7188
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrdersUser(paginationToken, search, productID, balanceIDs, createdAfter, createdBefore, userIDs, options);
|
7048
7189
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
7049
7190
|
},
|
@@ -7064,7 +7205,7 @@ export const OrderApiFactory = function (configuration?: Configuration, basePath
|
|
7064
7205
|
* @param {*} [options] Override http request option.
|
7065
7206
|
* @throws {RequiredError}
|
7066
7207
|
*/
|
7067
|
-
createOrder(orderCreationRequest?: OrderCreationRequest, options?: any): AxiosPromise<
|
7208
|
+
createOrder(orderCreationRequest?: OrderCreationRequest, options?: any): AxiosPromise<UserOrder> {
|
7068
7209
|
return localVarFp.createOrder(orderCreationRequest, options).then((request) => request(axios, basePath));
|
7069
7210
|
},
|
7070
7211
|
/**
|
@@ -7084,7 +7225,7 @@ export const OrderApiFactory = function (configuration?: Configuration, basePath
|
|
7084
7225
|
* @param {*} [options] Override http request option.
|
7085
7226
|
* @throws {RequiredError}
|
7086
7227
|
*/
|
7087
|
-
getUserOrder(id: string, options?: any): AxiosPromise<
|
7228
|
+
getUserOrder(id: string, options?: any): AxiosPromise<UserOrder> {
|
7088
7229
|
return localVarFp.getUserOrder(id, options).then((request) => request(axios, basePath));
|
7089
7230
|
},
|
7090
7231
|
/**
|
@@ -7117,7 +7258,7 @@ export const OrderApiFactory = function (configuration?: Configuration, basePath
|
|
7117
7258
|
* @param {*} [options] Override http request option.
|
7118
7259
|
* @throws {RequiredError}
|
7119
7260
|
*/
|
7120
|
-
listOrdersUser(paginationToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, options?: any): AxiosPromise<
|
7261
|
+
listOrdersUser(paginationToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, options?: any): AxiosPromise<UserOrderListResponse> {
|
7121
7262
|
return localVarFp.listOrdersUser(paginationToken, search, productID, balanceIDs, createdAfter, createdBefore, userIDs, options).then((request) => request(axios, basePath));
|
7122
7263
|
},
|
7123
7264
|
};
|
package/dist/api.d.ts
CHANGED
@@ -181,12 +181,6 @@ export interface Balance {
|
|
181
181
|
* @memberof Balance
|
182
182
|
*/
|
183
183
|
'beneficiary': Beneficiary;
|
184
|
-
/**
|
185
|
-
*
|
186
|
-
* @type {TransactionCurrencyKind}
|
187
|
-
* @memberof Balance
|
188
|
-
*/
|
189
|
-
'currency': TransactionCurrencyKind;
|
190
184
|
}
|
191
185
|
/**
|
192
186
|
*
|
@@ -212,12 +206,6 @@ export interface BalanceUpdateRequest {
|
|
212
206
|
* @memberof BalanceUpdateRequest
|
213
207
|
*/
|
214
208
|
'transactionKind'?: TransactionKind;
|
215
|
-
/**
|
216
|
-
*
|
217
|
-
* @type {TransactionCurrencyKind}
|
218
|
-
* @memberof BalanceUpdateRequest
|
219
|
-
*/
|
220
|
-
'currency'?: TransactionCurrencyKind;
|
221
209
|
}
|
222
210
|
/**
|
223
211
|
*
|
@@ -243,12 +231,6 @@ export interface BalanceWithBeneficiaryRef {
|
|
243
231
|
* @memberof BalanceWithBeneficiaryRef
|
244
232
|
*/
|
245
233
|
'beneficiaryRef': BeneficiaryWithRef;
|
246
|
-
/**
|
247
|
-
*
|
248
|
-
* @type {TransactionCurrencyKind}
|
249
|
-
* @memberof BalanceWithBeneficiaryRef
|
250
|
-
*/
|
251
|
-
'currency': TransactionCurrencyKind;
|
252
234
|
}
|
253
235
|
/**
|
254
236
|
*
|
@@ -1200,10 +1182,10 @@ export interface Order {
|
|
1200
1182
|
'createdAt'?: string;
|
1201
1183
|
/**
|
1202
1184
|
*
|
1203
|
-
* @type {
|
1185
|
+
* @type {OrderKind}
|
1204
1186
|
* @memberof Order
|
1205
1187
|
*/
|
1206
|
-
'kind'
|
1188
|
+
'kind': OrderKind;
|
1207
1189
|
/**
|
1208
1190
|
*
|
1209
1191
|
* @type {string}
|
@@ -1223,11 +1205,6 @@ export interface Order {
|
|
1223
1205
|
*/
|
1224
1206
|
'status'?: OrderStatus;
|
1225
1207
|
}
|
1226
|
-
export declare const OrderKindEnum: {
|
1227
|
-
readonly Webshop: "webshop";
|
1228
|
-
readonly Promotions: "promotions";
|
1229
|
-
};
|
1230
|
-
export type OrderKindEnum = typeof OrderKindEnum[keyof typeof OrderKindEnum];
|
1231
1208
|
/**
|
1232
1209
|
*
|
1233
1210
|
* @export
|
@@ -1266,6 +1243,16 @@ export interface OrderItemCreationRequest {
|
|
1266
1243
|
*/
|
1267
1244
|
'productId': string;
|
1268
1245
|
}
|
1246
|
+
/**
|
1247
|
+
*
|
1248
|
+
* @export
|
1249
|
+
* @enum {string}
|
1250
|
+
*/
|
1251
|
+
export declare const OrderKind: {
|
1252
|
+
readonly Webshop: "webshop";
|
1253
|
+
readonly Promotions: "promotions";
|
1254
|
+
};
|
1255
|
+
export type OrderKind = typeof OrderKind[keyof typeof OrderKind];
|
1269
1256
|
/**
|
1270
1257
|
*
|
1271
1258
|
* @export
|
@@ -3338,24 +3325,7 @@ export interface Transaction {
|
|
3338
3325
|
* @memberof Transaction
|
3339
3326
|
*/
|
3340
3327
|
'createdAt': string;
|
3341
|
-
/**
|
3342
|
-
*
|
3343
|
-
* @type {TransactionCurrencyKind}
|
3344
|
-
* @memberof Transaction
|
3345
|
-
*/
|
3346
|
-
'currency': TransactionCurrencyKind;
|
3347
3328
|
}
|
3348
|
-
/**
|
3349
|
-
*
|
3350
|
-
* @export
|
3351
|
-
* @enum {string}
|
3352
|
-
*/
|
3353
|
-
export declare const TransactionCurrencyKind: {
|
3354
|
-
readonly Points: "points";
|
3355
|
-
readonly CustomDealBudget: "customDealBudget";
|
3356
|
-
readonly SalesBudget: "salesBudget";
|
3357
|
-
};
|
3358
|
-
export type TransactionCurrencyKind = typeof TransactionCurrencyKind[keyof typeof TransactionCurrencyKind];
|
3359
3329
|
/**
|
3360
3330
|
*
|
3361
3331
|
* @export
|
@@ -3737,6 +3707,25 @@ export type UserDetails = {
|
|
3737
3707
|
} & CustomerUserDetails | {
|
3738
3708
|
source: 'system';
|
3739
3709
|
} & SystemUserDetails;
|
3710
|
+
/**
|
3711
|
+
*
|
3712
|
+
* @export
|
3713
|
+
* @interface UserItem
|
3714
|
+
*/
|
3715
|
+
export interface UserItem {
|
3716
|
+
/**
|
3717
|
+
*
|
3718
|
+
* @type {number}
|
3719
|
+
* @memberof UserItem
|
3720
|
+
*/
|
3721
|
+
'qty': number;
|
3722
|
+
/**
|
3723
|
+
*
|
3724
|
+
* @type {UserProduct}
|
3725
|
+
* @memberof UserItem
|
3726
|
+
*/
|
3727
|
+
'product': UserProduct;
|
3728
|
+
}
|
3740
3729
|
/**
|
3741
3730
|
*
|
3742
3731
|
* @export
|
@@ -3762,6 +3751,159 @@ export interface UserListResponse {
|
|
3762
3751
|
*/
|
3763
3752
|
'hasMore': boolean;
|
3764
3753
|
}
|
3754
|
+
/**
|
3755
|
+
*
|
3756
|
+
* @export
|
3757
|
+
* @interface UserOrder
|
3758
|
+
*/
|
3759
|
+
export interface UserOrder {
|
3760
|
+
/**
|
3761
|
+
*
|
3762
|
+
* @type {Balance}
|
3763
|
+
* @memberof UserOrder
|
3764
|
+
*/
|
3765
|
+
'balance'?: Balance;
|
3766
|
+
/**
|
3767
|
+
*
|
3768
|
+
* @type {Array<UserItem>}
|
3769
|
+
* @memberof UserOrder
|
3770
|
+
*/
|
3771
|
+
'items': Array<UserItem>;
|
3772
|
+
/**
|
3773
|
+
*
|
3774
|
+
* @type {string}
|
3775
|
+
* @memberof UserOrder
|
3776
|
+
*/
|
3777
|
+
'id': string;
|
3778
|
+
/**
|
3779
|
+
*
|
3780
|
+
* @type {string}
|
3781
|
+
* @memberof UserOrder
|
3782
|
+
*/
|
3783
|
+
'createdAt'?: string;
|
3784
|
+
/**
|
3785
|
+
*
|
3786
|
+
* @type {OrderKind}
|
3787
|
+
* @memberof UserOrder
|
3788
|
+
*/
|
3789
|
+
'kind': OrderKind;
|
3790
|
+
/**
|
3791
|
+
*
|
3792
|
+
* @type {string}
|
3793
|
+
* @memberof UserOrder
|
3794
|
+
*/
|
3795
|
+
'source'?: string;
|
3796
|
+
/**
|
3797
|
+
*
|
3798
|
+
* @type {string}
|
3799
|
+
* @memberof UserOrder
|
3800
|
+
*/
|
3801
|
+
'userID'?: string;
|
3802
|
+
/**
|
3803
|
+
*
|
3804
|
+
* @type {OrderStatus}
|
3805
|
+
* @memberof UserOrder
|
3806
|
+
*/
|
3807
|
+
'status'?: OrderStatus;
|
3808
|
+
}
|
3809
|
+
/**
|
3810
|
+
*
|
3811
|
+
* @export
|
3812
|
+
* @interface UserOrderListResponse
|
3813
|
+
*/
|
3814
|
+
export interface UserOrderListResponse {
|
3815
|
+
/**
|
3816
|
+
*
|
3817
|
+
* @type {Array<UserOrder>}
|
3818
|
+
* @memberof UserOrderListResponse
|
3819
|
+
*/
|
3820
|
+
'orders': Array<UserOrder>;
|
3821
|
+
/**
|
3822
|
+
* This is the pagination token
|
3823
|
+
* @type {string}
|
3824
|
+
* @memberof UserOrderListResponse
|
3825
|
+
*/
|
3826
|
+
'nextToken'?: string;
|
3827
|
+
}
|
3828
|
+
/**
|
3829
|
+
*
|
3830
|
+
* @export
|
3831
|
+
* @interface UserProduct
|
3832
|
+
*/
|
3833
|
+
export interface UserProduct {
|
3834
|
+
/**
|
3835
|
+
*
|
3836
|
+
* @type {string}
|
3837
|
+
* @memberof UserProduct
|
3838
|
+
*/
|
3839
|
+
'id': string;
|
3840
|
+
/**
|
3841
|
+
*
|
3842
|
+
* @type {string}
|
3843
|
+
* @memberof UserProduct
|
3844
|
+
*/
|
3845
|
+
'name': string;
|
3846
|
+
/**
|
3847
|
+
*
|
3848
|
+
* @type {string}
|
3849
|
+
* @memberof UserProduct
|
3850
|
+
*/
|
3851
|
+
'description': string;
|
3852
|
+
/**
|
3853
|
+
*
|
3854
|
+
* @type {number}
|
3855
|
+
* @memberof UserProduct
|
3856
|
+
*/
|
3857
|
+
'value': number;
|
3858
|
+
/**
|
3859
|
+
*
|
3860
|
+
* @type {ProductAvailability}
|
3861
|
+
* @memberof UserProduct
|
3862
|
+
*/
|
3863
|
+
'availability': ProductAvailability;
|
3864
|
+
/**
|
3865
|
+
*
|
3866
|
+
* @type {Array<string>}
|
3867
|
+
* @memberof UserProduct
|
3868
|
+
*/
|
3869
|
+
'media': Array<string>;
|
3870
|
+
/**
|
3871
|
+
*
|
3872
|
+
* @type {string}
|
3873
|
+
* @memberof UserProduct
|
3874
|
+
*/
|
3875
|
+
'productCode': string;
|
3876
|
+
/**
|
3877
|
+
*
|
3878
|
+
* @type {ProductKind}
|
3879
|
+
* @memberof UserProduct
|
3880
|
+
*/
|
3881
|
+
'kind': ProductKind;
|
3882
|
+
/**
|
3883
|
+
*
|
3884
|
+
* @type {string}
|
3885
|
+
* @memberof UserProduct
|
3886
|
+
*/
|
3887
|
+
'createdAt': string;
|
3888
|
+
/**
|
3889
|
+
*
|
3890
|
+
* @type {string}
|
3891
|
+
* @memberof UserProduct
|
3892
|
+
*/
|
3893
|
+
'updatedAt': string;
|
3894
|
+
/**
|
3895
|
+
*
|
3896
|
+
* @type {string}
|
3897
|
+
* @memberof UserProduct
|
3898
|
+
*/
|
3899
|
+
'category': string;
|
3900
|
+
/**
|
3901
|
+
*
|
3902
|
+
* @type {number}
|
3903
|
+
* @memberof UserProduct
|
3904
|
+
*/
|
3905
|
+
'quantity': number;
|
3906
|
+
}
|
3765
3907
|
/**
|
3766
3908
|
*
|
3767
3909
|
* @export
|
@@ -5271,7 +5413,7 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
5271
5413
|
* @param {*} [options] Override http request option.
|
5272
5414
|
* @throws {RequiredError}
|
5273
5415
|
*/
|
5274
|
-
createOrder(orderCreationRequest?: OrderCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
5416
|
+
createOrder(orderCreationRequest?: OrderCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserOrder>>;
|
5275
5417
|
/**
|
5276
5418
|
* Get order details
|
5277
5419
|
* @summary Get order details
|
@@ -5287,7 +5429,7 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
5287
5429
|
* @param {*} [options] Override http request option.
|
5288
5430
|
* @throws {RequiredError}
|
5289
5431
|
*/
|
5290
|
-
getUserOrder(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
5432
|
+
getUserOrder(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserOrder>>;
|
5291
5433
|
/**
|
5292
5434
|
* List existing orders
|
5293
5435
|
* @summary List existing orders
|
@@ -5316,7 +5458,7 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
5316
5458
|
* @param {*} [options] Override http request option.
|
5317
5459
|
* @throws {RequiredError}
|
5318
5460
|
*/
|
5319
|
-
listOrdersUser(paginationToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
5461
|
+
listOrdersUser(paginationToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserOrderListResponse>>;
|
5320
5462
|
};
|
5321
5463
|
/**
|
5322
5464
|
* OrderApi - factory interface
|
@@ -5330,7 +5472,7 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
|
|
5330
5472
|
* @param {*} [options] Override http request option.
|
5331
5473
|
* @throws {RequiredError}
|
5332
5474
|
*/
|
5333
|
-
createOrder(orderCreationRequest?: OrderCreationRequest, options?: any): AxiosPromise<
|
5475
|
+
createOrder(orderCreationRequest?: OrderCreationRequest, options?: any): AxiosPromise<UserOrder>;
|
5334
5476
|
/**
|
5335
5477
|
* Get order details
|
5336
5478
|
* @summary Get order details
|
@@ -5346,7 +5488,7 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
|
|
5346
5488
|
* @param {*} [options] Override http request option.
|
5347
5489
|
* @throws {RequiredError}
|
5348
5490
|
*/
|
5349
|
-
getUserOrder(id: string, options?: any): AxiosPromise<
|
5491
|
+
getUserOrder(id: string, options?: any): AxiosPromise<UserOrder>;
|
5350
5492
|
/**
|
5351
5493
|
* List existing orders
|
5352
5494
|
* @summary List existing orders
|
@@ -5375,7 +5517,7 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
|
|
5375
5517
|
* @param {*} [options] Override http request option.
|
5376
5518
|
* @throws {RequiredError}
|
5377
5519
|
*/
|
5378
|
-
listOrdersUser(paginationToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, options?: any): AxiosPromise<
|
5520
|
+
listOrdersUser(paginationToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, options?: any): AxiosPromise<UserOrderListResponse>;
|
5379
5521
|
};
|
5380
5522
|
/**
|
5381
5523
|
* OrderApi - object-oriented interface
|
@@ -5392,7 +5534,7 @@ export declare class OrderApi extends BaseAPI {
|
|
5392
5534
|
* @throws {RequiredError}
|
5393
5535
|
* @memberof OrderApi
|
5394
5536
|
*/
|
5395
|
-
createOrder(orderCreationRequest?: OrderCreationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
5537
|
+
createOrder(orderCreationRequest?: OrderCreationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UserOrder, any>>;
|
5396
5538
|
/**
|
5397
5539
|
* Get order details
|
5398
5540
|
* @summary Get order details
|
@@ -5410,7 +5552,7 @@ export declare class OrderApi extends BaseAPI {
|
|
5410
5552
|
* @throws {RequiredError}
|
5411
5553
|
* @memberof OrderApi
|
5412
5554
|
*/
|
5413
|
-
getUserOrder(id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
5555
|
+
getUserOrder(id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UserOrder, any>>;
|
5414
5556
|
/**
|
5415
5557
|
* List existing orders
|
5416
5558
|
* @summary List existing orders
|
@@ -5441,7 +5583,7 @@ export declare class OrderApi extends BaseAPI {
|
|
5441
5583
|
* @throws {RequiredError}
|
5442
5584
|
* @memberof OrderApi
|
5443
5585
|
*/
|
5444
|
-
listOrdersUser(paginationToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
5586
|
+
listOrdersUser(paginationToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UserOrderListResponse, any>>;
|
5445
5587
|
}
|
5446
5588
|
/**
|
5447
5589
|
* ProductApi - axios parameter creator
|
package/dist/api.js
CHANGED
@@ -22,9 +22,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
22
22
|
});
|
23
23
|
};
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
25
|
-
exports.BalanceApiFactory = exports.BalanceApiFp = exports.BalanceApiAxiosParamCreator = exports.AuditApi = exports.AuditApiFactory = exports.AuditApiFp = exports.AuditApiAxiosParamCreator = exports.WebhookKind = exports.UserSource = exports.UserRole = exports.TransactionSource = exports.TransactionKind = exports.TransactionEventKind = exports.
|
26
|
-
exports.ReportApiAxiosParamCreator = exports.PromotionApi = exports.PromotionApiFactory = exports.PromotionApiFp = exports.PromotionApiAxiosParamCreator = exports.ProgressApi = exports.ProgressApiFactory = exports.ProgressApiFp = exports.ProgressApiAxiosParamCreator = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiAxiosParamCreator = exports.NotificationApi = exports.NotificationApiFactory = exports.NotificationApiFp = exports.NotificationApiAxiosParamCreator = exports.IntegrationApi = exports.IntegrationApiFactory = exports.IntegrationApiFp = exports.IntegrationApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.CustomDealsApi = exports.CustomDealsApiFactory = exports.CustomDealsApiFp = exports.CustomDealsApiAxiosParamCreator = exports.ConfigurationApi = exports.ConfigurationApiFactory = exports.ConfigurationApiFp = exports.ConfigurationApiAxiosParamCreator = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.CategoryApi = exports.CategoryApiFactory = exports.CategoryApiFp = exports.CategoryApiAxiosParamCreator = exports.BulkApi = exports.BulkApiFactory = exports.BulkApiFp = exports.BulkApiAxiosParamCreator =
|
27
|
-
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TransactionApi = exports.TransactionApiFactory = exports.TransactionApiFp = exports.TransactionApiAxiosParamCreator = exports.TenantApi = exports.TenantApiFactory = exports.TenantApiFp = exports.TenantApiAxiosParamCreator = exports.TagApi = exports.TagApiFactory = exports.TagApiFp = exports.TagApiAxiosParamCreator = exports.SegmentApi = exports.SegmentApiFactory = exports.SegmentApiFp = exports.SegmentApiAxiosParamCreator = exports.ReportApi = exports.ReportApiFactory =
|
25
|
+
exports.BalanceApi = exports.BalanceApiFactory = exports.BalanceApiFp = exports.BalanceApiAxiosParamCreator = exports.AuditApi = exports.AuditApiFactory = exports.AuditApiFp = exports.AuditApiAxiosParamCreator = exports.WebhookKind = exports.UserSource = exports.UserRole = exports.TransactionSource = exports.TransactionKind = exports.TransactionEventKind = exports.TargetMu = exports.TagValidatorType = exports.TagRuleKind = exports.TagDataType = exports.SortDirection = exports.RuleKind = exports.RuleGroupState = exports.ReportTypesResponseTypesEnum = exports.Repetition = exports.PromotionType = exports.PromotionStatus = exports.PromotionSortByField = exports.ProgressStateAggregation = exports.ProgressState = exports.ProgressInterval = exports.ProductUsage = exports.ProductStatus = exports.ProductRequestStatus = exports.ProductRequestApprovalRequestStatusEnum = exports.ProductKind = exports.ProductAvailability = exports.OrderStatus = exports.OrderKind = exports.NotificationStatus = exports.NotificationKind = exports.NotificationChannel = exports.Locale = exports.Feature = exports.EventCreationRequestKindEnum = exports.CustomDealRestrictionPriority = exports.Condition = exports.BonusMu = exports.BeneficiaryKind = exports.AuditLogObjectType = exports.AuditLogActionEnum = exports.ApiKeyKind = void 0;
|
26
|
+
exports.ReportApiFp = exports.ReportApiAxiosParamCreator = exports.PromotionApi = exports.PromotionApiFactory = exports.PromotionApiFp = exports.PromotionApiAxiosParamCreator = exports.ProgressApi = exports.ProgressApiFactory = exports.ProgressApiFp = exports.ProgressApiAxiosParamCreator = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiAxiosParamCreator = exports.NotificationApi = exports.NotificationApiFactory = exports.NotificationApiFp = exports.NotificationApiAxiosParamCreator = exports.IntegrationApi = exports.IntegrationApiFactory = exports.IntegrationApiFp = exports.IntegrationApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.CustomDealsApi = exports.CustomDealsApiFactory = exports.CustomDealsApiFp = exports.CustomDealsApiAxiosParamCreator = exports.ConfigurationApi = exports.ConfigurationApiFactory = exports.ConfigurationApiFp = exports.ConfigurationApiAxiosParamCreator = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.CategoryApi = exports.CategoryApiFactory = exports.CategoryApiFp = exports.CategoryApiAxiosParamCreator = exports.BulkApi = exports.BulkApiFactory = exports.BulkApiFp = exports.BulkApiAxiosParamCreator = void 0;
|
27
|
+
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TransactionApi = exports.TransactionApiFactory = exports.TransactionApiFp = exports.TransactionApiAxiosParamCreator = exports.TenantApi = exports.TenantApiFactory = exports.TenantApiFp = exports.TenantApiAxiosParamCreator = exports.TagApi = exports.TagApiFactory = exports.TagApiFp = exports.TagApiAxiosParamCreator = exports.SegmentApi = exports.SegmentApiFactory = exports.SegmentApiFp = exports.SegmentApiAxiosParamCreator = exports.ReportApi = exports.ReportApiFactory = void 0;
|
28
28
|
const axios_1 = require("axios");
|
29
29
|
// Some imports not used depending on template conditions
|
30
30
|
// @ts-ignore
|
@@ -148,7 +148,12 @@ exports.NotificationStatus = {
|
|
148
148
|
Unread: 'unread',
|
149
149
|
Read: 'read'
|
150
150
|
};
|
151
|
-
|
151
|
+
/**
|
152
|
+
*
|
153
|
+
* @export
|
154
|
+
* @enum {string}
|
155
|
+
*/
|
156
|
+
exports.OrderKind = {
|
152
157
|
Webshop: 'webshop',
|
153
158
|
Promotions: 'promotions'
|
154
159
|
};
|
@@ -352,16 +357,6 @@ exports.TargetMu = {
|
|
352
357
|
Product: 'product',
|
353
358
|
AdditionalMu: 'additionalMU'
|
354
359
|
};
|
355
|
-
/**
|
356
|
-
*
|
357
|
-
* @export
|
358
|
-
* @enum {string}
|
359
|
-
*/
|
360
|
-
exports.TransactionCurrencyKind = {
|
361
|
-
Points: 'points',
|
362
|
-
CustomDealBudget: 'customDealBudget',
|
363
|
-
SalesBudget: 'salesBudget'
|
364
|
-
};
|
365
360
|
/**
|
366
361
|
*
|
367
362
|
* @export
|
package/dist/esm/api.d.ts
CHANGED
@@ -181,12 +181,6 @@ export interface Balance {
|
|
181
181
|
* @memberof Balance
|
182
182
|
*/
|
183
183
|
'beneficiary': Beneficiary;
|
184
|
-
/**
|
185
|
-
*
|
186
|
-
* @type {TransactionCurrencyKind}
|
187
|
-
* @memberof Balance
|
188
|
-
*/
|
189
|
-
'currency': TransactionCurrencyKind;
|
190
184
|
}
|
191
185
|
/**
|
192
186
|
*
|
@@ -212,12 +206,6 @@ export interface BalanceUpdateRequest {
|
|
212
206
|
* @memberof BalanceUpdateRequest
|
213
207
|
*/
|
214
208
|
'transactionKind'?: TransactionKind;
|
215
|
-
/**
|
216
|
-
*
|
217
|
-
* @type {TransactionCurrencyKind}
|
218
|
-
* @memberof BalanceUpdateRequest
|
219
|
-
*/
|
220
|
-
'currency'?: TransactionCurrencyKind;
|
221
209
|
}
|
222
210
|
/**
|
223
211
|
*
|
@@ -243,12 +231,6 @@ export interface BalanceWithBeneficiaryRef {
|
|
243
231
|
* @memberof BalanceWithBeneficiaryRef
|
244
232
|
*/
|
245
233
|
'beneficiaryRef': BeneficiaryWithRef;
|
246
|
-
/**
|
247
|
-
*
|
248
|
-
* @type {TransactionCurrencyKind}
|
249
|
-
* @memberof BalanceWithBeneficiaryRef
|
250
|
-
*/
|
251
|
-
'currency': TransactionCurrencyKind;
|
252
234
|
}
|
253
235
|
/**
|
254
236
|
*
|
@@ -1200,10 +1182,10 @@ export interface Order {
|
|
1200
1182
|
'createdAt'?: string;
|
1201
1183
|
/**
|
1202
1184
|
*
|
1203
|
-
* @type {
|
1185
|
+
* @type {OrderKind}
|
1204
1186
|
* @memberof Order
|
1205
1187
|
*/
|
1206
|
-
'kind'
|
1188
|
+
'kind': OrderKind;
|
1207
1189
|
/**
|
1208
1190
|
*
|
1209
1191
|
* @type {string}
|
@@ -1223,11 +1205,6 @@ export interface Order {
|
|
1223
1205
|
*/
|
1224
1206
|
'status'?: OrderStatus;
|
1225
1207
|
}
|
1226
|
-
export declare const OrderKindEnum: {
|
1227
|
-
readonly Webshop: "webshop";
|
1228
|
-
readonly Promotions: "promotions";
|
1229
|
-
};
|
1230
|
-
export type OrderKindEnum = typeof OrderKindEnum[keyof typeof OrderKindEnum];
|
1231
1208
|
/**
|
1232
1209
|
*
|
1233
1210
|
* @export
|
@@ -1266,6 +1243,16 @@ export interface OrderItemCreationRequest {
|
|
1266
1243
|
*/
|
1267
1244
|
'productId': string;
|
1268
1245
|
}
|
1246
|
+
/**
|
1247
|
+
*
|
1248
|
+
* @export
|
1249
|
+
* @enum {string}
|
1250
|
+
*/
|
1251
|
+
export declare const OrderKind: {
|
1252
|
+
readonly Webshop: "webshop";
|
1253
|
+
readonly Promotions: "promotions";
|
1254
|
+
};
|
1255
|
+
export type OrderKind = typeof OrderKind[keyof typeof OrderKind];
|
1269
1256
|
/**
|
1270
1257
|
*
|
1271
1258
|
* @export
|
@@ -3338,24 +3325,7 @@ export interface Transaction {
|
|
3338
3325
|
* @memberof Transaction
|
3339
3326
|
*/
|
3340
3327
|
'createdAt': string;
|
3341
|
-
/**
|
3342
|
-
*
|
3343
|
-
* @type {TransactionCurrencyKind}
|
3344
|
-
* @memberof Transaction
|
3345
|
-
*/
|
3346
|
-
'currency': TransactionCurrencyKind;
|
3347
3328
|
}
|
3348
|
-
/**
|
3349
|
-
*
|
3350
|
-
* @export
|
3351
|
-
* @enum {string}
|
3352
|
-
*/
|
3353
|
-
export declare const TransactionCurrencyKind: {
|
3354
|
-
readonly Points: "points";
|
3355
|
-
readonly CustomDealBudget: "customDealBudget";
|
3356
|
-
readonly SalesBudget: "salesBudget";
|
3357
|
-
};
|
3358
|
-
export type TransactionCurrencyKind = typeof TransactionCurrencyKind[keyof typeof TransactionCurrencyKind];
|
3359
3329
|
/**
|
3360
3330
|
*
|
3361
3331
|
* @export
|
@@ -3737,6 +3707,25 @@ export type UserDetails = {
|
|
3737
3707
|
} & CustomerUserDetails | {
|
3738
3708
|
source: 'system';
|
3739
3709
|
} & SystemUserDetails;
|
3710
|
+
/**
|
3711
|
+
*
|
3712
|
+
* @export
|
3713
|
+
* @interface UserItem
|
3714
|
+
*/
|
3715
|
+
export interface UserItem {
|
3716
|
+
/**
|
3717
|
+
*
|
3718
|
+
* @type {number}
|
3719
|
+
* @memberof UserItem
|
3720
|
+
*/
|
3721
|
+
'qty': number;
|
3722
|
+
/**
|
3723
|
+
*
|
3724
|
+
* @type {UserProduct}
|
3725
|
+
* @memberof UserItem
|
3726
|
+
*/
|
3727
|
+
'product': UserProduct;
|
3728
|
+
}
|
3740
3729
|
/**
|
3741
3730
|
*
|
3742
3731
|
* @export
|
@@ -3762,6 +3751,159 @@ export interface UserListResponse {
|
|
3762
3751
|
*/
|
3763
3752
|
'hasMore': boolean;
|
3764
3753
|
}
|
3754
|
+
/**
|
3755
|
+
*
|
3756
|
+
* @export
|
3757
|
+
* @interface UserOrder
|
3758
|
+
*/
|
3759
|
+
export interface UserOrder {
|
3760
|
+
/**
|
3761
|
+
*
|
3762
|
+
* @type {Balance}
|
3763
|
+
* @memberof UserOrder
|
3764
|
+
*/
|
3765
|
+
'balance'?: Balance;
|
3766
|
+
/**
|
3767
|
+
*
|
3768
|
+
* @type {Array<UserItem>}
|
3769
|
+
* @memberof UserOrder
|
3770
|
+
*/
|
3771
|
+
'items': Array<UserItem>;
|
3772
|
+
/**
|
3773
|
+
*
|
3774
|
+
* @type {string}
|
3775
|
+
* @memberof UserOrder
|
3776
|
+
*/
|
3777
|
+
'id': string;
|
3778
|
+
/**
|
3779
|
+
*
|
3780
|
+
* @type {string}
|
3781
|
+
* @memberof UserOrder
|
3782
|
+
*/
|
3783
|
+
'createdAt'?: string;
|
3784
|
+
/**
|
3785
|
+
*
|
3786
|
+
* @type {OrderKind}
|
3787
|
+
* @memberof UserOrder
|
3788
|
+
*/
|
3789
|
+
'kind': OrderKind;
|
3790
|
+
/**
|
3791
|
+
*
|
3792
|
+
* @type {string}
|
3793
|
+
* @memberof UserOrder
|
3794
|
+
*/
|
3795
|
+
'source'?: string;
|
3796
|
+
/**
|
3797
|
+
*
|
3798
|
+
* @type {string}
|
3799
|
+
* @memberof UserOrder
|
3800
|
+
*/
|
3801
|
+
'userID'?: string;
|
3802
|
+
/**
|
3803
|
+
*
|
3804
|
+
* @type {OrderStatus}
|
3805
|
+
* @memberof UserOrder
|
3806
|
+
*/
|
3807
|
+
'status'?: OrderStatus;
|
3808
|
+
}
|
3809
|
+
/**
|
3810
|
+
*
|
3811
|
+
* @export
|
3812
|
+
* @interface UserOrderListResponse
|
3813
|
+
*/
|
3814
|
+
export interface UserOrderListResponse {
|
3815
|
+
/**
|
3816
|
+
*
|
3817
|
+
* @type {Array<UserOrder>}
|
3818
|
+
* @memberof UserOrderListResponse
|
3819
|
+
*/
|
3820
|
+
'orders': Array<UserOrder>;
|
3821
|
+
/**
|
3822
|
+
* This is the pagination token
|
3823
|
+
* @type {string}
|
3824
|
+
* @memberof UserOrderListResponse
|
3825
|
+
*/
|
3826
|
+
'nextToken'?: string;
|
3827
|
+
}
|
3828
|
+
/**
|
3829
|
+
*
|
3830
|
+
* @export
|
3831
|
+
* @interface UserProduct
|
3832
|
+
*/
|
3833
|
+
export interface UserProduct {
|
3834
|
+
/**
|
3835
|
+
*
|
3836
|
+
* @type {string}
|
3837
|
+
* @memberof UserProduct
|
3838
|
+
*/
|
3839
|
+
'id': string;
|
3840
|
+
/**
|
3841
|
+
*
|
3842
|
+
* @type {string}
|
3843
|
+
* @memberof UserProduct
|
3844
|
+
*/
|
3845
|
+
'name': string;
|
3846
|
+
/**
|
3847
|
+
*
|
3848
|
+
* @type {string}
|
3849
|
+
* @memberof UserProduct
|
3850
|
+
*/
|
3851
|
+
'description': string;
|
3852
|
+
/**
|
3853
|
+
*
|
3854
|
+
* @type {number}
|
3855
|
+
* @memberof UserProduct
|
3856
|
+
*/
|
3857
|
+
'value': number;
|
3858
|
+
/**
|
3859
|
+
*
|
3860
|
+
* @type {ProductAvailability}
|
3861
|
+
* @memberof UserProduct
|
3862
|
+
*/
|
3863
|
+
'availability': ProductAvailability;
|
3864
|
+
/**
|
3865
|
+
*
|
3866
|
+
* @type {Array<string>}
|
3867
|
+
* @memberof UserProduct
|
3868
|
+
*/
|
3869
|
+
'media': Array<string>;
|
3870
|
+
/**
|
3871
|
+
*
|
3872
|
+
* @type {string}
|
3873
|
+
* @memberof UserProduct
|
3874
|
+
*/
|
3875
|
+
'productCode': string;
|
3876
|
+
/**
|
3877
|
+
*
|
3878
|
+
* @type {ProductKind}
|
3879
|
+
* @memberof UserProduct
|
3880
|
+
*/
|
3881
|
+
'kind': ProductKind;
|
3882
|
+
/**
|
3883
|
+
*
|
3884
|
+
* @type {string}
|
3885
|
+
* @memberof UserProduct
|
3886
|
+
*/
|
3887
|
+
'createdAt': string;
|
3888
|
+
/**
|
3889
|
+
*
|
3890
|
+
* @type {string}
|
3891
|
+
* @memberof UserProduct
|
3892
|
+
*/
|
3893
|
+
'updatedAt': string;
|
3894
|
+
/**
|
3895
|
+
*
|
3896
|
+
* @type {string}
|
3897
|
+
* @memberof UserProduct
|
3898
|
+
*/
|
3899
|
+
'category': string;
|
3900
|
+
/**
|
3901
|
+
*
|
3902
|
+
* @type {number}
|
3903
|
+
* @memberof UserProduct
|
3904
|
+
*/
|
3905
|
+
'quantity': number;
|
3906
|
+
}
|
3765
3907
|
/**
|
3766
3908
|
*
|
3767
3909
|
* @export
|
@@ -5271,7 +5413,7 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
5271
5413
|
* @param {*} [options] Override http request option.
|
5272
5414
|
* @throws {RequiredError}
|
5273
5415
|
*/
|
5274
|
-
createOrder(orderCreationRequest?: OrderCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
5416
|
+
createOrder(orderCreationRequest?: OrderCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserOrder>>;
|
5275
5417
|
/**
|
5276
5418
|
* Get order details
|
5277
5419
|
* @summary Get order details
|
@@ -5287,7 +5429,7 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
5287
5429
|
* @param {*} [options] Override http request option.
|
5288
5430
|
* @throws {RequiredError}
|
5289
5431
|
*/
|
5290
|
-
getUserOrder(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
5432
|
+
getUserOrder(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserOrder>>;
|
5291
5433
|
/**
|
5292
5434
|
* List existing orders
|
5293
5435
|
* @summary List existing orders
|
@@ -5316,7 +5458,7 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
5316
5458
|
* @param {*} [options] Override http request option.
|
5317
5459
|
* @throws {RequiredError}
|
5318
5460
|
*/
|
5319
|
-
listOrdersUser(paginationToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
5461
|
+
listOrdersUser(paginationToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserOrderListResponse>>;
|
5320
5462
|
};
|
5321
5463
|
/**
|
5322
5464
|
* OrderApi - factory interface
|
@@ -5330,7 +5472,7 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
|
|
5330
5472
|
* @param {*} [options] Override http request option.
|
5331
5473
|
* @throws {RequiredError}
|
5332
5474
|
*/
|
5333
|
-
createOrder(orderCreationRequest?: OrderCreationRequest, options?: any): AxiosPromise<
|
5475
|
+
createOrder(orderCreationRequest?: OrderCreationRequest, options?: any): AxiosPromise<UserOrder>;
|
5334
5476
|
/**
|
5335
5477
|
* Get order details
|
5336
5478
|
* @summary Get order details
|
@@ -5346,7 +5488,7 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
|
|
5346
5488
|
* @param {*} [options] Override http request option.
|
5347
5489
|
* @throws {RequiredError}
|
5348
5490
|
*/
|
5349
|
-
getUserOrder(id: string, options?: any): AxiosPromise<
|
5491
|
+
getUserOrder(id: string, options?: any): AxiosPromise<UserOrder>;
|
5350
5492
|
/**
|
5351
5493
|
* List existing orders
|
5352
5494
|
* @summary List existing orders
|
@@ -5375,7 +5517,7 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
|
|
5375
5517
|
* @param {*} [options] Override http request option.
|
5376
5518
|
* @throws {RequiredError}
|
5377
5519
|
*/
|
5378
|
-
listOrdersUser(paginationToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, options?: any): AxiosPromise<
|
5520
|
+
listOrdersUser(paginationToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, options?: any): AxiosPromise<UserOrderListResponse>;
|
5379
5521
|
};
|
5380
5522
|
/**
|
5381
5523
|
* OrderApi - object-oriented interface
|
@@ -5392,7 +5534,7 @@ export declare class OrderApi extends BaseAPI {
|
|
5392
5534
|
* @throws {RequiredError}
|
5393
5535
|
* @memberof OrderApi
|
5394
5536
|
*/
|
5395
|
-
createOrder(orderCreationRequest?: OrderCreationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
5537
|
+
createOrder(orderCreationRequest?: OrderCreationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UserOrder, any>>;
|
5396
5538
|
/**
|
5397
5539
|
* Get order details
|
5398
5540
|
* @summary Get order details
|
@@ -5410,7 +5552,7 @@ export declare class OrderApi extends BaseAPI {
|
|
5410
5552
|
* @throws {RequiredError}
|
5411
5553
|
* @memberof OrderApi
|
5412
5554
|
*/
|
5413
|
-
getUserOrder(id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
5555
|
+
getUserOrder(id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UserOrder, any>>;
|
5414
5556
|
/**
|
5415
5557
|
* List existing orders
|
5416
5558
|
* @summary List existing orders
|
@@ -5441,7 +5583,7 @@ export declare class OrderApi extends BaseAPI {
|
|
5441
5583
|
* @throws {RequiredError}
|
5442
5584
|
* @memberof OrderApi
|
5443
5585
|
*/
|
5444
|
-
listOrdersUser(paginationToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
5586
|
+
listOrdersUser(paginationToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UserOrderListResponse, any>>;
|
5445
5587
|
}
|
5446
5588
|
/**
|
5447
5589
|
* ProductApi - axios parameter creator
|
package/dist/esm/api.js
CHANGED
@@ -143,7 +143,12 @@ export const NotificationStatus = {
|
|
143
143
|
Unread: 'unread',
|
144
144
|
Read: 'read'
|
145
145
|
};
|
146
|
-
|
146
|
+
/**
|
147
|
+
*
|
148
|
+
* @export
|
149
|
+
* @enum {string}
|
150
|
+
*/
|
151
|
+
export const OrderKind = {
|
147
152
|
Webshop: 'webshop',
|
148
153
|
Promotions: 'promotions'
|
149
154
|
};
|
@@ -347,16 +352,6 @@ export const TargetMu = {
|
|
347
352
|
Product: 'product',
|
348
353
|
AdditionalMu: 'additionalMU'
|
349
354
|
};
|
350
|
-
/**
|
351
|
-
*
|
352
|
-
* @export
|
353
|
-
* @enum {string}
|
354
|
-
*/
|
355
|
-
export const TransactionCurrencyKind = {
|
356
|
-
Points: 'points',
|
357
|
-
CustomDealBudget: 'customDealBudget',
|
358
|
-
SalesBudget: 'salesBudget'
|
359
|
-
};
|
360
355
|
/**
|
361
356
|
*
|
362
357
|
* @export
|