flexinet-api 0.0.1487-prerelease0 → 0.0.1504-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 +179 -16
- package/dist/api.d.ts +97 -15
- package/dist/api.js +131 -4
- package/dist/esm/api.d.ts +97 -15
- package/dist/esm/api.js +131 -4
- package/package.json +1 -1
package/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
## flexinet-api@0.0.
|
1
|
+
## flexinet-api@0.0.1504-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.1504-prerelease0 --save
|
40
40
|
```
|
41
41
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
@@ -938,9 +938,10 @@ export interface Item {
|
|
938
938
|
*/
|
939
939
|
|
940
940
|
export const Locale = {
|
941
|
-
EnUs: 'en-
|
942
|
-
RoRo: 'ro-
|
943
|
-
HuHu: 'hu-
|
941
|
+
EnUs: 'en-US',
|
942
|
+
RoRo: 'ro-RO',
|
943
|
+
HuHu: 'hu-HU',
|
944
|
+
DeDe: 'de-DE'
|
944
945
|
} as const;
|
945
946
|
|
946
947
|
export type Locale = typeof Locale[keyof typeof Locale];
|
@@ -1542,7 +1543,15 @@ export interface Preferences {
|
|
1542
1543
|
* @memberof Preferences
|
1543
1544
|
*/
|
1544
1545
|
'promotionConfig': PromotionConfig;
|
1546
|
+
/**
|
1547
|
+
*
|
1548
|
+
* @type {Locale}
|
1549
|
+
* @memberof Preferences
|
1550
|
+
*/
|
1551
|
+
'locale'?: Locale;
|
1545
1552
|
}
|
1553
|
+
|
1554
|
+
|
1546
1555
|
/**
|
1547
1556
|
*
|
1548
1557
|
* @export
|
@@ -1555,12 +1564,6 @@ export interface PreferencesRequest {
|
|
1555
1564
|
* @memberof PreferencesRequest
|
1556
1565
|
*/
|
1557
1566
|
'preferredLocale'?: Locale;
|
1558
|
-
/**
|
1559
|
-
*
|
1560
|
-
* @type {Array<NotificationPreference>}
|
1561
|
-
* @memberof PreferencesRequest
|
1562
|
-
*/
|
1563
|
-
'notificationPreferences': Array<NotificationPreference>;
|
1564
1567
|
}
|
1565
1568
|
|
1566
1569
|
|
@@ -2095,10 +2098,10 @@ export interface Progress {
|
|
2095
2098
|
'id': string;
|
2096
2099
|
/**
|
2097
2100
|
*
|
2098
|
-
* @type {
|
2101
|
+
* @type {string}
|
2099
2102
|
* @memberof Progress
|
2100
2103
|
*/
|
2101
|
-
'value':
|
2104
|
+
'value': string;
|
2102
2105
|
/**
|
2103
2106
|
*
|
2104
2107
|
* @type {string}
|
@@ -2107,10 +2110,10 @@ export interface Progress {
|
|
2107
2110
|
'value_mu': string;
|
2108
2111
|
/**
|
2109
2112
|
*
|
2110
|
-
* @type {{ [key: string]:
|
2113
|
+
* @type {{ [key: string]: string; }}
|
2111
2114
|
* @memberof Progress
|
2112
2115
|
*/
|
2113
|
-
'value_detailed'?: { [key: string]:
|
2116
|
+
'value_detailed'?: { [key: string]: string; };
|
2114
2117
|
/**
|
2115
2118
|
*
|
2116
2119
|
* @type {ProgressState}
|
@@ -3593,11 +3596,13 @@ export interface Tenant {
|
|
3593
3596
|
'azureEntraClientID': string;
|
3594
3597
|
/**
|
3595
3598
|
*
|
3596
|
-
* @type {
|
3599
|
+
* @type {Locale}
|
3597
3600
|
* @memberof Tenant
|
3598
3601
|
*/
|
3599
|
-
'locale':
|
3602
|
+
'locale': Locale;
|
3600
3603
|
}
|
3604
|
+
|
3605
|
+
|
3601
3606
|
/**
|
3602
3607
|
*
|
3603
3608
|
* @export
|
@@ -4186,6 +4191,27 @@ export interface UserOrderListResponse {
|
|
4186
4191
|
*/
|
4187
4192
|
'nextToken'?: string;
|
4188
4193
|
}
|
4194
|
+
/**
|
4195
|
+
*
|
4196
|
+
* @export
|
4197
|
+
* @interface UserPreferencesRequest
|
4198
|
+
*/
|
4199
|
+
export interface UserPreferencesRequest {
|
4200
|
+
/**
|
4201
|
+
*
|
4202
|
+
* @type {Locale}
|
4203
|
+
* @memberof UserPreferencesRequest
|
4204
|
+
*/
|
4205
|
+
'preferredLocale'?: Locale;
|
4206
|
+
/**
|
4207
|
+
*
|
4208
|
+
* @type {Array<NotificationPreference>}
|
4209
|
+
* @memberof UserPreferencesRequest
|
4210
|
+
*/
|
4211
|
+
'notificationPreferences': Array<NotificationPreference>;
|
4212
|
+
}
|
4213
|
+
|
4214
|
+
|
4189
4215
|
/**
|
4190
4216
|
*
|
4191
4217
|
* @export
|
@@ -6919,6 +6945,40 @@ export const NotificationApiAxiosParamCreator = function (configuration?: Config
|
|
6919
6945
|
* @throws {RequiredError}
|
6920
6946
|
*/
|
6921
6947
|
getPreferences: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
6948
|
+
const localVarPath = `/admins/preferences`;
|
6949
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
6950
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
6951
|
+
let baseOptions;
|
6952
|
+
if (configuration) {
|
6953
|
+
baseOptions = configuration.baseOptions;
|
6954
|
+
}
|
6955
|
+
|
6956
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
6957
|
+
const localVarHeaderParameter = {} as any;
|
6958
|
+
const localVarQueryParameter = {} as any;
|
6959
|
+
|
6960
|
+
// authentication customerJWT required
|
6961
|
+
// http bearer authentication required
|
6962
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
6963
|
+
|
6964
|
+
|
6965
|
+
|
6966
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
6967
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
6968
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
6969
|
+
|
6970
|
+
return {
|
6971
|
+
url: toPathString(localVarUrlObj),
|
6972
|
+
options: localVarRequestOptions,
|
6973
|
+
};
|
6974
|
+
},
|
6975
|
+
/**
|
6976
|
+
* Get preferences for the authenticated user
|
6977
|
+
* @summary Get preferences
|
6978
|
+
* @param {*} [options] Override http request option.
|
6979
|
+
* @throws {RequiredError}
|
6980
|
+
*/
|
6981
|
+
getUserPreferences: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
6922
6982
|
const localVarPath = `/users/preferences`;
|
6923
6983
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
6924
6984
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -7038,7 +7098,7 @@ export const NotificationApiAxiosParamCreator = function (configuration?: Config
|
|
7038
7098
|
updatePreferences: async (preferencesRequest: PreferencesRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
7039
7099
|
// verify required parameter 'preferencesRequest' is not null or undefined
|
7040
7100
|
assertParamExists('updatePreferences', 'preferencesRequest', preferencesRequest)
|
7041
|
-
const localVarPath = `/
|
7101
|
+
const localVarPath = `/admins/preferences`;
|
7042
7102
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
7043
7103
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
7044
7104
|
let baseOptions;
|
@@ -7063,6 +7123,46 @@ export const NotificationApiAxiosParamCreator = function (configuration?: Config
|
|
7063
7123
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
7064
7124
|
localVarRequestOptions.data = serializeDataIfNeeded(preferencesRequest, localVarRequestOptions, configuration)
|
7065
7125
|
|
7126
|
+
return {
|
7127
|
+
url: toPathString(localVarUrlObj),
|
7128
|
+
options: localVarRequestOptions,
|
7129
|
+
};
|
7130
|
+
},
|
7131
|
+
/**
|
7132
|
+
* Update preferences for the authenticated user
|
7133
|
+
* @summary Update preferences
|
7134
|
+
* @param {UserPreferencesRequest} userPreferencesRequest notification preferences
|
7135
|
+
* @param {*} [options] Override http request option.
|
7136
|
+
* @throws {RequiredError}
|
7137
|
+
*/
|
7138
|
+
updateUserPreferences: async (userPreferencesRequest: UserPreferencesRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
7139
|
+
// verify required parameter 'userPreferencesRequest' is not null or undefined
|
7140
|
+
assertParamExists('updateUserPreferences', 'userPreferencesRequest', userPreferencesRequest)
|
7141
|
+
const localVarPath = `/users/preferences`;
|
7142
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
7143
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
7144
|
+
let baseOptions;
|
7145
|
+
if (configuration) {
|
7146
|
+
baseOptions = configuration.baseOptions;
|
7147
|
+
}
|
7148
|
+
|
7149
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
7150
|
+
const localVarHeaderParameter = {} as any;
|
7151
|
+
const localVarQueryParameter = {} as any;
|
7152
|
+
|
7153
|
+
// authentication customerJWT required
|
7154
|
+
// http bearer authentication required
|
7155
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
7156
|
+
|
7157
|
+
|
7158
|
+
|
7159
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
7160
|
+
|
7161
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
7162
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
7163
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
7164
|
+
localVarRequestOptions.data = serializeDataIfNeeded(userPreferencesRequest, localVarRequestOptions, configuration)
|
7165
|
+
|
7066
7166
|
return {
|
7067
7167
|
url: toPathString(localVarUrlObj),
|
7068
7168
|
options: localVarRequestOptions,
|
@@ -7110,6 +7210,16 @@ export const NotificationApiFp = function(configuration?: Configuration) {
|
|
7110
7210
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPreferences(options);
|
7111
7211
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
7112
7212
|
},
|
7213
|
+
/**
|
7214
|
+
* Get preferences for the authenticated user
|
7215
|
+
* @summary Get preferences
|
7216
|
+
* @param {*} [options] Override http request option.
|
7217
|
+
* @throws {RequiredError}
|
7218
|
+
*/
|
7219
|
+
async getUserPreferences(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Preferences>> {
|
7220
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserPreferences(options);
|
7221
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
7222
|
+
},
|
7113
7223
|
/**
|
7114
7224
|
* List paginated notifications
|
7115
7225
|
* @summary List notifications
|
@@ -7144,6 +7254,17 @@ export const NotificationApiFp = function(configuration?: Configuration) {
|
|
7144
7254
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePreferences(preferencesRequest, options);
|
7145
7255
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
7146
7256
|
},
|
7257
|
+
/**
|
7258
|
+
* Update preferences for the authenticated user
|
7259
|
+
* @summary Update preferences
|
7260
|
+
* @param {UserPreferencesRequest} userPreferencesRequest notification preferences
|
7261
|
+
* @param {*} [options] Override http request option.
|
7262
|
+
* @throws {RequiredError}
|
7263
|
+
*/
|
7264
|
+
async updateUserPreferences(userPreferencesRequest: UserPreferencesRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
7265
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateUserPreferences(userPreferencesRequest, options);
|
7266
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
7267
|
+
},
|
7147
7268
|
}
|
7148
7269
|
};
|
7149
7270
|
|
@@ -7183,6 +7304,15 @@ export const NotificationApiFactory = function (configuration?: Configuration, b
|
|
7183
7304
|
getPreferences(options?: any): AxiosPromise<Preferences> {
|
7184
7305
|
return localVarFp.getPreferences(options).then((request) => request(axios, basePath));
|
7185
7306
|
},
|
7307
|
+
/**
|
7308
|
+
* Get preferences for the authenticated user
|
7309
|
+
* @summary Get preferences
|
7310
|
+
* @param {*} [options] Override http request option.
|
7311
|
+
* @throws {RequiredError}
|
7312
|
+
*/
|
7313
|
+
getUserPreferences(options?: any): AxiosPromise<Preferences> {
|
7314
|
+
return localVarFp.getUserPreferences(options).then((request) => request(axios, basePath));
|
7315
|
+
},
|
7186
7316
|
/**
|
7187
7317
|
* List paginated notifications
|
7188
7318
|
* @summary List notifications
|
@@ -7214,6 +7344,16 @@ export const NotificationApiFactory = function (configuration?: Configuration, b
|
|
7214
7344
|
updatePreferences(preferencesRequest: PreferencesRequest, options?: any): AxiosPromise<void> {
|
7215
7345
|
return localVarFp.updatePreferences(preferencesRequest, options).then((request) => request(axios, basePath));
|
7216
7346
|
},
|
7347
|
+
/**
|
7348
|
+
* Update preferences for the authenticated user
|
7349
|
+
* @summary Update preferences
|
7350
|
+
* @param {UserPreferencesRequest} userPreferencesRequest notification preferences
|
7351
|
+
* @param {*} [options] Override http request option.
|
7352
|
+
* @throws {RequiredError}
|
7353
|
+
*/
|
7354
|
+
updateUserPreferences(userPreferencesRequest: UserPreferencesRequest, options?: any): AxiosPromise<void> {
|
7355
|
+
return localVarFp.updateUserPreferences(userPreferencesRequest, options).then((request) => request(axios, basePath));
|
7356
|
+
},
|
7217
7357
|
};
|
7218
7358
|
};
|
7219
7359
|
|
@@ -7259,6 +7399,17 @@ export class NotificationApi extends BaseAPI {
|
|
7259
7399
|
return NotificationApiFp(this.configuration).getPreferences(options).then((request) => request(this.axios, this.basePath));
|
7260
7400
|
}
|
7261
7401
|
|
7402
|
+
/**
|
7403
|
+
* Get preferences for the authenticated user
|
7404
|
+
* @summary Get preferences
|
7405
|
+
* @param {*} [options] Override http request option.
|
7406
|
+
* @throws {RequiredError}
|
7407
|
+
* @memberof NotificationApi
|
7408
|
+
*/
|
7409
|
+
public getUserPreferences(options?: AxiosRequestConfig) {
|
7410
|
+
return NotificationApiFp(this.configuration).getUserPreferences(options).then((request) => request(this.axios, this.basePath));
|
7411
|
+
}
|
7412
|
+
|
7262
7413
|
/**
|
7263
7414
|
* List paginated notifications
|
7264
7415
|
* @summary List notifications
|
@@ -7295,6 +7446,18 @@ export class NotificationApi extends BaseAPI {
|
|
7295
7446
|
public updatePreferences(preferencesRequest: PreferencesRequest, options?: AxiosRequestConfig) {
|
7296
7447
|
return NotificationApiFp(this.configuration).updatePreferences(preferencesRequest, options).then((request) => request(this.axios, this.basePath));
|
7297
7448
|
}
|
7449
|
+
|
7450
|
+
/**
|
7451
|
+
* Update preferences for the authenticated user
|
7452
|
+
* @summary Update preferences
|
7453
|
+
* @param {UserPreferencesRequest} userPreferencesRequest notification preferences
|
7454
|
+
* @param {*} [options] Override http request option.
|
7455
|
+
* @throws {RequiredError}
|
7456
|
+
* @memberof NotificationApi
|
7457
|
+
*/
|
7458
|
+
public updateUserPreferences(userPreferencesRequest: UserPreferencesRequest, options?: AxiosRequestConfig) {
|
7459
|
+
return NotificationApiFp(this.configuration).updateUserPreferences(userPreferencesRequest, options).then((request) => request(this.axios, this.basePath));
|
7460
|
+
}
|
7298
7461
|
}
|
7299
7462
|
|
7300
7463
|
|
package/dist/api.d.ts
CHANGED
@@ -879,9 +879,10 @@ export interface Item {
|
|
879
879
|
* @enum {string}
|
880
880
|
*/
|
881
881
|
export declare const Locale: {
|
882
|
-
readonly EnUs: "en-
|
883
|
-
readonly RoRo: "ro-
|
884
|
-
readonly HuHu: "hu-
|
882
|
+
readonly EnUs: "en-US";
|
883
|
+
readonly RoRo: "ro-RO";
|
884
|
+
readonly HuHu: "hu-HU";
|
885
|
+
readonly DeDe: "de-DE";
|
885
886
|
};
|
886
887
|
export type Locale = typeof Locale[keyof typeof Locale];
|
887
888
|
/**
|
@@ -1456,6 +1457,12 @@ export interface Preferences {
|
|
1456
1457
|
* @memberof Preferences
|
1457
1458
|
*/
|
1458
1459
|
'promotionConfig': PromotionConfig;
|
1460
|
+
/**
|
1461
|
+
*
|
1462
|
+
* @type {Locale}
|
1463
|
+
* @memberof Preferences
|
1464
|
+
*/
|
1465
|
+
'locale'?: Locale;
|
1459
1466
|
}
|
1460
1467
|
/**
|
1461
1468
|
*
|
@@ -1469,12 +1476,6 @@ export interface PreferencesRequest {
|
|
1469
1476
|
* @memberof PreferencesRequest
|
1470
1477
|
*/
|
1471
1478
|
'preferredLocale'?: Locale;
|
1472
|
-
/**
|
1473
|
-
*
|
1474
|
-
* @type {Array<NotificationPreference>}
|
1475
|
-
* @memberof PreferencesRequest
|
1476
|
-
*/
|
1477
|
-
'notificationPreferences': Array<NotificationPreference>;
|
1478
1479
|
}
|
1479
1480
|
/**
|
1480
1481
|
*
|
@@ -1978,10 +1979,10 @@ export interface Progress {
|
|
1978
1979
|
'id': string;
|
1979
1980
|
/**
|
1980
1981
|
*
|
1981
|
-
* @type {
|
1982
|
+
* @type {string}
|
1982
1983
|
* @memberof Progress
|
1983
1984
|
*/
|
1984
|
-
'value':
|
1985
|
+
'value': string;
|
1985
1986
|
/**
|
1986
1987
|
*
|
1987
1988
|
* @type {string}
|
@@ -1990,11 +1991,11 @@ export interface Progress {
|
|
1990
1991
|
'value_mu': string;
|
1991
1992
|
/**
|
1992
1993
|
*
|
1993
|
-
* @type {{ [key: string]:
|
1994
|
+
* @type {{ [key: string]: string; }}
|
1994
1995
|
* @memberof Progress
|
1995
1996
|
*/
|
1996
1997
|
'value_detailed'?: {
|
1997
|
-
[key: string]:
|
1998
|
+
[key: string]: string;
|
1998
1999
|
};
|
1999
2000
|
/**
|
2000
2001
|
*
|
@@ -3409,10 +3410,10 @@ export interface Tenant {
|
|
3409
3410
|
'azureEntraClientID': string;
|
3410
3411
|
/**
|
3411
3412
|
*
|
3412
|
-
* @type {
|
3413
|
+
* @type {Locale}
|
3413
3414
|
* @memberof Tenant
|
3414
3415
|
*/
|
3415
|
-
'locale':
|
3416
|
+
'locale': Locale;
|
3416
3417
|
}
|
3417
3418
|
/**
|
3418
3419
|
*
|
@@ -3986,6 +3987,25 @@ export interface UserOrderListResponse {
|
|
3986
3987
|
*/
|
3987
3988
|
'nextToken'?: string;
|
3988
3989
|
}
|
3990
|
+
/**
|
3991
|
+
*
|
3992
|
+
* @export
|
3993
|
+
* @interface UserPreferencesRequest
|
3994
|
+
*/
|
3995
|
+
export interface UserPreferencesRequest {
|
3996
|
+
/**
|
3997
|
+
*
|
3998
|
+
* @type {Locale}
|
3999
|
+
* @memberof UserPreferencesRequest
|
4000
|
+
*/
|
4001
|
+
'preferredLocale'?: Locale;
|
4002
|
+
/**
|
4003
|
+
*
|
4004
|
+
* @type {Array<NotificationPreference>}
|
4005
|
+
* @memberof UserPreferencesRequest
|
4006
|
+
*/
|
4007
|
+
'notificationPreferences': Array<NotificationPreference>;
|
4008
|
+
}
|
3989
4009
|
/**
|
3990
4010
|
*
|
3991
4011
|
* @export
|
@@ -5434,6 +5454,13 @@ export declare const NotificationApiAxiosParamCreator: (configuration?: Configur
|
|
5434
5454
|
* @throws {RequiredError}
|
5435
5455
|
*/
|
5436
5456
|
getPreferences: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
5457
|
+
/**
|
5458
|
+
* Get preferences for the authenticated user
|
5459
|
+
* @summary Get preferences
|
5460
|
+
* @param {*} [options] Override http request option.
|
5461
|
+
* @throws {RequiredError}
|
5462
|
+
*/
|
5463
|
+
getUserPreferences: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
5437
5464
|
/**
|
5438
5465
|
* List paginated notifications
|
5439
5466
|
* @summary List notifications
|
@@ -5459,6 +5486,14 @@ export declare const NotificationApiAxiosParamCreator: (configuration?: Configur
|
|
5459
5486
|
* @throws {RequiredError}
|
5460
5487
|
*/
|
5461
5488
|
updatePreferences: (preferencesRequest: PreferencesRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
5489
|
+
/**
|
5490
|
+
* Update preferences for the authenticated user
|
5491
|
+
* @summary Update preferences
|
5492
|
+
* @param {UserPreferencesRequest} userPreferencesRequest notification preferences
|
5493
|
+
* @param {*} [options] Override http request option.
|
5494
|
+
* @throws {RequiredError}
|
5495
|
+
*/
|
5496
|
+
updateUserPreferences: (userPreferencesRequest: UserPreferencesRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
5462
5497
|
};
|
5463
5498
|
/**
|
5464
5499
|
* NotificationApi - functional programming interface
|
@@ -5488,6 +5523,13 @@ export declare const NotificationApiFp: (configuration?: Configuration) => {
|
|
5488
5523
|
* @throws {RequiredError}
|
5489
5524
|
*/
|
5490
5525
|
getPreferences(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Preferences>>;
|
5526
|
+
/**
|
5527
|
+
* Get preferences for the authenticated user
|
5528
|
+
* @summary Get preferences
|
5529
|
+
* @param {*} [options] Override http request option.
|
5530
|
+
* @throws {RequiredError}
|
5531
|
+
*/
|
5532
|
+
getUserPreferences(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Preferences>>;
|
5491
5533
|
/**
|
5492
5534
|
* List paginated notifications
|
5493
5535
|
* @summary List notifications
|
@@ -5513,6 +5555,14 @@ export declare const NotificationApiFp: (configuration?: Configuration) => {
|
|
5513
5555
|
* @throws {RequiredError}
|
5514
5556
|
*/
|
5515
5557
|
updatePreferences(preferencesRequest: PreferencesRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
5558
|
+
/**
|
5559
|
+
* Update preferences for the authenticated user
|
5560
|
+
* @summary Update preferences
|
5561
|
+
* @param {UserPreferencesRequest} userPreferencesRequest notification preferences
|
5562
|
+
* @param {*} [options] Override http request option.
|
5563
|
+
* @throws {RequiredError}
|
5564
|
+
*/
|
5565
|
+
updateUserPreferences(userPreferencesRequest: UserPreferencesRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
5516
5566
|
};
|
5517
5567
|
/**
|
5518
5568
|
* NotificationApi - factory interface
|
@@ -5542,6 +5592,13 @@ export declare const NotificationApiFactory: (configuration?: Configuration, bas
|
|
5542
5592
|
* @throws {RequiredError}
|
5543
5593
|
*/
|
5544
5594
|
getPreferences(options?: any): AxiosPromise<Preferences>;
|
5595
|
+
/**
|
5596
|
+
* Get preferences for the authenticated user
|
5597
|
+
* @summary Get preferences
|
5598
|
+
* @param {*} [options] Override http request option.
|
5599
|
+
* @throws {RequiredError}
|
5600
|
+
*/
|
5601
|
+
getUserPreferences(options?: any): AxiosPromise<Preferences>;
|
5545
5602
|
/**
|
5546
5603
|
* List paginated notifications
|
5547
5604
|
* @summary List notifications
|
@@ -5567,6 +5624,14 @@ export declare const NotificationApiFactory: (configuration?: Configuration, bas
|
|
5567
5624
|
* @throws {RequiredError}
|
5568
5625
|
*/
|
5569
5626
|
updatePreferences(preferencesRequest: PreferencesRequest, options?: any): AxiosPromise<void>;
|
5627
|
+
/**
|
5628
|
+
* Update preferences for the authenticated user
|
5629
|
+
* @summary Update preferences
|
5630
|
+
* @param {UserPreferencesRequest} userPreferencesRequest notification preferences
|
5631
|
+
* @param {*} [options] Override http request option.
|
5632
|
+
* @throws {RequiredError}
|
5633
|
+
*/
|
5634
|
+
updateUserPreferences(userPreferencesRequest: UserPreferencesRequest, options?: any): AxiosPromise<void>;
|
5570
5635
|
};
|
5571
5636
|
/**
|
5572
5637
|
* NotificationApi - object-oriented interface
|
@@ -5601,6 +5666,14 @@ export declare class NotificationApi extends BaseAPI {
|
|
5601
5666
|
* @memberof NotificationApi
|
5602
5667
|
*/
|
5603
5668
|
getPreferences(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Preferences, any>>;
|
5669
|
+
/**
|
5670
|
+
* Get preferences for the authenticated user
|
5671
|
+
* @summary Get preferences
|
5672
|
+
* @param {*} [options] Override http request option.
|
5673
|
+
* @throws {RequiredError}
|
5674
|
+
* @memberof NotificationApi
|
5675
|
+
*/
|
5676
|
+
getUserPreferences(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Preferences, any>>;
|
5604
5677
|
/**
|
5605
5678
|
* List paginated notifications
|
5606
5679
|
* @summary List notifications
|
@@ -5629,6 +5702,15 @@ export declare class NotificationApi extends BaseAPI {
|
|
5629
5702
|
* @memberof NotificationApi
|
5630
5703
|
*/
|
5631
5704
|
updatePreferences(preferencesRequest: PreferencesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
5705
|
+
/**
|
5706
|
+
* Update preferences for the authenticated user
|
5707
|
+
* @summary Update preferences
|
5708
|
+
* @param {UserPreferencesRequest} userPreferencesRequest notification preferences
|
5709
|
+
* @param {*} [options] Override http request option.
|
5710
|
+
* @throws {RequiredError}
|
5711
|
+
* @memberof NotificationApi
|
5712
|
+
*/
|
5713
|
+
updateUserPreferences(userPreferencesRequest: UserPreferencesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
5632
5714
|
}
|
5633
5715
|
/**
|
5634
5716
|
* OrderApi - axios parameter creator
|
package/dist/api.js
CHANGED
@@ -111,9 +111,10 @@ exports.Feature = {
|
|
111
111
|
* @enum {string}
|
112
112
|
*/
|
113
113
|
exports.Locale = {
|
114
|
-
EnUs: 'en-
|
115
|
-
RoRo: 'ro-
|
116
|
-
HuHu: 'hu-
|
114
|
+
EnUs: 'en-US',
|
115
|
+
RoRo: 'ro-RO',
|
116
|
+
HuHu: 'hu-HU',
|
117
|
+
DeDe: 'de-DE'
|
117
118
|
};
|
118
119
|
exports.MinTurnoverRestrictionKindEnum = {
|
119
120
|
MinTurnover: 'minTurnover'
|
@@ -2692,6 +2693,34 @@ const NotificationApiAxiosParamCreator = function (configuration) {
|
|
2692
2693
|
* @throws {RequiredError}
|
2693
2694
|
*/
|
2694
2695
|
getPreferences: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
2696
|
+
const localVarPath = `/admins/preferences`;
|
2697
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2698
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
2699
|
+
let baseOptions;
|
2700
|
+
if (configuration) {
|
2701
|
+
baseOptions = configuration.baseOptions;
|
2702
|
+
}
|
2703
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
2704
|
+
const localVarHeaderParameter = {};
|
2705
|
+
const localVarQueryParameter = {};
|
2706
|
+
// authentication customerJWT required
|
2707
|
+
// http bearer authentication required
|
2708
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
2709
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
2710
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2711
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
2712
|
+
return {
|
2713
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
2714
|
+
options: localVarRequestOptions,
|
2715
|
+
};
|
2716
|
+
}),
|
2717
|
+
/**
|
2718
|
+
* Get preferences for the authenticated user
|
2719
|
+
* @summary Get preferences
|
2720
|
+
* @param {*} [options] Override http request option.
|
2721
|
+
* @throws {RequiredError}
|
2722
|
+
*/
|
2723
|
+
getUserPreferences: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
2695
2724
|
const localVarPath = `/users/preferences`;
|
2696
2725
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2697
2726
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
@@ -2791,7 +2820,7 @@ const NotificationApiAxiosParamCreator = function (configuration) {
|
|
2791
2820
|
updatePreferences: (preferencesRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
2792
2821
|
// verify required parameter 'preferencesRequest' is not null or undefined
|
2793
2822
|
(0, common_1.assertParamExists)('updatePreferences', 'preferencesRequest', preferencesRequest);
|
2794
|
-
const localVarPath = `/
|
2823
|
+
const localVarPath = `/admins/preferences`;
|
2795
2824
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2796
2825
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
2797
2826
|
let baseOptions;
|
@@ -2814,6 +2843,39 @@ const NotificationApiAxiosParamCreator = function (configuration) {
|
|
2814
2843
|
options: localVarRequestOptions,
|
2815
2844
|
};
|
2816
2845
|
}),
|
2846
|
+
/**
|
2847
|
+
* Update preferences for the authenticated user
|
2848
|
+
* @summary Update preferences
|
2849
|
+
* @param {UserPreferencesRequest} userPreferencesRequest notification preferences
|
2850
|
+
* @param {*} [options] Override http request option.
|
2851
|
+
* @throws {RequiredError}
|
2852
|
+
*/
|
2853
|
+
updateUserPreferences: (userPreferencesRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
2854
|
+
// verify required parameter 'userPreferencesRequest' is not null or undefined
|
2855
|
+
(0, common_1.assertParamExists)('updateUserPreferences', 'userPreferencesRequest', userPreferencesRequest);
|
2856
|
+
const localVarPath = `/users/preferences`;
|
2857
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2858
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
2859
|
+
let baseOptions;
|
2860
|
+
if (configuration) {
|
2861
|
+
baseOptions = configuration.baseOptions;
|
2862
|
+
}
|
2863
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
2864
|
+
const localVarHeaderParameter = {};
|
2865
|
+
const localVarQueryParameter = {};
|
2866
|
+
// authentication customerJWT required
|
2867
|
+
// http bearer authentication required
|
2868
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
2869
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2870
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
2871
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2872
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
2873
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(userPreferencesRequest, localVarRequestOptions, configuration);
|
2874
|
+
return {
|
2875
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
2876
|
+
options: localVarRequestOptions,
|
2877
|
+
};
|
2878
|
+
}),
|
2817
2879
|
};
|
2818
2880
|
};
|
2819
2881
|
exports.NotificationApiAxiosParamCreator = NotificationApiAxiosParamCreator;
|
@@ -2862,6 +2924,18 @@ const NotificationApiFp = function (configuration) {
|
|
2862
2924
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
2863
2925
|
});
|
2864
2926
|
},
|
2927
|
+
/**
|
2928
|
+
* Get preferences for the authenticated user
|
2929
|
+
* @summary Get preferences
|
2930
|
+
* @param {*} [options] Override http request option.
|
2931
|
+
* @throws {RequiredError}
|
2932
|
+
*/
|
2933
|
+
getUserPreferences(options) {
|
2934
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2935
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserPreferences(options);
|
2936
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
2937
|
+
});
|
2938
|
+
},
|
2865
2939
|
/**
|
2866
2940
|
* List paginated notifications
|
2867
2941
|
* @summary List notifications
|
@@ -2902,6 +2976,19 @@ const NotificationApiFp = function (configuration) {
|
|
2902
2976
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
2903
2977
|
});
|
2904
2978
|
},
|
2979
|
+
/**
|
2980
|
+
* Update preferences for the authenticated user
|
2981
|
+
* @summary Update preferences
|
2982
|
+
* @param {UserPreferencesRequest} userPreferencesRequest notification preferences
|
2983
|
+
* @param {*} [options] Override http request option.
|
2984
|
+
* @throws {RequiredError}
|
2985
|
+
*/
|
2986
|
+
updateUserPreferences(userPreferencesRequest, options) {
|
2987
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2988
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUserPreferences(userPreferencesRequest, options);
|
2989
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
2990
|
+
});
|
2991
|
+
},
|
2905
2992
|
};
|
2906
2993
|
};
|
2907
2994
|
exports.NotificationApiFp = NotificationApiFp;
|
@@ -2941,6 +3028,15 @@ const NotificationApiFactory = function (configuration, basePath, axios) {
|
|
2941
3028
|
getPreferences(options) {
|
2942
3029
|
return localVarFp.getPreferences(options).then((request) => request(axios, basePath));
|
2943
3030
|
},
|
3031
|
+
/**
|
3032
|
+
* Get preferences for the authenticated user
|
3033
|
+
* @summary Get preferences
|
3034
|
+
* @param {*} [options] Override http request option.
|
3035
|
+
* @throws {RequiredError}
|
3036
|
+
*/
|
3037
|
+
getUserPreferences(options) {
|
3038
|
+
return localVarFp.getUserPreferences(options).then((request) => request(axios, basePath));
|
3039
|
+
},
|
2944
3040
|
/**
|
2945
3041
|
* List paginated notifications
|
2946
3042
|
* @summary List notifications
|
@@ -2972,6 +3068,16 @@ const NotificationApiFactory = function (configuration, basePath, axios) {
|
|
2972
3068
|
updatePreferences(preferencesRequest, options) {
|
2973
3069
|
return localVarFp.updatePreferences(preferencesRequest, options).then((request) => request(axios, basePath));
|
2974
3070
|
},
|
3071
|
+
/**
|
3072
|
+
* Update preferences for the authenticated user
|
3073
|
+
* @summary Update preferences
|
3074
|
+
* @param {UserPreferencesRequest} userPreferencesRequest notification preferences
|
3075
|
+
* @param {*} [options] Override http request option.
|
3076
|
+
* @throws {RequiredError}
|
3077
|
+
*/
|
3078
|
+
updateUserPreferences(userPreferencesRequest, options) {
|
3079
|
+
return localVarFp.updateUserPreferences(userPreferencesRequest, options).then((request) => request(axios, basePath));
|
3080
|
+
},
|
2975
3081
|
};
|
2976
3082
|
};
|
2977
3083
|
exports.NotificationApiFactory = NotificationApiFactory;
|
@@ -3014,6 +3120,16 @@ class NotificationApi extends base_1.BaseAPI {
|
|
3014
3120
|
getPreferences(options) {
|
3015
3121
|
return (0, exports.NotificationApiFp)(this.configuration).getPreferences(options).then((request) => request(this.axios, this.basePath));
|
3016
3122
|
}
|
3123
|
+
/**
|
3124
|
+
* Get preferences for the authenticated user
|
3125
|
+
* @summary Get preferences
|
3126
|
+
* @param {*} [options] Override http request option.
|
3127
|
+
* @throws {RequiredError}
|
3128
|
+
* @memberof NotificationApi
|
3129
|
+
*/
|
3130
|
+
getUserPreferences(options) {
|
3131
|
+
return (0, exports.NotificationApiFp)(this.configuration).getUserPreferences(options).then((request) => request(this.axios, this.basePath));
|
3132
|
+
}
|
3017
3133
|
/**
|
3018
3134
|
* List paginated notifications
|
3019
3135
|
* @summary List notifications
|
@@ -3048,6 +3164,17 @@ class NotificationApi extends base_1.BaseAPI {
|
|
3048
3164
|
updatePreferences(preferencesRequest, options) {
|
3049
3165
|
return (0, exports.NotificationApiFp)(this.configuration).updatePreferences(preferencesRequest, options).then((request) => request(this.axios, this.basePath));
|
3050
3166
|
}
|
3167
|
+
/**
|
3168
|
+
* Update preferences for the authenticated user
|
3169
|
+
* @summary Update preferences
|
3170
|
+
* @param {UserPreferencesRequest} userPreferencesRequest notification preferences
|
3171
|
+
* @param {*} [options] Override http request option.
|
3172
|
+
* @throws {RequiredError}
|
3173
|
+
* @memberof NotificationApi
|
3174
|
+
*/
|
3175
|
+
updateUserPreferences(userPreferencesRequest, options) {
|
3176
|
+
return (0, exports.NotificationApiFp)(this.configuration).updateUserPreferences(userPreferencesRequest, options).then((request) => request(this.axios, this.basePath));
|
3177
|
+
}
|
3051
3178
|
}
|
3052
3179
|
exports.NotificationApi = NotificationApi;
|
3053
3180
|
/**
|
package/dist/esm/api.d.ts
CHANGED
@@ -879,9 +879,10 @@ export interface Item {
|
|
879
879
|
* @enum {string}
|
880
880
|
*/
|
881
881
|
export declare const Locale: {
|
882
|
-
readonly EnUs: "en-
|
883
|
-
readonly RoRo: "ro-
|
884
|
-
readonly HuHu: "hu-
|
882
|
+
readonly EnUs: "en-US";
|
883
|
+
readonly RoRo: "ro-RO";
|
884
|
+
readonly HuHu: "hu-HU";
|
885
|
+
readonly DeDe: "de-DE";
|
885
886
|
};
|
886
887
|
export type Locale = typeof Locale[keyof typeof Locale];
|
887
888
|
/**
|
@@ -1456,6 +1457,12 @@ export interface Preferences {
|
|
1456
1457
|
* @memberof Preferences
|
1457
1458
|
*/
|
1458
1459
|
'promotionConfig': PromotionConfig;
|
1460
|
+
/**
|
1461
|
+
*
|
1462
|
+
* @type {Locale}
|
1463
|
+
* @memberof Preferences
|
1464
|
+
*/
|
1465
|
+
'locale'?: Locale;
|
1459
1466
|
}
|
1460
1467
|
/**
|
1461
1468
|
*
|
@@ -1469,12 +1476,6 @@ export interface PreferencesRequest {
|
|
1469
1476
|
* @memberof PreferencesRequest
|
1470
1477
|
*/
|
1471
1478
|
'preferredLocale'?: Locale;
|
1472
|
-
/**
|
1473
|
-
*
|
1474
|
-
* @type {Array<NotificationPreference>}
|
1475
|
-
* @memberof PreferencesRequest
|
1476
|
-
*/
|
1477
|
-
'notificationPreferences': Array<NotificationPreference>;
|
1478
1479
|
}
|
1479
1480
|
/**
|
1480
1481
|
*
|
@@ -1978,10 +1979,10 @@ export interface Progress {
|
|
1978
1979
|
'id': string;
|
1979
1980
|
/**
|
1980
1981
|
*
|
1981
|
-
* @type {
|
1982
|
+
* @type {string}
|
1982
1983
|
* @memberof Progress
|
1983
1984
|
*/
|
1984
|
-
'value':
|
1985
|
+
'value': string;
|
1985
1986
|
/**
|
1986
1987
|
*
|
1987
1988
|
* @type {string}
|
@@ -1990,11 +1991,11 @@ export interface Progress {
|
|
1990
1991
|
'value_mu': string;
|
1991
1992
|
/**
|
1992
1993
|
*
|
1993
|
-
* @type {{ [key: string]:
|
1994
|
+
* @type {{ [key: string]: string; }}
|
1994
1995
|
* @memberof Progress
|
1995
1996
|
*/
|
1996
1997
|
'value_detailed'?: {
|
1997
|
-
[key: string]:
|
1998
|
+
[key: string]: string;
|
1998
1999
|
};
|
1999
2000
|
/**
|
2000
2001
|
*
|
@@ -3409,10 +3410,10 @@ export interface Tenant {
|
|
3409
3410
|
'azureEntraClientID': string;
|
3410
3411
|
/**
|
3411
3412
|
*
|
3412
|
-
* @type {
|
3413
|
+
* @type {Locale}
|
3413
3414
|
* @memberof Tenant
|
3414
3415
|
*/
|
3415
|
-
'locale':
|
3416
|
+
'locale': Locale;
|
3416
3417
|
}
|
3417
3418
|
/**
|
3418
3419
|
*
|
@@ -3986,6 +3987,25 @@ export interface UserOrderListResponse {
|
|
3986
3987
|
*/
|
3987
3988
|
'nextToken'?: string;
|
3988
3989
|
}
|
3990
|
+
/**
|
3991
|
+
*
|
3992
|
+
* @export
|
3993
|
+
* @interface UserPreferencesRequest
|
3994
|
+
*/
|
3995
|
+
export interface UserPreferencesRequest {
|
3996
|
+
/**
|
3997
|
+
*
|
3998
|
+
* @type {Locale}
|
3999
|
+
* @memberof UserPreferencesRequest
|
4000
|
+
*/
|
4001
|
+
'preferredLocale'?: Locale;
|
4002
|
+
/**
|
4003
|
+
*
|
4004
|
+
* @type {Array<NotificationPreference>}
|
4005
|
+
* @memberof UserPreferencesRequest
|
4006
|
+
*/
|
4007
|
+
'notificationPreferences': Array<NotificationPreference>;
|
4008
|
+
}
|
3989
4009
|
/**
|
3990
4010
|
*
|
3991
4011
|
* @export
|
@@ -5434,6 +5454,13 @@ export declare const NotificationApiAxiosParamCreator: (configuration?: Configur
|
|
5434
5454
|
* @throws {RequiredError}
|
5435
5455
|
*/
|
5436
5456
|
getPreferences: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
5457
|
+
/**
|
5458
|
+
* Get preferences for the authenticated user
|
5459
|
+
* @summary Get preferences
|
5460
|
+
* @param {*} [options] Override http request option.
|
5461
|
+
* @throws {RequiredError}
|
5462
|
+
*/
|
5463
|
+
getUserPreferences: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
5437
5464
|
/**
|
5438
5465
|
* List paginated notifications
|
5439
5466
|
* @summary List notifications
|
@@ -5459,6 +5486,14 @@ export declare const NotificationApiAxiosParamCreator: (configuration?: Configur
|
|
5459
5486
|
* @throws {RequiredError}
|
5460
5487
|
*/
|
5461
5488
|
updatePreferences: (preferencesRequest: PreferencesRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
5489
|
+
/**
|
5490
|
+
* Update preferences for the authenticated user
|
5491
|
+
* @summary Update preferences
|
5492
|
+
* @param {UserPreferencesRequest} userPreferencesRequest notification preferences
|
5493
|
+
* @param {*} [options] Override http request option.
|
5494
|
+
* @throws {RequiredError}
|
5495
|
+
*/
|
5496
|
+
updateUserPreferences: (userPreferencesRequest: UserPreferencesRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
5462
5497
|
};
|
5463
5498
|
/**
|
5464
5499
|
* NotificationApi - functional programming interface
|
@@ -5488,6 +5523,13 @@ export declare const NotificationApiFp: (configuration?: Configuration) => {
|
|
5488
5523
|
* @throws {RequiredError}
|
5489
5524
|
*/
|
5490
5525
|
getPreferences(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Preferences>>;
|
5526
|
+
/**
|
5527
|
+
* Get preferences for the authenticated user
|
5528
|
+
* @summary Get preferences
|
5529
|
+
* @param {*} [options] Override http request option.
|
5530
|
+
* @throws {RequiredError}
|
5531
|
+
*/
|
5532
|
+
getUserPreferences(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Preferences>>;
|
5491
5533
|
/**
|
5492
5534
|
* List paginated notifications
|
5493
5535
|
* @summary List notifications
|
@@ -5513,6 +5555,14 @@ export declare const NotificationApiFp: (configuration?: Configuration) => {
|
|
5513
5555
|
* @throws {RequiredError}
|
5514
5556
|
*/
|
5515
5557
|
updatePreferences(preferencesRequest: PreferencesRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
5558
|
+
/**
|
5559
|
+
* Update preferences for the authenticated user
|
5560
|
+
* @summary Update preferences
|
5561
|
+
* @param {UserPreferencesRequest} userPreferencesRequest notification preferences
|
5562
|
+
* @param {*} [options] Override http request option.
|
5563
|
+
* @throws {RequiredError}
|
5564
|
+
*/
|
5565
|
+
updateUserPreferences(userPreferencesRequest: UserPreferencesRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
5516
5566
|
};
|
5517
5567
|
/**
|
5518
5568
|
* NotificationApi - factory interface
|
@@ -5542,6 +5592,13 @@ export declare const NotificationApiFactory: (configuration?: Configuration, bas
|
|
5542
5592
|
* @throws {RequiredError}
|
5543
5593
|
*/
|
5544
5594
|
getPreferences(options?: any): AxiosPromise<Preferences>;
|
5595
|
+
/**
|
5596
|
+
* Get preferences for the authenticated user
|
5597
|
+
* @summary Get preferences
|
5598
|
+
* @param {*} [options] Override http request option.
|
5599
|
+
* @throws {RequiredError}
|
5600
|
+
*/
|
5601
|
+
getUserPreferences(options?: any): AxiosPromise<Preferences>;
|
5545
5602
|
/**
|
5546
5603
|
* List paginated notifications
|
5547
5604
|
* @summary List notifications
|
@@ -5567,6 +5624,14 @@ export declare const NotificationApiFactory: (configuration?: Configuration, bas
|
|
5567
5624
|
* @throws {RequiredError}
|
5568
5625
|
*/
|
5569
5626
|
updatePreferences(preferencesRequest: PreferencesRequest, options?: any): AxiosPromise<void>;
|
5627
|
+
/**
|
5628
|
+
* Update preferences for the authenticated user
|
5629
|
+
* @summary Update preferences
|
5630
|
+
* @param {UserPreferencesRequest} userPreferencesRequest notification preferences
|
5631
|
+
* @param {*} [options] Override http request option.
|
5632
|
+
* @throws {RequiredError}
|
5633
|
+
*/
|
5634
|
+
updateUserPreferences(userPreferencesRequest: UserPreferencesRequest, options?: any): AxiosPromise<void>;
|
5570
5635
|
};
|
5571
5636
|
/**
|
5572
5637
|
* NotificationApi - object-oriented interface
|
@@ -5601,6 +5666,14 @@ export declare class NotificationApi extends BaseAPI {
|
|
5601
5666
|
* @memberof NotificationApi
|
5602
5667
|
*/
|
5603
5668
|
getPreferences(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Preferences, any>>;
|
5669
|
+
/**
|
5670
|
+
* Get preferences for the authenticated user
|
5671
|
+
* @summary Get preferences
|
5672
|
+
* @param {*} [options] Override http request option.
|
5673
|
+
* @throws {RequiredError}
|
5674
|
+
* @memberof NotificationApi
|
5675
|
+
*/
|
5676
|
+
getUserPreferences(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Preferences, any>>;
|
5604
5677
|
/**
|
5605
5678
|
* List paginated notifications
|
5606
5679
|
* @summary List notifications
|
@@ -5629,6 +5702,15 @@ export declare class NotificationApi extends BaseAPI {
|
|
5629
5702
|
* @memberof NotificationApi
|
5630
5703
|
*/
|
5631
5704
|
updatePreferences(preferencesRequest: PreferencesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
5705
|
+
/**
|
5706
|
+
* Update preferences for the authenticated user
|
5707
|
+
* @summary Update preferences
|
5708
|
+
* @param {UserPreferencesRequest} userPreferencesRequest notification preferences
|
5709
|
+
* @param {*} [options] Override http request option.
|
5710
|
+
* @throws {RequiredError}
|
5711
|
+
* @memberof NotificationApi
|
5712
|
+
*/
|
5713
|
+
updateUserPreferences(userPreferencesRequest: UserPreferencesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
5632
5714
|
}
|
5633
5715
|
/**
|
5634
5716
|
* OrderApi - axios parameter creator
|
package/dist/esm/api.js
CHANGED
@@ -106,9 +106,10 @@ export const Feature = {
|
|
106
106
|
* @enum {string}
|
107
107
|
*/
|
108
108
|
export const Locale = {
|
109
|
-
EnUs: 'en-
|
110
|
-
RoRo: 'ro-
|
111
|
-
HuHu: 'hu-
|
109
|
+
EnUs: 'en-US',
|
110
|
+
RoRo: 'ro-RO',
|
111
|
+
HuHu: 'hu-HU',
|
112
|
+
DeDe: 'de-DE'
|
112
113
|
};
|
113
114
|
export const MinTurnoverRestrictionKindEnum = {
|
114
115
|
MinTurnover: 'minTurnover'
|
@@ -2651,6 +2652,34 @@ export const NotificationApiAxiosParamCreator = function (configuration) {
|
|
2651
2652
|
* @throws {RequiredError}
|
2652
2653
|
*/
|
2653
2654
|
getPreferences: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
2655
|
+
const localVarPath = `/admins/preferences`;
|
2656
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2657
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
2658
|
+
let baseOptions;
|
2659
|
+
if (configuration) {
|
2660
|
+
baseOptions = configuration.baseOptions;
|
2661
|
+
}
|
2662
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
2663
|
+
const localVarHeaderParameter = {};
|
2664
|
+
const localVarQueryParameter = {};
|
2665
|
+
// authentication customerJWT required
|
2666
|
+
// http bearer authentication required
|
2667
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
2668
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
2669
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2670
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
2671
|
+
return {
|
2672
|
+
url: toPathString(localVarUrlObj),
|
2673
|
+
options: localVarRequestOptions,
|
2674
|
+
};
|
2675
|
+
}),
|
2676
|
+
/**
|
2677
|
+
* Get preferences for the authenticated user
|
2678
|
+
* @summary Get preferences
|
2679
|
+
* @param {*} [options] Override http request option.
|
2680
|
+
* @throws {RequiredError}
|
2681
|
+
*/
|
2682
|
+
getUserPreferences: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
2654
2683
|
const localVarPath = `/users/preferences`;
|
2655
2684
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2656
2685
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -2750,7 +2779,7 @@ export const NotificationApiAxiosParamCreator = function (configuration) {
|
|
2750
2779
|
updatePreferences: (preferencesRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
2751
2780
|
// verify required parameter 'preferencesRequest' is not null or undefined
|
2752
2781
|
assertParamExists('updatePreferences', 'preferencesRequest', preferencesRequest);
|
2753
|
-
const localVarPath = `/
|
2782
|
+
const localVarPath = `/admins/preferences`;
|
2754
2783
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2755
2784
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
2756
2785
|
let baseOptions;
|
@@ -2773,6 +2802,39 @@ export const NotificationApiAxiosParamCreator = function (configuration) {
|
|
2773
2802
|
options: localVarRequestOptions,
|
2774
2803
|
};
|
2775
2804
|
}),
|
2805
|
+
/**
|
2806
|
+
* Update preferences for the authenticated user
|
2807
|
+
* @summary Update preferences
|
2808
|
+
* @param {UserPreferencesRequest} userPreferencesRequest notification preferences
|
2809
|
+
* @param {*} [options] Override http request option.
|
2810
|
+
* @throws {RequiredError}
|
2811
|
+
*/
|
2812
|
+
updateUserPreferences: (userPreferencesRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
2813
|
+
// verify required parameter 'userPreferencesRequest' is not null or undefined
|
2814
|
+
assertParamExists('updateUserPreferences', 'userPreferencesRequest', userPreferencesRequest);
|
2815
|
+
const localVarPath = `/users/preferences`;
|
2816
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2817
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
2818
|
+
let baseOptions;
|
2819
|
+
if (configuration) {
|
2820
|
+
baseOptions = configuration.baseOptions;
|
2821
|
+
}
|
2822
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
2823
|
+
const localVarHeaderParameter = {};
|
2824
|
+
const localVarQueryParameter = {};
|
2825
|
+
// authentication customerJWT required
|
2826
|
+
// http bearer authentication required
|
2827
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
2828
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2829
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
2830
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2831
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
2832
|
+
localVarRequestOptions.data = serializeDataIfNeeded(userPreferencesRequest, localVarRequestOptions, configuration);
|
2833
|
+
return {
|
2834
|
+
url: toPathString(localVarUrlObj),
|
2835
|
+
options: localVarRequestOptions,
|
2836
|
+
};
|
2837
|
+
}),
|
2776
2838
|
};
|
2777
2839
|
};
|
2778
2840
|
/**
|
@@ -2820,6 +2882,18 @@ export const NotificationApiFp = function (configuration) {
|
|
2820
2882
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
2821
2883
|
});
|
2822
2884
|
},
|
2885
|
+
/**
|
2886
|
+
* Get preferences for the authenticated user
|
2887
|
+
* @summary Get preferences
|
2888
|
+
* @param {*} [options] Override http request option.
|
2889
|
+
* @throws {RequiredError}
|
2890
|
+
*/
|
2891
|
+
getUserPreferences(options) {
|
2892
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2893
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserPreferences(options);
|
2894
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
2895
|
+
});
|
2896
|
+
},
|
2823
2897
|
/**
|
2824
2898
|
* List paginated notifications
|
2825
2899
|
* @summary List notifications
|
@@ -2860,6 +2934,19 @@ export const NotificationApiFp = function (configuration) {
|
|
2860
2934
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
2861
2935
|
});
|
2862
2936
|
},
|
2937
|
+
/**
|
2938
|
+
* Update preferences for the authenticated user
|
2939
|
+
* @summary Update preferences
|
2940
|
+
* @param {UserPreferencesRequest} userPreferencesRequest notification preferences
|
2941
|
+
* @param {*} [options] Override http request option.
|
2942
|
+
* @throws {RequiredError}
|
2943
|
+
*/
|
2944
|
+
updateUserPreferences(userPreferencesRequest, options) {
|
2945
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2946
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUserPreferences(userPreferencesRequest, options);
|
2947
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
2948
|
+
});
|
2949
|
+
},
|
2863
2950
|
};
|
2864
2951
|
};
|
2865
2952
|
/**
|
@@ -2898,6 +2985,15 @@ export const NotificationApiFactory = function (configuration, basePath, axios)
|
|
2898
2985
|
getPreferences(options) {
|
2899
2986
|
return localVarFp.getPreferences(options).then((request) => request(axios, basePath));
|
2900
2987
|
},
|
2988
|
+
/**
|
2989
|
+
* Get preferences for the authenticated user
|
2990
|
+
* @summary Get preferences
|
2991
|
+
* @param {*} [options] Override http request option.
|
2992
|
+
* @throws {RequiredError}
|
2993
|
+
*/
|
2994
|
+
getUserPreferences(options) {
|
2995
|
+
return localVarFp.getUserPreferences(options).then((request) => request(axios, basePath));
|
2996
|
+
},
|
2901
2997
|
/**
|
2902
2998
|
* List paginated notifications
|
2903
2999
|
* @summary List notifications
|
@@ -2929,6 +3025,16 @@ export const NotificationApiFactory = function (configuration, basePath, axios)
|
|
2929
3025
|
updatePreferences(preferencesRequest, options) {
|
2930
3026
|
return localVarFp.updatePreferences(preferencesRequest, options).then((request) => request(axios, basePath));
|
2931
3027
|
},
|
3028
|
+
/**
|
3029
|
+
* Update preferences for the authenticated user
|
3030
|
+
* @summary Update preferences
|
3031
|
+
* @param {UserPreferencesRequest} userPreferencesRequest notification preferences
|
3032
|
+
* @param {*} [options] Override http request option.
|
3033
|
+
* @throws {RequiredError}
|
3034
|
+
*/
|
3035
|
+
updateUserPreferences(userPreferencesRequest, options) {
|
3036
|
+
return localVarFp.updateUserPreferences(userPreferencesRequest, options).then((request) => request(axios, basePath));
|
3037
|
+
},
|
2932
3038
|
};
|
2933
3039
|
};
|
2934
3040
|
/**
|
@@ -2970,6 +3076,16 @@ export class NotificationApi extends BaseAPI {
|
|
2970
3076
|
getPreferences(options) {
|
2971
3077
|
return NotificationApiFp(this.configuration).getPreferences(options).then((request) => request(this.axios, this.basePath));
|
2972
3078
|
}
|
3079
|
+
/**
|
3080
|
+
* Get preferences for the authenticated user
|
3081
|
+
* @summary Get preferences
|
3082
|
+
* @param {*} [options] Override http request option.
|
3083
|
+
* @throws {RequiredError}
|
3084
|
+
* @memberof NotificationApi
|
3085
|
+
*/
|
3086
|
+
getUserPreferences(options) {
|
3087
|
+
return NotificationApiFp(this.configuration).getUserPreferences(options).then((request) => request(this.axios, this.basePath));
|
3088
|
+
}
|
2973
3089
|
/**
|
2974
3090
|
* List paginated notifications
|
2975
3091
|
* @summary List notifications
|
@@ -3004,6 +3120,17 @@ export class NotificationApi extends BaseAPI {
|
|
3004
3120
|
updatePreferences(preferencesRequest, options) {
|
3005
3121
|
return NotificationApiFp(this.configuration).updatePreferences(preferencesRequest, options).then((request) => request(this.axios, this.basePath));
|
3006
3122
|
}
|
3123
|
+
/**
|
3124
|
+
* Update preferences for the authenticated user
|
3125
|
+
* @summary Update preferences
|
3126
|
+
* @param {UserPreferencesRequest} userPreferencesRequest notification preferences
|
3127
|
+
* @param {*} [options] Override http request option.
|
3128
|
+
* @throws {RequiredError}
|
3129
|
+
* @memberof NotificationApi
|
3130
|
+
*/
|
3131
|
+
updateUserPreferences(userPreferencesRequest, options) {
|
3132
|
+
return NotificationApiFp(this.configuration).updateUserPreferences(userPreferencesRequest, options).then((request) => request(this.axios, this.basePath));
|
3133
|
+
}
|
3007
3134
|
}
|
3008
3135
|
/**
|
3009
3136
|
* OrderApi - axios parameter creator
|