@infisale-client/api 1.2.7 → 1.2.9
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/dist/api/api.d.ts +106 -0
- package/dist/api/api.js +54 -1
- package/dist/api/api.mjs +54 -1
- package/package.json +2 -2
package/dist/api/api.d.ts
CHANGED
|
@@ -128,6 +128,7 @@ export declare const ComponentTypeEnum: {
|
|
|
128
128
|
readonly FOOTER: "footer";
|
|
129
129
|
readonly EMAIL_SIGNUP: "email-signup";
|
|
130
130
|
readonly CONTACT_FORM: "contact-form";
|
|
131
|
+
readonly BASKET_DETAIL: "basket-detail";
|
|
131
132
|
};
|
|
132
133
|
export type ComponentTypeEnum = typeof ComponentTypeEnum[keyof typeof ComponentTypeEnum];
|
|
133
134
|
/**
|
|
@@ -6667,6 +6668,19 @@ export interface IThemesResponse {
|
|
|
6667
6668
|
*/
|
|
6668
6669
|
'data': Array<IThemeResponse>;
|
|
6669
6670
|
}
|
|
6671
|
+
/**
|
|
6672
|
+
*
|
|
6673
|
+
* @export
|
|
6674
|
+
* @interface IUserAddressResponse
|
|
6675
|
+
*/
|
|
6676
|
+
export interface IUserAddressResponse {
|
|
6677
|
+
/**
|
|
6678
|
+
*
|
|
6679
|
+
* @type {PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses}
|
|
6680
|
+
* @memberof IUserAddressResponse
|
|
6681
|
+
*/
|
|
6682
|
+
'addresses': PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses;
|
|
6683
|
+
}
|
|
6670
6684
|
/**
|
|
6671
6685
|
*
|
|
6672
6686
|
* @export
|
|
@@ -6850,6 +6864,12 @@ export interface IUserResponse {
|
|
|
6850
6864
|
* @memberof IUserResponse
|
|
6851
6865
|
*/
|
|
6852
6866
|
'contactPermissions': PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTContactPermissions;
|
|
6867
|
+
/**
|
|
6868
|
+
*
|
|
6869
|
+
* @type {PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses}
|
|
6870
|
+
* @memberof IUserResponse
|
|
6871
|
+
*/
|
|
6872
|
+
'addresses': PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses;
|
|
6853
6873
|
/**
|
|
6854
6874
|
*
|
|
6855
6875
|
* @type {UserStatusEnum}
|
|
@@ -8254,6 +8274,12 @@ export interface PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdmin
|
|
|
8254
8274
|
* @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrT
|
|
8255
8275
|
*/
|
|
8256
8276
|
'contactPermissions': PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTContactPermissions;
|
|
8277
|
+
/**
|
|
8278
|
+
*
|
|
8279
|
+
* @type {PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses}
|
|
8280
|
+
* @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrT
|
|
8281
|
+
*/
|
|
8282
|
+
'addresses': PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses;
|
|
8257
8283
|
/**
|
|
8258
8284
|
*
|
|
8259
8285
|
* @type {UserStatusEnum}
|
|
@@ -8285,6 +8311,61 @@ export interface PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdmin
|
|
|
8285
8311
|
*/
|
|
8286
8312
|
'updatedAt': string;
|
|
8287
8313
|
}
|
|
8314
|
+
/**
|
|
8315
|
+
*
|
|
8316
|
+
* @export
|
|
8317
|
+
* @interface PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
|
|
8318
|
+
*/
|
|
8319
|
+
export interface PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses {
|
|
8320
|
+
/**
|
|
8321
|
+
*
|
|
8322
|
+
* @type {string}
|
|
8323
|
+
* @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
|
|
8324
|
+
*/
|
|
8325
|
+
'phone': string;
|
|
8326
|
+
/**
|
|
8327
|
+
*
|
|
8328
|
+
* @type {string}
|
|
8329
|
+
* @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
|
|
8330
|
+
*/
|
|
8331
|
+
'address': string;
|
|
8332
|
+
/**
|
|
8333
|
+
*
|
|
8334
|
+
* @type {string}
|
|
8335
|
+
* @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
|
|
8336
|
+
*/
|
|
8337
|
+
'state': string;
|
|
8338
|
+
/**
|
|
8339
|
+
*
|
|
8340
|
+
* @type {string}
|
|
8341
|
+
* @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
|
|
8342
|
+
*/
|
|
8343
|
+
'city': string;
|
|
8344
|
+
/**
|
|
8345
|
+
*
|
|
8346
|
+
* @type {string}
|
|
8347
|
+
* @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
|
|
8348
|
+
*/
|
|
8349
|
+
'country': string;
|
|
8350
|
+
/**
|
|
8351
|
+
*
|
|
8352
|
+
* @type {string}
|
|
8353
|
+
* @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
|
|
8354
|
+
*/
|
|
8355
|
+
'surname': string;
|
|
8356
|
+
/**
|
|
8357
|
+
*
|
|
8358
|
+
* @type {string}
|
|
8359
|
+
* @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
|
|
8360
|
+
*/
|
|
8361
|
+
'name': string;
|
|
8362
|
+
/**
|
|
8363
|
+
*
|
|
8364
|
+
* @type {string}
|
|
8365
|
+
* @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddresses
|
|
8366
|
+
*/
|
|
8367
|
+
'title': string;
|
|
8368
|
+
}
|
|
8288
8369
|
/**
|
|
8289
8370
|
*
|
|
8290
8371
|
* @export
|
|
@@ -15194,6 +15275,12 @@ export declare const UserApiAxiosParamCreator: (configuration?: Configuration) =
|
|
|
15194
15275
|
* @throws {RequiredError}
|
|
15195
15276
|
*/
|
|
15196
15277
|
me: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15278
|
+
/**
|
|
15279
|
+
*
|
|
15280
|
+
* @param {*} [options] Override http request option.
|
|
15281
|
+
* @throws {RequiredError}
|
|
15282
|
+
*/
|
|
15283
|
+
meAddresses: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15197
15284
|
/**
|
|
15198
15285
|
*
|
|
15199
15286
|
* @param {string} id
|
|
@@ -15273,6 +15360,12 @@ export declare const UserApiFp: (configuration?: Configuration) => {
|
|
|
15273
15360
|
* @throws {RequiredError}
|
|
15274
15361
|
*/
|
|
15275
15362
|
me(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IUserResponse>>;
|
|
15363
|
+
/**
|
|
15364
|
+
*
|
|
15365
|
+
* @param {*} [options] Override http request option.
|
|
15366
|
+
* @throws {RequiredError}
|
|
15367
|
+
*/
|
|
15368
|
+
meAddresses(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IUserAddressResponse>>;
|
|
15276
15369
|
/**
|
|
15277
15370
|
*
|
|
15278
15371
|
* @param {string} id
|
|
@@ -15342,6 +15435,12 @@ export declare const UserApiFactory: (configuration?: Configuration, basePath?:
|
|
|
15342
15435
|
* @throws {RequiredError}
|
|
15343
15436
|
*/
|
|
15344
15437
|
me(options?: RawAxiosRequestConfig): AxiosPromise<IUserResponse>;
|
|
15438
|
+
/**
|
|
15439
|
+
*
|
|
15440
|
+
* @param {*} [options] Override http request option.
|
|
15441
|
+
* @throws {RequiredError}
|
|
15442
|
+
*/
|
|
15443
|
+
meAddresses(options?: RawAxiosRequestConfig): AxiosPromise<IUserAddressResponse>;
|
|
15345
15444
|
/**
|
|
15346
15445
|
*
|
|
15347
15446
|
* @param {UserApiUpdateUserRequest} requestParameters Request parameters.
|
|
@@ -15588,6 +15687,13 @@ export declare class UserApi extends BaseAPI {
|
|
|
15588
15687
|
* @memberof UserApi
|
|
15589
15688
|
*/
|
|
15590
15689
|
me(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IUserResponse, any>>;
|
|
15690
|
+
/**
|
|
15691
|
+
*
|
|
15692
|
+
* @param {*} [options] Override http request option.
|
|
15693
|
+
* @throws {RequiredError}
|
|
15694
|
+
* @memberof UserApi
|
|
15695
|
+
*/
|
|
15696
|
+
meAddresses(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IUserAddressResponse, any>>;
|
|
15591
15697
|
/**
|
|
15592
15698
|
*
|
|
15593
15699
|
* @param {UserApiUpdateUserRequest} requestParameters Request parameters.
|
package/dist/api/api.js
CHANGED
|
@@ -132,7 +132,8 @@ exports.ComponentTypeEnum = {
|
|
|
132
132
|
ANNOUNCEMENT: 'announcement',
|
|
133
133
|
FOOTER: 'footer',
|
|
134
134
|
EMAIL_SIGNUP: 'email-signup',
|
|
135
|
-
CONTACT_FORM: 'contact-form'
|
|
135
|
+
CONTACT_FORM: 'contact-form',
|
|
136
|
+
BASKET_DETAIL: 'basket-detail'
|
|
136
137
|
};
|
|
137
138
|
/**
|
|
138
139
|
*
|
|
@@ -9127,6 +9128,30 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
9127
9128
|
options: localVarRequestOptions,
|
|
9128
9129
|
};
|
|
9129
9130
|
},
|
|
9131
|
+
/**
|
|
9132
|
+
*
|
|
9133
|
+
* @param {*} [options] Override http request option.
|
|
9134
|
+
* @throws {RequiredError}
|
|
9135
|
+
*/
|
|
9136
|
+
meAddresses: async (options = {}) => {
|
|
9137
|
+
const localVarPath = `/api/users/me/addresses`;
|
|
9138
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9139
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9140
|
+
let baseOptions;
|
|
9141
|
+
if (configuration) {
|
|
9142
|
+
baseOptions = configuration.baseOptions;
|
|
9143
|
+
}
|
|
9144
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
9145
|
+
const localVarHeaderParameter = {};
|
|
9146
|
+
const localVarQueryParameter = {};
|
|
9147
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9148
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9149
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
9150
|
+
return {
|
|
9151
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
9152
|
+
options: localVarRequestOptions,
|
|
9153
|
+
};
|
|
9154
|
+
},
|
|
9130
9155
|
/**
|
|
9131
9156
|
*
|
|
9132
9157
|
* @param {string} id
|
|
@@ -9308,6 +9333,17 @@ const UserApiFp = function (configuration) {
|
|
|
9308
9333
|
const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.me']?.[localVarOperationServerIndex]?.url;
|
|
9309
9334
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9310
9335
|
},
|
|
9336
|
+
/**
|
|
9337
|
+
*
|
|
9338
|
+
* @param {*} [options] Override http request option.
|
|
9339
|
+
* @throws {RequiredError}
|
|
9340
|
+
*/
|
|
9341
|
+
async meAddresses(options) {
|
|
9342
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.meAddresses(options);
|
|
9343
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9344
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.meAddresses']?.[localVarOperationServerIndex]?.url;
|
|
9345
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9346
|
+
},
|
|
9311
9347
|
/**
|
|
9312
9348
|
*
|
|
9313
9349
|
* @param {string} id
|
|
@@ -9408,6 +9444,14 @@ const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
9408
9444
|
me(options) {
|
|
9409
9445
|
return localVarFp.me(options).then((request) => request(axios, basePath));
|
|
9410
9446
|
},
|
|
9447
|
+
/**
|
|
9448
|
+
*
|
|
9449
|
+
* @param {*} [options] Override http request option.
|
|
9450
|
+
* @throws {RequiredError}
|
|
9451
|
+
*/
|
|
9452
|
+
meAddresses(options) {
|
|
9453
|
+
return localVarFp.meAddresses(options).then((request) => request(axios, basePath));
|
|
9454
|
+
},
|
|
9411
9455
|
/**
|
|
9412
9456
|
*
|
|
9413
9457
|
* @param {UserApiUpdateUserRequest} requestParameters Request parameters.
|
|
@@ -9504,6 +9548,15 @@ class UserApi extends base_1.BaseAPI {
|
|
|
9504
9548
|
me(options) {
|
|
9505
9549
|
return (0, exports.UserApiFp)(this.configuration).me(options).then((request) => request(this.axios, this.basePath));
|
|
9506
9550
|
}
|
|
9551
|
+
/**
|
|
9552
|
+
*
|
|
9553
|
+
* @param {*} [options] Override http request option.
|
|
9554
|
+
* @throws {RequiredError}
|
|
9555
|
+
* @memberof UserApi
|
|
9556
|
+
*/
|
|
9557
|
+
meAddresses(options) {
|
|
9558
|
+
return (0, exports.UserApiFp)(this.configuration).meAddresses(options).then((request) => request(this.axios, this.basePath));
|
|
9559
|
+
}
|
|
9507
9560
|
/**
|
|
9508
9561
|
*
|
|
9509
9562
|
* @param {UserApiUpdateUserRequest} requestParameters Request parameters.
|
package/dist/api/api.mjs
CHANGED
|
@@ -121,7 +121,8 @@ export const ComponentTypeEnum = {
|
|
|
121
121
|
ANNOUNCEMENT: 'announcement',
|
|
122
122
|
FOOTER: 'footer',
|
|
123
123
|
EMAIL_SIGNUP: 'email-signup',
|
|
124
|
-
CONTACT_FORM: 'contact-form'
|
|
124
|
+
CONTACT_FORM: 'contact-form',
|
|
125
|
+
BASKET_DETAIL: 'basket-detail'
|
|
125
126
|
};
|
|
126
127
|
/**
|
|
127
128
|
*
|
|
@@ -9048,6 +9049,30 @@ export const UserApiAxiosParamCreator = function (configuration) {
|
|
|
9048
9049
|
options: localVarRequestOptions,
|
|
9049
9050
|
};
|
|
9050
9051
|
},
|
|
9052
|
+
/**
|
|
9053
|
+
*
|
|
9054
|
+
* @param {*} [options] Override http request option.
|
|
9055
|
+
* @throws {RequiredError}
|
|
9056
|
+
*/
|
|
9057
|
+
meAddresses: async (options = {}) => {
|
|
9058
|
+
const localVarPath = `/api/users/me/addresses`;
|
|
9059
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9060
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9061
|
+
let baseOptions;
|
|
9062
|
+
if (configuration) {
|
|
9063
|
+
baseOptions = configuration.baseOptions;
|
|
9064
|
+
}
|
|
9065
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
9066
|
+
const localVarHeaderParameter = {};
|
|
9067
|
+
const localVarQueryParameter = {};
|
|
9068
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9069
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9070
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
9071
|
+
return {
|
|
9072
|
+
url: toPathString(localVarUrlObj),
|
|
9073
|
+
options: localVarRequestOptions,
|
|
9074
|
+
};
|
|
9075
|
+
},
|
|
9051
9076
|
/**
|
|
9052
9077
|
*
|
|
9053
9078
|
* @param {string} id
|
|
@@ -9228,6 +9253,17 @@ export const UserApiFp = function (configuration) {
|
|
|
9228
9253
|
const localVarOperationServerBasePath = operationServerMap['UserApi.me']?.[localVarOperationServerIndex]?.url;
|
|
9229
9254
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9230
9255
|
},
|
|
9256
|
+
/**
|
|
9257
|
+
*
|
|
9258
|
+
* @param {*} [options] Override http request option.
|
|
9259
|
+
* @throws {RequiredError}
|
|
9260
|
+
*/
|
|
9261
|
+
async meAddresses(options) {
|
|
9262
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.meAddresses(options);
|
|
9263
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9264
|
+
const localVarOperationServerBasePath = operationServerMap['UserApi.meAddresses']?.[localVarOperationServerIndex]?.url;
|
|
9265
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9266
|
+
},
|
|
9231
9267
|
/**
|
|
9232
9268
|
*
|
|
9233
9269
|
* @param {string} id
|
|
@@ -9327,6 +9363,14 @@ export const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
9327
9363
|
me(options) {
|
|
9328
9364
|
return localVarFp.me(options).then((request) => request(axios, basePath));
|
|
9329
9365
|
},
|
|
9366
|
+
/**
|
|
9367
|
+
*
|
|
9368
|
+
* @param {*} [options] Override http request option.
|
|
9369
|
+
* @throws {RequiredError}
|
|
9370
|
+
*/
|
|
9371
|
+
meAddresses(options) {
|
|
9372
|
+
return localVarFp.meAddresses(options).then((request) => request(axios, basePath));
|
|
9373
|
+
},
|
|
9330
9374
|
/**
|
|
9331
9375
|
*
|
|
9332
9376
|
* @param {UserApiUpdateUserRequest} requestParameters Request parameters.
|
|
@@ -9422,6 +9466,15 @@ export class UserApi extends BaseAPI {
|
|
|
9422
9466
|
me(options) {
|
|
9423
9467
|
return UserApiFp(this.configuration).me(options).then((request) => request(this.axios, this.basePath));
|
|
9424
9468
|
}
|
|
9469
|
+
/**
|
|
9470
|
+
*
|
|
9471
|
+
* @param {*} [options] Override http request option.
|
|
9472
|
+
* @throws {RequiredError}
|
|
9473
|
+
* @memberof UserApi
|
|
9474
|
+
*/
|
|
9475
|
+
meAddresses(options) {
|
|
9476
|
+
return UserApiFp(this.configuration).meAddresses(options).then((request) => request(this.axios, this.basePath));
|
|
9477
|
+
}
|
|
9425
9478
|
/**
|
|
9426
9479
|
*
|
|
9427
9480
|
* @param {UserApiUpdateUserRequest} requestParameters Request parameters.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infisale-client/api",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.9",
|
|
4
4
|
"description": "api-sdk",
|
|
5
5
|
"author": "Muhammet KÖKLÜ <105980019+byhipernova@users.noreply.github.com>",
|
|
6
6
|
"homepage": "https://github.com/infisale/infisale-client#readme",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"bugs": {
|
|
38
38
|
"url": "https://github.com/infisale/infisale-client/issues"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "d3f10b7e6425186fb6aa25561b3fd4d6209eeb5e"
|
|
41
41
|
}
|