flexinet-api 0.0.749-prerelease0 → 0.0.751-prerelease0
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 +98 -57
- package/dist/api.d.ts +84 -49
- package/dist/api.js +55 -46
- package/dist/esm/api.d.ts +84 -49
- package/dist/esm/api.js +55 -46
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## flexinet-api@0.0.
|
|
1
|
+
## flexinet-api@0.0.751-prerelease0
|
|
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.751-prerelease0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
|
@@ -814,25 +814,31 @@ export interface CustomDealRestrictionsResponse {
|
|
|
814
814
|
/**
|
|
815
815
|
*
|
|
816
816
|
* @export
|
|
817
|
-
* @interface
|
|
817
|
+
* @interface CustomerUserDetails
|
|
818
818
|
*/
|
|
819
|
-
export interface
|
|
819
|
+
export interface CustomerUserDetails {
|
|
820
820
|
/**
|
|
821
821
|
*
|
|
822
822
|
* @type {string}
|
|
823
|
-
* @memberof
|
|
823
|
+
* @memberof CustomerUserDetails
|
|
824
|
+
*/
|
|
825
|
+
'source': string;
|
|
826
|
+
/**
|
|
827
|
+
*
|
|
828
|
+
* @type {string}
|
|
829
|
+
* @memberof CustomerUserDetails
|
|
824
830
|
*/
|
|
825
831
|
'email': string;
|
|
826
832
|
/**
|
|
827
833
|
*
|
|
828
834
|
* @type {string}
|
|
829
|
-
* @memberof
|
|
835
|
+
* @memberof CustomerUserDetails
|
|
830
836
|
*/
|
|
831
837
|
'firstName'?: string;
|
|
832
838
|
/**
|
|
833
839
|
*
|
|
834
840
|
* @type {string}
|
|
835
|
-
* @memberof
|
|
841
|
+
* @memberof CustomerUserDetails
|
|
836
842
|
*/
|
|
837
843
|
'lastName'?: string;
|
|
838
844
|
}
|
|
@@ -1342,6 +1348,19 @@ export interface PeriodPromotion {
|
|
|
1342
1348
|
*/
|
|
1343
1349
|
'period': Period;
|
|
1344
1350
|
}
|
|
1351
|
+
/**
|
|
1352
|
+
*
|
|
1353
|
+
* @export
|
|
1354
|
+
* @interface PreferencesRequest
|
|
1355
|
+
*/
|
|
1356
|
+
export interface PreferencesRequest {
|
|
1357
|
+
/**
|
|
1358
|
+
*
|
|
1359
|
+
* @type {Array<NotificationPreference>}
|
|
1360
|
+
* @memberof PreferencesRequest
|
|
1361
|
+
*/
|
|
1362
|
+
'notificationPreferences': Array<NotificationPreference>;
|
|
1363
|
+
}
|
|
1345
1364
|
/**
|
|
1346
1365
|
*
|
|
1347
1366
|
* @export
|
|
@@ -2163,7 +2182,7 @@ export interface PromotionConfig {
|
|
|
2163
2182
|
* @type {number}
|
|
2164
2183
|
* @memberof PromotionConfig
|
|
2165
2184
|
*/
|
|
2166
|
-
'
|
|
2185
|
+
'adminClaimGracePeriod'?: number;
|
|
2167
2186
|
/**
|
|
2168
2187
|
*
|
|
2169
2188
|
* @type {number}
|
|
@@ -2550,6 +2569,12 @@ export type SortDirection = typeof SortDirection[keyof typeof SortDirection];
|
|
|
2550
2569
|
* @interface SystemUserDetails
|
|
2551
2570
|
*/
|
|
2552
2571
|
export interface SystemUserDetails {
|
|
2572
|
+
/**
|
|
2573
|
+
*
|
|
2574
|
+
* @type {string}
|
|
2575
|
+
* @memberof SystemUserDetails
|
|
2576
|
+
*/
|
|
2577
|
+
'source': string;
|
|
2553
2578
|
/**
|
|
2554
2579
|
*
|
|
2555
2580
|
* @type {string}
|
|
@@ -3039,25 +3064,31 @@ export interface Tenant {
|
|
|
3039
3064
|
* @type {string}
|
|
3040
3065
|
* @memberof Tenant
|
|
3041
3066
|
*/
|
|
3042
|
-
'
|
|
3067
|
+
'customerOpenIDKeyConfig': string;
|
|
3043
3068
|
/**
|
|
3044
3069
|
*
|
|
3045
3070
|
* @type {string}
|
|
3046
3071
|
* @memberof Tenant
|
|
3047
3072
|
*/
|
|
3048
|
-
'
|
|
3073
|
+
'customerOpenIDIssuer': string;
|
|
3049
3074
|
/**
|
|
3050
3075
|
*
|
|
3051
3076
|
* @type {string}
|
|
3052
3077
|
* @memberof Tenant
|
|
3053
3078
|
*/
|
|
3054
|
-
'
|
|
3079
|
+
'customerOpenIDClientID': string;
|
|
3055
3080
|
/**
|
|
3056
3081
|
*
|
|
3057
3082
|
* @type {string}
|
|
3058
3083
|
* @memberof Tenant
|
|
3059
3084
|
*/
|
|
3060
|
-
'
|
|
3085
|
+
'customerOpenIDMetadataURL': string;
|
|
3086
|
+
/**
|
|
3087
|
+
*
|
|
3088
|
+
* @type {{ [key: string]: string; }}
|
|
3089
|
+
* @memberof Tenant
|
|
3090
|
+
*/
|
|
3091
|
+
'customerOpenIDParameters'?: { [key: string]: string; };
|
|
3061
3092
|
}
|
|
3062
3093
|
/**
|
|
3063
3094
|
*
|
|
@@ -3479,7 +3510,7 @@ export interface UserBalance {
|
|
|
3479
3510
|
* @type UserDetails
|
|
3480
3511
|
* @export
|
|
3481
3512
|
*/
|
|
3482
|
-
export type UserDetails =
|
|
3513
|
+
export type UserDetails = { source: 'customer' } & CustomerUserDetails | { source: 'system' } & SystemUserDetails;
|
|
3483
3514
|
|
|
3484
3515
|
/**
|
|
3485
3516
|
*
|
|
@@ -5863,13 +5894,13 @@ export const NotificationApiAxiosParamCreator = function (configuration?: Config
|
|
|
5863
5894
|
};
|
|
5864
5895
|
},
|
|
5865
5896
|
/**
|
|
5866
|
-
* Get
|
|
5867
|
-
* @summary Get
|
|
5897
|
+
* Get preferences for the authenticated user
|
|
5898
|
+
* @summary Get preferences
|
|
5868
5899
|
* @param {*} [options] Override http request option.
|
|
5869
5900
|
* @throws {RequiredError}
|
|
5870
5901
|
*/
|
|
5871
|
-
|
|
5872
|
-
const localVarPath = `/users/
|
|
5902
|
+
getPreferences: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5903
|
+
const localVarPath = `/users/preferences`;
|
|
5873
5904
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5874
5905
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5875
5906
|
let baseOptions;
|
|
@@ -5979,16 +6010,16 @@ export const NotificationApiAxiosParamCreator = function (configuration?: Config
|
|
|
5979
6010
|
};
|
|
5980
6011
|
},
|
|
5981
6012
|
/**
|
|
5982
|
-
* Update
|
|
5983
|
-
* @summary Update
|
|
5984
|
-
* @param {
|
|
6013
|
+
* Update preferences for the authenticated user
|
|
6014
|
+
* @summary Update preferences
|
|
6015
|
+
* @param {PreferencesRequest} preferencesRequest notification preferences
|
|
5985
6016
|
* @param {*} [options] Override http request option.
|
|
5986
6017
|
* @throws {RequiredError}
|
|
5987
6018
|
*/
|
|
5988
|
-
|
|
5989
|
-
// verify required parameter '
|
|
5990
|
-
assertParamExists('
|
|
5991
|
-
const localVarPath = `/users/
|
|
6019
|
+
updatePreferences: async (preferencesRequest: PreferencesRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6020
|
+
// verify required parameter 'preferencesRequest' is not null or undefined
|
|
6021
|
+
assertParamExists('updatePreferences', 'preferencesRequest', preferencesRequest)
|
|
6022
|
+
const localVarPath = `/users/preferences`;
|
|
5992
6023
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5993
6024
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5994
6025
|
let baseOptions;
|
|
@@ -6011,7 +6042,7 @@ export const NotificationApiAxiosParamCreator = function (configuration?: Config
|
|
|
6011
6042
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6012
6043
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6013
6044
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6014
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
6045
|
+
localVarRequestOptions.data = serializeDataIfNeeded(preferencesRequest, localVarRequestOptions, configuration)
|
|
6015
6046
|
|
|
6016
6047
|
return {
|
|
6017
6048
|
url: toPathString(localVarUrlObj),
|
|
@@ -6051,13 +6082,13 @@ export const NotificationApiFp = function(configuration?: Configuration) {
|
|
|
6051
6082
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
6052
6083
|
},
|
|
6053
6084
|
/**
|
|
6054
|
-
* Get
|
|
6055
|
-
* @summary Get
|
|
6085
|
+
* Get preferences for the authenticated user
|
|
6086
|
+
* @summary Get preferences
|
|
6056
6087
|
* @param {*} [options] Override http request option.
|
|
6057
6088
|
* @throws {RequiredError}
|
|
6058
6089
|
*/
|
|
6059
|
-
async
|
|
6060
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
6090
|
+
async getPreferences(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<NotificationPreference>>> {
|
|
6091
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPreferences(options);
|
|
6061
6092
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
6062
6093
|
},
|
|
6063
6094
|
/**
|
|
@@ -6084,14 +6115,14 @@ export const NotificationApiFp = function(configuration?: Configuration) {
|
|
|
6084
6115
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
6085
6116
|
},
|
|
6086
6117
|
/**
|
|
6087
|
-
* Update
|
|
6088
|
-
* @summary Update
|
|
6089
|
-
* @param {
|
|
6118
|
+
* Update preferences for the authenticated user
|
|
6119
|
+
* @summary Update preferences
|
|
6120
|
+
* @param {PreferencesRequest} preferencesRequest notification preferences
|
|
6090
6121
|
* @param {*} [options] Override http request option.
|
|
6091
6122
|
* @throws {RequiredError}
|
|
6092
6123
|
*/
|
|
6093
|
-
async
|
|
6094
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
6124
|
+
async updatePreferences(preferencesRequest: PreferencesRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
6125
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePreferences(preferencesRequest, options);
|
|
6095
6126
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
6096
6127
|
},
|
|
6097
6128
|
}
|
|
@@ -6125,13 +6156,13 @@ export const NotificationApiFactory = function (configuration?: Configuration, b
|
|
|
6125
6156
|
return localVarFp.getNotification(notificationID, options).then((request) => request(axios, basePath));
|
|
6126
6157
|
},
|
|
6127
6158
|
/**
|
|
6128
|
-
* Get
|
|
6129
|
-
* @summary Get
|
|
6159
|
+
* Get preferences for the authenticated user
|
|
6160
|
+
* @summary Get preferences
|
|
6130
6161
|
* @param {*} [options] Override http request option.
|
|
6131
6162
|
* @throws {RequiredError}
|
|
6132
6163
|
*/
|
|
6133
|
-
|
|
6134
|
-
return localVarFp.
|
|
6164
|
+
getPreferences(options?: any): AxiosPromise<Array<NotificationPreference>> {
|
|
6165
|
+
return localVarFp.getPreferences(options).then((request) => request(axios, basePath));
|
|
6135
6166
|
},
|
|
6136
6167
|
/**
|
|
6137
6168
|
* List paginated notifications
|
|
@@ -6155,14 +6186,14 @@ export const NotificationApiFactory = function (configuration?: Configuration, b
|
|
|
6155
6186
|
return localVarFp.markNotificationAsRead(notificationID, options).then((request) => request(axios, basePath));
|
|
6156
6187
|
},
|
|
6157
6188
|
/**
|
|
6158
|
-
* Update
|
|
6159
|
-
* @summary Update
|
|
6160
|
-
* @param {
|
|
6189
|
+
* Update preferences for the authenticated user
|
|
6190
|
+
* @summary Update preferences
|
|
6191
|
+
* @param {PreferencesRequest} preferencesRequest notification preferences
|
|
6161
6192
|
* @param {*} [options] Override http request option.
|
|
6162
6193
|
* @throws {RequiredError}
|
|
6163
6194
|
*/
|
|
6164
|
-
|
|
6165
|
-
return localVarFp.
|
|
6195
|
+
updatePreferences(preferencesRequest: PreferencesRequest, options?: any): AxiosPromise<void> {
|
|
6196
|
+
return localVarFp.updatePreferences(preferencesRequest, options).then((request) => request(axios, basePath));
|
|
6166
6197
|
},
|
|
6167
6198
|
};
|
|
6168
6199
|
};
|
|
@@ -6199,14 +6230,14 @@ export class NotificationApi extends BaseAPI {
|
|
|
6199
6230
|
}
|
|
6200
6231
|
|
|
6201
6232
|
/**
|
|
6202
|
-
* Get
|
|
6203
|
-
* @summary Get
|
|
6233
|
+
* Get preferences for the authenticated user
|
|
6234
|
+
* @summary Get preferences
|
|
6204
6235
|
* @param {*} [options] Override http request option.
|
|
6205
6236
|
* @throws {RequiredError}
|
|
6206
6237
|
* @memberof NotificationApi
|
|
6207
6238
|
*/
|
|
6208
|
-
public
|
|
6209
|
-
return NotificationApiFp(this.configuration).
|
|
6239
|
+
public getPreferences(options?: AxiosRequestConfig) {
|
|
6240
|
+
return NotificationApiFp(this.configuration).getPreferences(options).then((request) => request(this.axios, this.basePath));
|
|
6210
6241
|
}
|
|
6211
6242
|
|
|
6212
6243
|
/**
|
|
@@ -6235,15 +6266,15 @@ export class NotificationApi extends BaseAPI {
|
|
|
6235
6266
|
}
|
|
6236
6267
|
|
|
6237
6268
|
/**
|
|
6238
|
-
* Update
|
|
6239
|
-
* @summary Update
|
|
6240
|
-
* @param {
|
|
6269
|
+
* Update preferences for the authenticated user
|
|
6270
|
+
* @summary Update preferences
|
|
6271
|
+
* @param {PreferencesRequest} preferencesRequest notification preferences
|
|
6241
6272
|
* @param {*} [options] Override http request option.
|
|
6242
6273
|
* @throws {RequiredError}
|
|
6243
6274
|
* @memberof NotificationApi
|
|
6244
6275
|
*/
|
|
6245
|
-
public
|
|
6246
|
-
return NotificationApiFp(this.configuration).
|
|
6276
|
+
public updatePreferences(preferencesRequest: PreferencesRequest, options?: AxiosRequestConfig) {
|
|
6277
|
+
return NotificationApiFp(this.configuration).updatePreferences(preferencesRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6247
6278
|
}
|
|
6248
6279
|
}
|
|
6249
6280
|
|
|
@@ -9844,10 +9875,13 @@ export const TenantApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
9844
9875
|
/**
|
|
9845
9876
|
* List of known tenants
|
|
9846
9877
|
* @summary List tenants
|
|
9878
|
+
* @param {string} name This is the tenant name
|
|
9847
9879
|
* @param {*} [options] Override http request option.
|
|
9848
9880
|
* @throws {RequiredError}
|
|
9849
9881
|
*/
|
|
9850
|
-
listTenants: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9882
|
+
listTenants: async (name: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9883
|
+
// verify required parameter 'name' is not null or undefined
|
|
9884
|
+
assertParamExists('listTenants', 'name', name)
|
|
9851
9885
|
const localVarPath = `/tenants`;
|
|
9852
9886
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9853
9887
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -9860,6 +9894,10 @@ export const TenantApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
9860
9894
|
const localVarHeaderParameter = {} as any;
|
|
9861
9895
|
const localVarQueryParameter = {} as any;
|
|
9862
9896
|
|
|
9897
|
+
if (name !== undefined) {
|
|
9898
|
+
localVarQueryParameter['name'] = name;
|
|
9899
|
+
}
|
|
9900
|
+
|
|
9863
9901
|
|
|
9864
9902
|
|
|
9865
9903
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -9884,11 +9922,12 @@ export const TenantApiFp = function(configuration?: Configuration) {
|
|
|
9884
9922
|
/**
|
|
9885
9923
|
* List of known tenants
|
|
9886
9924
|
* @summary List tenants
|
|
9925
|
+
* @param {string} name This is the tenant name
|
|
9887
9926
|
* @param {*} [options] Override http request option.
|
|
9888
9927
|
* @throws {RequiredError}
|
|
9889
9928
|
*/
|
|
9890
|
-
async listTenants(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
9891
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listTenants(options);
|
|
9929
|
+
async listTenants(name: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Tenant>> {
|
|
9930
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listTenants(name, options);
|
|
9892
9931
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
9893
9932
|
},
|
|
9894
9933
|
}
|
|
@@ -9904,11 +9943,12 @@ export const TenantApiFactory = function (configuration?: Configuration, basePat
|
|
|
9904
9943
|
/**
|
|
9905
9944
|
* List of known tenants
|
|
9906
9945
|
* @summary List tenants
|
|
9946
|
+
* @param {string} name This is the tenant name
|
|
9907
9947
|
* @param {*} [options] Override http request option.
|
|
9908
9948
|
* @throws {RequiredError}
|
|
9909
9949
|
*/
|
|
9910
|
-
listTenants(options?: any): AxiosPromise<
|
|
9911
|
-
return localVarFp.listTenants(options).then((request) => request(axios, basePath));
|
|
9950
|
+
listTenants(name: string, options?: any): AxiosPromise<Tenant> {
|
|
9951
|
+
return localVarFp.listTenants(name, options).then((request) => request(axios, basePath));
|
|
9912
9952
|
},
|
|
9913
9953
|
};
|
|
9914
9954
|
};
|
|
@@ -9923,12 +9963,13 @@ export class TenantApi extends BaseAPI {
|
|
|
9923
9963
|
/**
|
|
9924
9964
|
* List of known tenants
|
|
9925
9965
|
* @summary List tenants
|
|
9966
|
+
* @param {string} name This is the tenant name
|
|
9926
9967
|
* @param {*} [options] Override http request option.
|
|
9927
9968
|
* @throws {RequiredError}
|
|
9928
9969
|
* @memberof TenantApi
|
|
9929
9970
|
*/
|
|
9930
|
-
public listTenants(options?: AxiosRequestConfig) {
|
|
9931
|
-
return TenantApiFp(this.configuration).listTenants(options).then((request) => request(this.axios, this.basePath));
|
|
9971
|
+
public listTenants(name: string, options?: AxiosRequestConfig) {
|
|
9972
|
+
return TenantApiFp(this.configuration).listTenants(name, options).then((request) => request(this.axios, this.basePath));
|
|
9932
9973
|
}
|
|
9933
9974
|
}
|
|
9934
9975
|
|