flexinet-api 0.0.1208 → 0.0.1212

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 CHANGED
@@ -1,4 +1,4 @@
1
- ## flexinet-api@0.0.1208
1
+ ## flexinet-api@0.0.1212
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.1208 --save
39
+ npm install flexinet-api@0.0.1212 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/api.ts CHANGED
@@ -1258,10 +1258,10 @@ export interface Order {
1258
1258
  'createdAt'?: string;
1259
1259
  /**
1260
1260
  *
1261
- * @type {string}
1261
+ * @type {OrderKind}
1262
1262
  * @memberof Order
1263
1263
  */
1264
- 'kind'?: OrderKindEnum;
1264
+ 'kind': OrderKind;
1265
1265
  /**
1266
1266
  *
1267
1267
  * @type {string}
@@ -1282,12 +1282,6 @@ export interface Order {
1282
1282
  'status'?: OrderStatus;
1283
1283
  }
1284
1284
 
1285
- export const OrderKindEnum = {
1286
- Webshop: 'webshop',
1287
- Promotions: 'promotions'
1288
- } as const;
1289
-
1290
- export type OrderKindEnum = typeof OrderKindEnum[keyof typeof OrderKindEnum];
1291
1285
 
1292
1286
  /**
1293
1287
  *
@@ -1327,6 +1321,20 @@ export interface OrderItemCreationRequest {
1327
1321
  */
1328
1322
  'productId': string;
1329
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
+
1330
1338
  /**
1331
1339
  *
1332
1340
  * @export
@@ -3888,6 +3896,25 @@ export interface UserBalance {
3888
3896
  */
3889
3897
  export type UserDetails = { source: 'customer' } & CustomerUserDetails | { source: 'system' } & SystemUserDetails;
3890
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
+ }
3891
3918
  /**
3892
3919
  *
3893
3920
  * @export
@@ -3913,6 +3940,163 @@ export interface UserListResponse {
3913
3940
  */
3914
3941
  'hasMore': boolean;
3915
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
+
3916
4100
  /**
3917
4101
  *
3918
4102
  * @export
@@ -6943,7 +7127,7 @@ export const OrderApiFp = function(configuration?: Configuration) {
6943
7127
  * @param {*} [options] Override http request option.
6944
7128
  * @throws {RequiredError}
6945
7129
  */
6946
- async createOrder(orderCreationRequest?: OrderCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>> {
7130
+ async createOrder(orderCreationRequest?: OrderCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserOrder>> {
6947
7131
  const localVarAxiosArgs = await localVarAxiosParamCreator.createOrder(orderCreationRequest, options);
6948
7132
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6949
7133
  },
@@ -6965,7 +7149,7 @@ export const OrderApiFp = function(configuration?: Configuration) {
6965
7149
  * @param {*} [options] Override http request option.
6966
7150
  * @throws {RequiredError}
6967
7151
  */
6968
- async getUserOrder(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>> {
7152
+ async getUserOrder(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserOrder>> {
6969
7153
  const localVarAxiosArgs = await localVarAxiosParamCreator.getUserOrder(id, options);
6970
7154
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6971
7155
  },
@@ -7000,7 +7184,7 @@ export const OrderApiFp = function(configuration?: Configuration) {
7000
7184
  * @param {*} [options] Override http request option.
7001
7185
  * @throws {RequiredError}
7002
7186
  */
7003
- 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<OrderListResponse>> {
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>> {
7004
7188
  const localVarAxiosArgs = await localVarAxiosParamCreator.listOrdersUser(paginationToken, search, productID, balanceIDs, createdAfter, createdBefore, userIDs, options);
7005
7189
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
7006
7190
  },
@@ -7021,7 +7205,7 @@ export const OrderApiFactory = function (configuration?: Configuration, basePath
7021
7205
  * @param {*} [options] Override http request option.
7022
7206
  * @throws {RequiredError}
7023
7207
  */
7024
- createOrder(orderCreationRequest?: OrderCreationRequest, options?: any): AxiosPromise<Order> {
7208
+ createOrder(orderCreationRequest?: OrderCreationRequest, options?: any): AxiosPromise<UserOrder> {
7025
7209
  return localVarFp.createOrder(orderCreationRequest, options).then((request) => request(axios, basePath));
7026
7210
  },
7027
7211
  /**
@@ -7041,7 +7225,7 @@ export const OrderApiFactory = function (configuration?: Configuration, basePath
7041
7225
  * @param {*} [options] Override http request option.
7042
7226
  * @throws {RequiredError}
7043
7227
  */
7044
- getUserOrder(id: string, options?: any): AxiosPromise<Order> {
7228
+ getUserOrder(id: string, options?: any): AxiosPromise<UserOrder> {
7045
7229
  return localVarFp.getUserOrder(id, options).then((request) => request(axios, basePath));
7046
7230
  },
7047
7231
  /**
@@ -7074,7 +7258,7 @@ export const OrderApiFactory = function (configuration?: Configuration, basePath
7074
7258
  * @param {*} [options] Override http request option.
7075
7259
  * @throws {RequiredError}
7076
7260
  */
7077
- listOrdersUser(paginationToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, options?: any): AxiosPromise<OrderListResponse> {
7261
+ listOrdersUser(paginationToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, options?: any): AxiosPromise<UserOrderListResponse> {
7078
7262
  return localVarFp.listOrdersUser(paginationToken, search, productID, balanceIDs, createdAfter, createdBefore, userIDs, options).then((request) => request(axios, basePath));
7079
7263
  },
7080
7264
  };
package/dist/api.d.ts CHANGED
@@ -1182,10 +1182,10 @@ export interface Order {
1182
1182
  'createdAt'?: string;
1183
1183
  /**
1184
1184
  *
1185
- * @type {string}
1185
+ * @type {OrderKind}
1186
1186
  * @memberof Order
1187
1187
  */
1188
- 'kind'?: OrderKindEnum;
1188
+ 'kind': OrderKind;
1189
1189
  /**
1190
1190
  *
1191
1191
  * @type {string}
@@ -1205,11 +1205,6 @@ export interface Order {
1205
1205
  */
1206
1206
  'status'?: OrderStatus;
1207
1207
  }
1208
- export declare const OrderKindEnum: {
1209
- readonly Webshop: "webshop";
1210
- readonly Promotions: "promotions";
1211
- };
1212
- export type OrderKindEnum = typeof OrderKindEnum[keyof typeof OrderKindEnum];
1213
1208
  /**
1214
1209
  *
1215
1210
  * @export
@@ -1248,6 +1243,16 @@ export interface OrderItemCreationRequest {
1248
1243
  */
1249
1244
  'productId': string;
1250
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];
1251
1256
  /**
1252
1257
  *
1253
1258
  * @export
@@ -3702,6 +3707,25 @@ export type UserDetails = {
3702
3707
  } & CustomerUserDetails | {
3703
3708
  source: 'system';
3704
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
+ }
3705
3729
  /**
3706
3730
  *
3707
3731
  * @export
@@ -3727,6 +3751,159 @@ export interface UserListResponse {
3727
3751
  */
3728
3752
  'hasMore': boolean;
3729
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
+ }
3730
3907
  /**
3731
3908
  *
3732
3909
  * @export
@@ -5236,7 +5413,7 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
5236
5413
  * @param {*} [options] Override http request option.
5237
5414
  * @throws {RequiredError}
5238
5415
  */
5239
- createOrder(orderCreationRequest?: OrderCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>>;
5416
+ createOrder(orderCreationRequest?: OrderCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserOrder>>;
5240
5417
  /**
5241
5418
  * Get order details
5242
5419
  * @summary Get order details
@@ -5252,7 +5429,7 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
5252
5429
  * @param {*} [options] Override http request option.
5253
5430
  * @throws {RequiredError}
5254
5431
  */
5255
- getUserOrder(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>>;
5432
+ getUserOrder(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserOrder>>;
5256
5433
  /**
5257
5434
  * List existing orders
5258
5435
  * @summary List existing orders
@@ -5281,7 +5458,7 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
5281
5458
  * @param {*} [options] Override http request option.
5282
5459
  * @throws {RequiredError}
5283
5460
  */
5284
- 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<OrderListResponse>>;
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>>;
5285
5462
  };
5286
5463
  /**
5287
5464
  * OrderApi - factory interface
@@ -5295,7 +5472,7 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
5295
5472
  * @param {*} [options] Override http request option.
5296
5473
  * @throws {RequiredError}
5297
5474
  */
5298
- createOrder(orderCreationRequest?: OrderCreationRequest, options?: any): AxiosPromise<Order>;
5475
+ createOrder(orderCreationRequest?: OrderCreationRequest, options?: any): AxiosPromise<UserOrder>;
5299
5476
  /**
5300
5477
  * Get order details
5301
5478
  * @summary Get order details
@@ -5311,7 +5488,7 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
5311
5488
  * @param {*} [options] Override http request option.
5312
5489
  * @throws {RequiredError}
5313
5490
  */
5314
- getUserOrder(id: string, options?: any): AxiosPromise<Order>;
5491
+ getUserOrder(id: string, options?: any): AxiosPromise<UserOrder>;
5315
5492
  /**
5316
5493
  * List existing orders
5317
5494
  * @summary List existing orders
@@ -5340,7 +5517,7 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
5340
5517
  * @param {*} [options] Override http request option.
5341
5518
  * @throws {RequiredError}
5342
5519
  */
5343
- listOrdersUser(paginationToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, options?: any): AxiosPromise<OrderListResponse>;
5520
+ listOrdersUser(paginationToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, options?: any): AxiosPromise<UserOrderListResponse>;
5344
5521
  };
5345
5522
  /**
5346
5523
  * OrderApi - object-oriented interface
@@ -5357,7 +5534,7 @@ export declare class OrderApi extends BaseAPI {
5357
5534
  * @throws {RequiredError}
5358
5535
  * @memberof OrderApi
5359
5536
  */
5360
- createOrder(orderCreationRequest?: OrderCreationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Order, any>>;
5537
+ createOrder(orderCreationRequest?: OrderCreationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UserOrder, any>>;
5361
5538
  /**
5362
5539
  * Get order details
5363
5540
  * @summary Get order details
@@ -5375,7 +5552,7 @@ export declare class OrderApi extends BaseAPI {
5375
5552
  * @throws {RequiredError}
5376
5553
  * @memberof OrderApi
5377
5554
  */
5378
- getUserOrder(id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Order, any>>;
5555
+ getUserOrder(id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UserOrder, any>>;
5379
5556
  /**
5380
5557
  * List existing orders
5381
5558
  * @summary List existing orders
@@ -5406,7 +5583,7 @@ export declare class OrderApi extends BaseAPI {
5406
5583
  * @throws {RequiredError}
5407
5584
  * @memberof OrderApi
5408
5585
  */
5409
- listOrdersUser(paginationToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderListResponse, any>>;
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>>;
5410
5587
  }
5411
5588
  /**
5412
5589
  * ProductApi - axios parameter creator
package/dist/api.js CHANGED
@@ -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.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.OrderKindEnum = 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;
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
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
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");
@@ -148,7 +148,12 @@ exports.NotificationStatus = {
148
148
  Unread: 'unread',
149
149
  Read: 'read'
150
150
  };
151
- exports.OrderKindEnum = {
151
+ /**
152
+ *
153
+ * @export
154
+ * @enum {string}
155
+ */
156
+ exports.OrderKind = {
152
157
  Webshop: 'webshop',
153
158
  Promotions: 'promotions'
154
159
  };
package/dist/esm/api.d.ts CHANGED
@@ -1182,10 +1182,10 @@ export interface Order {
1182
1182
  'createdAt'?: string;
1183
1183
  /**
1184
1184
  *
1185
- * @type {string}
1185
+ * @type {OrderKind}
1186
1186
  * @memberof Order
1187
1187
  */
1188
- 'kind'?: OrderKindEnum;
1188
+ 'kind': OrderKind;
1189
1189
  /**
1190
1190
  *
1191
1191
  * @type {string}
@@ -1205,11 +1205,6 @@ export interface Order {
1205
1205
  */
1206
1206
  'status'?: OrderStatus;
1207
1207
  }
1208
- export declare const OrderKindEnum: {
1209
- readonly Webshop: "webshop";
1210
- readonly Promotions: "promotions";
1211
- };
1212
- export type OrderKindEnum = typeof OrderKindEnum[keyof typeof OrderKindEnum];
1213
1208
  /**
1214
1209
  *
1215
1210
  * @export
@@ -1248,6 +1243,16 @@ export interface OrderItemCreationRequest {
1248
1243
  */
1249
1244
  'productId': string;
1250
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];
1251
1256
  /**
1252
1257
  *
1253
1258
  * @export
@@ -3702,6 +3707,25 @@ export type UserDetails = {
3702
3707
  } & CustomerUserDetails | {
3703
3708
  source: 'system';
3704
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
+ }
3705
3729
  /**
3706
3730
  *
3707
3731
  * @export
@@ -3727,6 +3751,159 @@ export interface UserListResponse {
3727
3751
  */
3728
3752
  'hasMore': boolean;
3729
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
+ }
3730
3907
  /**
3731
3908
  *
3732
3909
  * @export
@@ -5236,7 +5413,7 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
5236
5413
  * @param {*} [options] Override http request option.
5237
5414
  * @throws {RequiredError}
5238
5415
  */
5239
- createOrder(orderCreationRequest?: OrderCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>>;
5416
+ createOrder(orderCreationRequest?: OrderCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserOrder>>;
5240
5417
  /**
5241
5418
  * Get order details
5242
5419
  * @summary Get order details
@@ -5252,7 +5429,7 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
5252
5429
  * @param {*} [options] Override http request option.
5253
5430
  * @throws {RequiredError}
5254
5431
  */
5255
- getUserOrder(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>>;
5432
+ getUserOrder(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserOrder>>;
5256
5433
  /**
5257
5434
  * List existing orders
5258
5435
  * @summary List existing orders
@@ -5281,7 +5458,7 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
5281
5458
  * @param {*} [options] Override http request option.
5282
5459
  * @throws {RequiredError}
5283
5460
  */
5284
- 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<OrderListResponse>>;
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>>;
5285
5462
  };
5286
5463
  /**
5287
5464
  * OrderApi - factory interface
@@ -5295,7 +5472,7 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
5295
5472
  * @param {*} [options] Override http request option.
5296
5473
  * @throws {RequiredError}
5297
5474
  */
5298
- createOrder(orderCreationRequest?: OrderCreationRequest, options?: any): AxiosPromise<Order>;
5475
+ createOrder(orderCreationRequest?: OrderCreationRequest, options?: any): AxiosPromise<UserOrder>;
5299
5476
  /**
5300
5477
  * Get order details
5301
5478
  * @summary Get order details
@@ -5311,7 +5488,7 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
5311
5488
  * @param {*} [options] Override http request option.
5312
5489
  * @throws {RequiredError}
5313
5490
  */
5314
- getUserOrder(id: string, options?: any): AxiosPromise<Order>;
5491
+ getUserOrder(id: string, options?: any): AxiosPromise<UserOrder>;
5315
5492
  /**
5316
5493
  * List existing orders
5317
5494
  * @summary List existing orders
@@ -5340,7 +5517,7 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
5340
5517
  * @param {*} [options] Override http request option.
5341
5518
  * @throws {RequiredError}
5342
5519
  */
5343
- listOrdersUser(paginationToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, options?: any): AxiosPromise<OrderListResponse>;
5520
+ listOrdersUser(paginationToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, options?: any): AxiosPromise<UserOrderListResponse>;
5344
5521
  };
5345
5522
  /**
5346
5523
  * OrderApi - object-oriented interface
@@ -5357,7 +5534,7 @@ export declare class OrderApi extends BaseAPI {
5357
5534
  * @throws {RequiredError}
5358
5535
  * @memberof OrderApi
5359
5536
  */
5360
- createOrder(orderCreationRequest?: OrderCreationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Order, any>>;
5537
+ createOrder(orderCreationRequest?: OrderCreationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UserOrder, any>>;
5361
5538
  /**
5362
5539
  * Get order details
5363
5540
  * @summary Get order details
@@ -5375,7 +5552,7 @@ export declare class OrderApi extends BaseAPI {
5375
5552
  * @throws {RequiredError}
5376
5553
  * @memberof OrderApi
5377
5554
  */
5378
- getUserOrder(id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Order, any>>;
5555
+ getUserOrder(id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UserOrder, any>>;
5379
5556
  /**
5380
5557
  * List existing orders
5381
5558
  * @summary List existing orders
@@ -5406,7 +5583,7 @@ export declare class OrderApi extends BaseAPI {
5406
5583
  * @throws {RequiredError}
5407
5584
  * @memberof OrderApi
5408
5585
  */
5409
- listOrdersUser(paginationToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderListResponse, any>>;
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>>;
5410
5587
  }
5411
5588
  /**
5412
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
- export const OrderKindEnum = {
146
+ /**
147
+ *
148
+ * @export
149
+ * @enum {string}
150
+ */
151
+ export const OrderKind = {
147
152
  Webshop: 'webshop',
148
153
  Promotions: 'promotions'
149
154
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flexinet-api",
3
- "version": "0.0.1208",
3
+ "version": "0.0.1212",
4
4
  "description": "OpenAPI client for flexinet-api",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {