@infisale-client/api-client 1.3.26 → 1.3.28
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 +364 -119
- package/dist/api/api.js +117 -133
- package/dist/api/api.mjs +110 -130
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +1 -0
- package/package.json +2 -2
package/dist/api/api.d.ts
CHANGED
|
@@ -643,19 +643,6 @@ export interface IBasketCountResponse {
|
|
|
643
643
|
*/
|
|
644
644
|
'productCount': number;
|
|
645
645
|
}
|
|
646
|
-
/**
|
|
647
|
-
*
|
|
648
|
-
* @export
|
|
649
|
-
* @interface IBasketDeleteRequest
|
|
650
|
-
*/
|
|
651
|
-
export interface IBasketDeleteRequest {
|
|
652
|
-
/**
|
|
653
|
-
*
|
|
654
|
-
* @type {string}
|
|
655
|
-
* @memberof IBasketDeleteRequest
|
|
656
|
-
*/
|
|
657
|
-
'basketId': string;
|
|
658
|
-
}
|
|
659
646
|
/**
|
|
660
647
|
*
|
|
661
648
|
* @export
|
|
@@ -847,12 +834,6 @@ export interface IBasketUpdateAmountRequest {
|
|
|
847
834
|
* @memberof IBasketUpdateAmountRequest
|
|
848
835
|
*/
|
|
849
836
|
'amount': number;
|
|
850
|
-
/**
|
|
851
|
-
*
|
|
852
|
-
* @type {string}
|
|
853
|
-
* @memberof IBasketUpdateAmountRequest
|
|
854
|
-
*/
|
|
855
|
-
'basketId': string;
|
|
856
837
|
}
|
|
857
838
|
/**
|
|
858
839
|
*
|
|
@@ -8648,6 +8629,14 @@ export interface IThemePatchRequest {
|
|
|
8648
8629
|
* @memberof IThemePatchRequest
|
|
8649
8630
|
*/
|
|
8650
8631
|
'assetVersion'?: number;
|
|
8632
|
+
/**
|
|
8633
|
+
* Construct a type with a set of properties K of type T
|
|
8634
|
+
* @type {{ [key: string]: RecordStringConfigRecordStringConfigIndexTypeEnumContentsRecordStringRecordStringConfigIndexTypeEnumValue; }}
|
|
8635
|
+
* @memberof IThemePatchRequest
|
|
8636
|
+
*/
|
|
8637
|
+
'componentConfigIndex'?: {
|
|
8638
|
+
[key: string]: RecordStringConfigRecordStringConfigIndexTypeEnumContentsRecordStringRecordStringConfigIndexTypeEnumValue;
|
|
8639
|
+
};
|
|
8651
8640
|
}
|
|
8652
8641
|
/**
|
|
8653
8642
|
*
|
|
@@ -8701,6 +8690,14 @@ export interface IThemePostRequest {
|
|
|
8701
8690
|
* @memberof IThemePostRequest
|
|
8702
8691
|
*/
|
|
8703
8692
|
'assetVersion': number;
|
|
8693
|
+
/**
|
|
8694
|
+
* Construct a type with a set of properties K of type T
|
|
8695
|
+
* @type {{ [key: string]: RecordStringConfigRecordStringConfigIndexTypeEnumContentsRecordStringRecordStringConfigIndexTypeEnumValue; }}
|
|
8696
|
+
* @memberof IThemePostRequest
|
|
8697
|
+
*/
|
|
8698
|
+
'componentConfigIndex': {
|
|
8699
|
+
[key: string]: RecordStringConfigRecordStringConfigIndexTypeEnumContentsRecordStringRecordStringConfigIndexTypeEnumValue;
|
|
8700
|
+
};
|
|
8704
8701
|
}
|
|
8705
8702
|
/**
|
|
8706
8703
|
*
|
|
@@ -8804,6 +8801,14 @@ export interface IThemeResponse {
|
|
|
8804
8801
|
* @memberof IThemeResponse
|
|
8805
8802
|
*/
|
|
8806
8803
|
'assetVersion': number;
|
|
8804
|
+
/**
|
|
8805
|
+
* Construct a type with a set of properties K of type T
|
|
8806
|
+
* @type {{ [key: string]: RecordStringConfigRecordStringConfigIndexTypeEnumContentsRecordStringRecordStringConfigIndexTypeEnumValue; }}
|
|
8807
|
+
* @memberof IThemeResponse
|
|
8808
|
+
*/
|
|
8809
|
+
'componentConfigIndex': {
|
|
8810
|
+
[key: string]: RecordStringConfigRecordStringConfigIndexTypeEnumContentsRecordStringRecordStringConfigIndexTypeEnumValue;
|
|
8811
|
+
};
|
|
8807
8812
|
}
|
|
8808
8813
|
/**
|
|
8809
8814
|
*
|
|
@@ -9027,6 +9032,243 @@ export interface IUniquePagesResponse {
|
|
|
9027
9032
|
*/
|
|
9028
9033
|
'data': Array<IUniquePageResponse>;
|
|
9029
9034
|
}
|
|
9035
|
+
/**
|
|
9036
|
+
*
|
|
9037
|
+
* @export
|
|
9038
|
+
* @interface IUrlRedirect
|
|
9039
|
+
*/
|
|
9040
|
+
export interface IUrlRedirect {
|
|
9041
|
+
/**
|
|
9042
|
+
*
|
|
9043
|
+
* @type {string}
|
|
9044
|
+
* @memberof IUrlRedirect
|
|
9045
|
+
*/
|
|
9046
|
+
'_id': string;
|
|
9047
|
+
/**
|
|
9048
|
+
*
|
|
9049
|
+
* @type {number}
|
|
9050
|
+
* @memberof IUrlRedirect
|
|
9051
|
+
*/
|
|
9052
|
+
'__v': number;
|
|
9053
|
+
/**
|
|
9054
|
+
*
|
|
9055
|
+
* @type {string}
|
|
9056
|
+
* @memberof IUrlRedirect
|
|
9057
|
+
*/
|
|
9058
|
+
'createdAt': string;
|
|
9059
|
+
/**
|
|
9060
|
+
*
|
|
9061
|
+
* @type {string}
|
|
9062
|
+
* @memberof IUrlRedirect
|
|
9063
|
+
*/
|
|
9064
|
+
'updatedAt': string;
|
|
9065
|
+
/**
|
|
9066
|
+
*
|
|
9067
|
+
* @type {string}
|
|
9068
|
+
* @memberof IUrlRedirect
|
|
9069
|
+
*/
|
|
9070
|
+
'company': string;
|
|
9071
|
+
/**
|
|
9072
|
+
*
|
|
9073
|
+
* @type {string}
|
|
9074
|
+
* @memberof IUrlRedirect
|
|
9075
|
+
*/
|
|
9076
|
+
'from': string;
|
|
9077
|
+
/**
|
|
9078
|
+
*
|
|
9079
|
+
* @type {string}
|
|
9080
|
+
* @memberof IUrlRedirect
|
|
9081
|
+
*/
|
|
9082
|
+
'to': string;
|
|
9083
|
+
}
|
|
9084
|
+
/**
|
|
9085
|
+
*
|
|
9086
|
+
* @export
|
|
9087
|
+
* @interface IUrlRedirectCollectionQueryParams
|
|
9088
|
+
*/
|
|
9089
|
+
export interface IUrlRedirectCollectionQueryParams {
|
|
9090
|
+
/**
|
|
9091
|
+
*
|
|
9092
|
+
* @type {OrderEnum}
|
|
9093
|
+
* @memberof IUrlRedirectCollectionQueryParams
|
|
9094
|
+
*/
|
|
9095
|
+
'order'?: OrderEnum;
|
|
9096
|
+
/**
|
|
9097
|
+
*
|
|
9098
|
+
* @type {number}
|
|
9099
|
+
* @memberof IUrlRedirectCollectionQueryParams
|
|
9100
|
+
*/
|
|
9101
|
+
'page'?: number;
|
|
9102
|
+
/**
|
|
9103
|
+
*
|
|
9104
|
+
* @type {number}
|
|
9105
|
+
* @memberof IUrlRedirectCollectionQueryParams
|
|
9106
|
+
*/
|
|
9107
|
+
'itemsPerPage'?: number;
|
|
9108
|
+
/**
|
|
9109
|
+
*
|
|
9110
|
+
* @type {string}
|
|
9111
|
+
* @memberof IUrlRedirectCollectionQueryParams
|
|
9112
|
+
*/
|
|
9113
|
+
'search'?: string;
|
|
9114
|
+
/**
|
|
9115
|
+
*
|
|
9116
|
+
* @type {string}
|
|
9117
|
+
* @memberof IUrlRedirectCollectionQueryParams
|
|
9118
|
+
*/
|
|
9119
|
+
'startDate'?: string;
|
|
9120
|
+
/**
|
|
9121
|
+
*
|
|
9122
|
+
* @type {string}
|
|
9123
|
+
* @memberof IUrlRedirectCollectionQueryParams
|
|
9124
|
+
*/
|
|
9125
|
+
'endDate'?: string;
|
|
9126
|
+
/**
|
|
9127
|
+
*
|
|
9128
|
+
* @type {string}
|
|
9129
|
+
* @memberof IUrlRedirectCollectionQueryParams
|
|
9130
|
+
*/
|
|
9131
|
+
'dateField'?: IUrlRedirectCollectionQueryParamsDateFieldEnum;
|
|
9132
|
+
/**
|
|
9133
|
+
*
|
|
9134
|
+
* @type {string}
|
|
9135
|
+
* @memberof IUrlRedirectCollectionQueryParams
|
|
9136
|
+
*/
|
|
9137
|
+
'companyId': string;
|
|
9138
|
+
/**
|
|
9139
|
+
*
|
|
9140
|
+
* @type {string}
|
|
9141
|
+
* @memberof IUrlRedirectCollectionQueryParams
|
|
9142
|
+
*/
|
|
9143
|
+
'createdAt'?: string;
|
|
9144
|
+
/**
|
|
9145
|
+
*
|
|
9146
|
+
* @type {string}
|
|
9147
|
+
* @memberof IUrlRedirectCollectionQueryParams
|
|
9148
|
+
*/
|
|
9149
|
+
'sort'?: IUrlRedirectCollectionQueryParamsSortEnum;
|
|
9150
|
+
}
|
|
9151
|
+
export declare const IUrlRedirectCollectionQueryParamsDateFieldEnum: {
|
|
9152
|
+
readonly CREATED_AT: "createdAt";
|
|
9153
|
+
readonly UPDATED_AT: "updatedAt";
|
|
9154
|
+
};
|
|
9155
|
+
export type IUrlRedirectCollectionQueryParamsDateFieldEnum = typeof IUrlRedirectCollectionQueryParamsDateFieldEnum[keyof typeof IUrlRedirectCollectionQueryParamsDateFieldEnum];
|
|
9156
|
+
export declare const IUrlRedirectCollectionQueryParamsSortEnum: {
|
|
9157
|
+
readonly CREATED_AT: "createdAt";
|
|
9158
|
+
readonly FROM: "from";
|
|
9159
|
+
};
|
|
9160
|
+
export type IUrlRedirectCollectionQueryParamsSortEnum = typeof IUrlRedirectCollectionQueryParamsSortEnum[keyof typeof IUrlRedirectCollectionQueryParamsSortEnum];
|
|
9161
|
+
/**
|
|
9162
|
+
*
|
|
9163
|
+
* @export
|
|
9164
|
+
* @interface IUrlRedirectPostRequest
|
|
9165
|
+
*/
|
|
9166
|
+
export interface IUrlRedirectPostRequest {
|
|
9167
|
+
/**
|
|
9168
|
+
*
|
|
9169
|
+
* @type {string}
|
|
9170
|
+
* @memberof IUrlRedirectPostRequest
|
|
9171
|
+
*/
|
|
9172
|
+
'company': string;
|
|
9173
|
+
/**
|
|
9174
|
+
*
|
|
9175
|
+
* @type {string}
|
|
9176
|
+
* @memberof IUrlRedirectPostRequest
|
|
9177
|
+
*/
|
|
9178
|
+
'from': string;
|
|
9179
|
+
/**
|
|
9180
|
+
*
|
|
9181
|
+
* @type {string}
|
|
9182
|
+
* @memberof IUrlRedirectPostRequest
|
|
9183
|
+
*/
|
|
9184
|
+
'to': string;
|
|
9185
|
+
}
|
|
9186
|
+
/**
|
|
9187
|
+
*
|
|
9188
|
+
* @export
|
|
9189
|
+
* @interface IUrlRedirectResponse
|
|
9190
|
+
*/
|
|
9191
|
+
export interface IUrlRedirectResponse {
|
|
9192
|
+
/**
|
|
9193
|
+
*
|
|
9194
|
+
* @type {string}
|
|
9195
|
+
* @memberof IUrlRedirectResponse
|
|
9196
|
+
*/
|
|
9197
|
+
'_id': string;
|
|
9198
|
+
/**
|
|
9199
|
+
*
|
|
9200
|
+
* @type {number}
|
|
9201
|
+
* @memberof IUrlRedirectResponse
|
|
9202
|
+
*/
|
|
9203
|
+
'__v': number;
|
|
9204
|
+
/**
|
|
9205
|
+
*
|
|
9206
|
+
* @type {string}
|
|
9207
|
+
* @memberof IUrlRedirectResponse
|
|
9208
|
+
*/
|
|
9209
|
+
'createdAt': string;
|
|
9210
|
+
/**
|
|
9211
|
+
*
|
|
9212
|
+
* @type {string}
|
|
9213
|
+
* @memberof IUrlRedirectResponse
|
|
9214
|
+
*/
|
|
9215
|
+
'updatedAt': string;
|
|
9216
|
+
/**
|
|
9217
|
+
*
|
|
9218
|
+
* @type {string}
|
|
9219
|
+
* @memberof IUrlRedirectResponse
|
|
9220
|
+
*/
|
|
9221
|
+
'company': string;
|
|
9222
|
+
/**
|
|
9223
|
+
*
|
|
9224
|
+
* @type {string}
|
|
9225
|
+
* @memberof IUrlRedirectResponse
|
|
9226
|
+
*/
|
|
9227
|
+
'from': string;
|
|
9228
|
+
/**
|
|
9229
|
+
*
|
|
9230
|
+
* @type {string}
|
|
9231
|
+
* @memberof IUrlRedirectResponse
|
|
9232
|
+
*/
|
|
9233
|
+
'to': string;
|
|
9234
|
+
}
|
|
9235
|
+
/**
|
|
9236
|
+
*
|
|
9237
|
+
* @export
|
|
9238
|
+
* @interface IUrlRedirectsResponse
|
|
9239
|
+
*/
|
|
9240
|
+
export interface IUrlRedirectsResponse {
|
|
9241
|
+
/**
|
|
9242
|
+
*
|
|
9243
|
+
* @type {number}
|
|
9244
|
+
* @memberof IUrlRedirectsResponse
|
|
9245
|
+
*/
|
|
9246
|
+
'page': number;
|
|
9247
|
+
/**
|
|
9248
|
+
*
|
|
9249
|
+
* @type {number}
|
|
9250
|
+
* @memberof IUrlRedirectsResponse
|
|
9251
|
+
*/
|
|
9252
|
+
'itemsPerPage': number;
|
|
9253
|
+
/**
|
|
9254
|
+
*
|
|
9255
|
+
* @type {number}
|
|
9256
|
+
* @memberof IUrlRedirectsResponse
|
|
9257
|
+
*/
|
|
9258
|
+
'total': number;
|
|
9259
|
+
/**
|
|
9260
|
+
*
|
|
9261
|
+
* @type {number}
|
|
9262
|
+
* @memberof IUrlRedirectsResponse
|
|
9263
|
+
*/
|
|
9264
|
+
'totalPages': number;
|
|
9265
|
+
/**
|
|
9266
|
+
*
|
|
9267
|
+
* @type {Array<IUrlRedirect>}
|
|
9268
|
+
* @memberof IUrlRedirectsResponse
|
|
9269
|
+
*/
|
|
9270
|
+
'data': Array<IUrlRedirect>;
|
|
9271
|
+
}
|
|
9030
9272
|
/**
|
|
9031
9273
|
*
|
|
9032
9274
|
* @export
|
|
@@ -11729,6 +11971,14 @@ export interface PickIThemeResponseExcludeKeyofIThemeResponseKeyofMongoResponseO
|
|
|
11729
11971
|
* @memberof PickIThemeResponseExcludeKeyofIThemeResponseKeyofMongoResponseOrMainOrCompanyOrCreatorOrFiles
|
|
11730
11972
|
*/
|
|
11731
11973
|
'assetVersion': number;
|
|
11974
|
+
/**
|
|
11975
|
+
* Construct a type with a set of properties K of type T
|
|
11976
|
+
* @type {{ [key: string]: RecordStringConfigRecordStringConfigIndexTypeEnumContentsRecordStringRecordStringConfigIndexTypeEnumValue; }}
|
|
11977
|
+
* @memberof PickIThemeResponseExcludeKeyofIThemeResponseKeyofMongoResponseOrMainOrCompanyOrCreatorOrFiles
|
|
11978
|
+
*/
|
|
11979
|
+
'componentConfigIndex': {
|
|
11980
|
+
[key: string]: RecordStringConfigRecordStringConfigIndexTypeEnumContentsRecordStringRecordStringConfigIndexTypeEnumValue;
|
|
11981
|
+
};
|
|
11732
11982
|
}
|
|
11733
11983
|
/**
|
|
11734
11984
|
* From T, pick a set of properties whose keys are in the union K
|
|
@@ -12288,6 +12538,25 @@ export interface RecordPlanTypeEnumMonthlyBandwidthNumberStandardB2c {
|
|
|
12288
12538
|
*/
|
|
12289
12539
|
'monthlyBandwidth': number;
|
|
12290
12540
|
}
|
|
12541
|
+
/**
|
|
12542
|
+
*
|
|
12543
|
+
* @export
|
|
12544
|
+
* @interface RecordStringConfigRecordStringConfigIndexTypeEnumContentsRecordStringRecordStringConfigIndexTypeEnumValue
|
|
12545
|
+
*/
|
|
12546
|
+
export interface RecordStringConfigRecordStringConfigIndexTypeEnumContentsRecordStringRecordStringConfigIndexTypeEnumValue {
|
|
12547
|
+
/**
|
|
12548
|
+
* Construct a type with a set of properties K of type T
|
|
12549
|
+
* @type {object}
|
|
12550
|
+
* @memberof RecordStringConfigRecordStringConfigIndexTypeEnumContentsRecordStringRecordStringConfigIndexTypeEnumValue
|
|
12551
|
+
*/
|
|
12552
|
+
'contents': object;
|
|
12553
|
+
/**
|
|
12554
|
+
* Construct a type with a set of properties K of type T
|
|
12555
|
+
* @type {object}
|
|
12556
|
+
* @memberof RecordStringConfigRecordStringConfigIndexTypeEnumContentsRecordStringRecordStringConfigIndexTypeEnumValue
|
|
12557
|
+
*/
|
|
12558
|
+
'config': object;
|
|
12559
|
+
}
|
|
12291
12560
|
/**
|
|
12292
12561
|
*
|
|
12293
12562
|
* @export
|
|
@@ -13111,14 +13380,6 @@ export declare const BasketApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
13111
13380
|
* @throws {RequiredError}
|
|
13112
13381
|
*/
|
|
13113
13382
|
addProductToBasket: (iAddProductToBasketRequest: IAddProductToBasketRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
13114
|
-
/**
|
|
13115
|
-
*
|
|
13116
|
-
* @param {string} itemId
|
|
13117
|
-
* @param {IBasketDeleteRequest} iBasketDeleteRequest
|
|
13118
|
-
* @param {*} [options] Override http request option.
|
|
13119
|
-
* @throws {RequiredError}
|
|
13120
|
-
*/
|
|
13121
|
-
deleteProductFromBasket: (itemId: string, iBasketDeleteRequest: IBasketDeleteRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
13122
13383
|
/**
|
|
13123
13384
|
*
|
|
13124
13385
|
* @param {string} [id]
|
|
@@ -13140,14 +13401,6 @@ export declare const BasketApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
13140
13401
|
* @throws {RequiredError}
|
|
13141
13402
|
*/
|
|
13142
13403
|
mergeBasket: (iBasketMergeRequest: IBasketMergeRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
13143
|
-
/**
|
|
13144
|
-
*
|
|
13145
|
-
* @param {string} itemId
|
|
13146
|
-
* @param {IBasketUpdateAmountRequest} iBasketUpdateAmountRequest
|
|
13147
|
-
* @param {*} [options] Override http request option.
|
|
13148
|
-
* @throws {RequiredError}
|
|
13149
|
-
*/
|
|
13150
|
-
updateAmount: (itemId: string, iBasketUpdateAmountRequest: IBasketUpdateAmountRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
13151
13404
|
};
|
|
13152
13405
|
/**
|
|
13153
13406
|
* BasketApi - functional programming interface
|
|
@@ -13161,14 +13414,6 @@ export declare const BasketApiFp: (configuration?: Configuration) => {
|
|
|
13161
13414
|
* @throws {RequiredError}
|
|
13162
13415
|
*/
|
|
13163
13416
|
addProductToBasket(iAddProductToBasketRequest: IAddProductToBasketRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IAddProductToBasketResponse>>;
|
|
13164
|
-
/**
|
|
13165
|
-
*
|
|
13166
|
-
* @param {string} itemId
|
|
13167
|
-
* @param {IBasketDeleteRequest} iBasketDeleteRequest
|
|
13168
|
-
* @param {*} [options] Override http request option.
|
|
13169
|
-
* @throws {RequiredError}
|
|
13170
|
-
*/
|
|
13171
|
-
deleteProductFromBasket(itemId: string, iBasketDeleteRequest: IBasketDeleteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
13172
13417
|
/**
|
|
13173
13418
|
*
|
|
13174
13419
|
* @param {string} [id]
|
|
@@ -13190,14 +13435,6 @@ export declare const BasketApiFp: (configuration?: Configuration) => {
|
|
|
13190
13435
|
* @throws {RequiredError}
|
|
13191
13436
|
*/
|
|
13192
13437
|
mergeBasket(iBasketMergeRequest: IBasketMergeRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
13193
|
-
/**
|
|
13194
|
-
*
|
|
13195
|
-
* @param {string} itemId
|
|
13196
|
-
* @param {IBasketUpdateAmountRequest} iBasketUpdateAmountRequest
|
|
13197
|
-
* @param {*} [options] Override http request option.
|
|
13198
|
-
* @throws {RequiredError}
|
|
13199
|
-
*/
|
|
13200
|
-
updateAmount(itemId: string, iBasketUpdateAmountRequest: IBasketUpdateAmountRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
13201
13438
|
};
|
|
13202
13439
|
/**
|
|
13203
13440
|
* BasketApi - factory interface
|
|
@@ -13211,13 +13448,6 @@ export declare const BasketApiFactory: (configuration?: Configuration, basePath?
|
|
|
13211
13448
|
* @throws {RequiredError}
|
|
13212
13449
|
*/
|
|
13213
13450
|
addProductToBasket(requestParameters: BasketApiAddProductToBasketRequest, options?: RawAxiosRequestConfig): AxiosPromise<IAddProductToBasketResponse>;
|
|
13214
|
-
/**
|
|
13215
|
-
*
|
|
13216
|
-
* @param {BasketApiDeleteProductFromBasketRequest} requestParameters Request parameters.
|
|
13217
|
-
* @param {*} [options] Override http request option.
|
|
13218
|
-
* @throws {RequiredError}
|
|
13219
|
-
*/
|
|
13220
|
-
deleteProductFromBasket(requestParameters: BasketApiDeleteProductFromBasketRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
13221
13451
|
/**
|
|
13222
13452
|
*
|
|
13223
13453
|
* @param {BasketApiGetBasketRequest} requestParameters Request parameters.
|
|
@@ -13239,13 +13469,6 @@ export declare const BasketApiFactory: (configuration?: Configuration, basePath?
|
|
|
13239
13469
|
* @throws {RequiredError}
|
|
13240
13470
|
*/
|
|
13241
13471
|
mergeBasket(requestParameters: BasketApiMergeBasketRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
13242
|
-
/**
|
|
13243
|
-
*
|
|
13244
|
-
* @param {BasketApiUpdateAmountRequest} requestParameters Request parameters.
|
|
13245
|
-
* @param {*} [options] Override http request option.
|
|
13246
|
-
* @throws {RequiredError}
|
|
13247
|
-
*/
|
|
13248
|
-
updateAmount(requestParameters: BasketApiUpdateAmountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
13249
13472
|
};
|
|
13250
13473
|
/**
|
|
13251
13474
|
* Request parameters for addProductToBasket operation in BasketApi.
|
|
@@ -13260,25 +13483,6 @@ export interface BasketApiAddProductToBasketRequest {
|
|
|
13260
13483
|
*/
|
|
13261
13484
|
readonly iAddProductToBasketRequest: IAddProductToBasketRequest;
|
|
13262
13485
|
}
|
|
13263
|
-
/**
|
|
13264
|
-
* Request parameters for deleteProductFromBasket operation in BasketApi.
|
|
13265
|
-
* @export
|
|
13266
|
-
* @interface BasketApiDeleteProductFromBasketRequest
|
|
13267
|
-
*/
|
|
13268
|
-
export interface BasketApiDeleteProductFromBasketRequest {
|
|
13269
|
-
/**
|
|
13270
|
-
*
|
|
13271
|
-
* @type {string}
|
|
13272
|
-
* @memberof BasketApiDeleteProductFromBasket
|
|
13273
|
-
*/
|
|
13274
|
-
readonly itemId: string;
|
|
13275
|
-
/**
|
|
13276
|
-
*
|
|
13277
|
-
* @type {IBasketDeleteRequest}
|
|
13278
|
-
* @memberof BasketApiDeleteProductFromBasket
|
|
13279
|
-
*/
|
|
13280
|
-
readonly iBasketDeleteRequest: IBasketDeleteRequest;
|
|
13281
|
-
}
|
|
13282
13486
|
/**
|
|
13283
13487
|
* Request parameters for getBasket operation in BasketApi.
|
|
13284
13488
|
* @export
|
|
@@ -13318,25 +13522,6 @@ export interface BasketApiMergeBasketRequest {
|
|
|
13318
13522
|
*/
|
|
13319
13523
|
readonly iBasketMergeRequest: IBasketMergeRequest;
|
|
13320
13524
|
}
|
|
13321
|
-
/**
|
|
13322
|
-
* Request parameters for updateAmount operation in BasketApi.
|
|
13323
|
-
* @export
|
|
13324
|
-
* @interface BasketApiUpdateAmountRequest
|
|
13325
|
-
*/
|
|
13326
|
-
export interface BasketApiUpdateAmountRequest {
|
|
13327
|
-
/**
|
|
13328
|
-
*
|
|
13329
|
-
* @type {string}
|
|
13330
|
-
* @memberof BasketApiUpdateAmount
|
|
13331
|
-
*/
|
|
13332
|
-
readonly itemId: string;
|
|
13333
|
-
/**
|
|
13334
|
-
*
|
|
13335
|
-
* @type {IBasketUpdateAmountRequest}
|
|
13336
|
-
* @memberof BasketApiUpdateAmount
|
|
13337
|
-
*/
|
|
13338
|
-
readonly iBasketUpdateAmountRequest: IBasketUpdateAmountRequest;
|
|
13339
|
-
}
|
|
13340
13525
|
/**
|
|
13341
13526
|
* BasketApi - object-oriented interface
|
|
13342
13527
|
* @export
|
|
@@ -13352,14 +13537,6 @@ export declare class BasketApi extends BaseAPI {
|
|
|
13352
13537
|
* @memberof BasketApi
|
|
13353
13538
|
*/
|
|
13354
13539
|
addProductToBasket(requestParameters: BasketApiAddProductToBasketRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IAddProductToBasketResponse, any>>;
|
|
13355
|
-
/**
|
|
13356
|
-
*
|
|
13357
|
-
* @param {BasketApiDeleteProductFromBasketRequest} requestParameters Request parameters.
|
|
13358
|
-
* @param {*} [options] Override http request option.
|
|
13359
|
-
* @throws {RequiredError}
|
|
13360
|
-
* @memberof BasketApi
|
|
13361
|
-
*/
|
|
13362
|
-
deleteProductFromBasket(requestParameters: BasketApiDeleteProductFromBasketRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
13363
13540
|
/**
|
|
13364
13541
|
*
|
|
13365
13542
|
* @param {BasketApiGetBasketRequest} requestParameters Request parameters.
|
|
@@ -13384,14 +13561,6 @@ export declare class BasketApi extends BaseAPI {
|
|
|
13384
13561
|
* @memberof BasketApi
|
|
13385
13562
|
*/
|
|
13386
13563
|
mergeBasket(requestParameters: BasketApiMergeBasketRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
13387
|
-
/**
|
|
13388
|
-
*
|
|
13389
|
-
* @param {BasketApiUpdateAmountRequest} requestParameters Request parameters.
|
|
13390
|
-
* @param {*} [options] Override http request option.
|
|
13391
|
-
* @throws {RequiredError}
|
|
13392
|
-
* @memberof BasketApi
|
|
13393
|
-
*/
|
|
13394
|
-
updateAmount(requestParameters: BasketApiUpdateAmountRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
13395
13564
|
}
|
|
13396
13565
|
/**
|
|
13397
13566
|
* CollectionApi - axios parameter creator
|
|
@@ -15278,6 +15447,82 @@ export declare class UniquePageApi extends BaseAPI {
|
|
|
15278
15447
|
*/
|
|
15279
15448
|
getUniquePageByType(requestParameters: UniquePageApiGetUniquePageByTypeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IUniquePageResponse, any>>;
|
|
15280
15449
|
}
|
|
15450
|
+
/**
|
|
15451
|
+
* UrlRedirectApi - axios parameter creator
|
|
15452
|
+
* @export
|
|
15453
|
+
*/
|
|
15454
|
+
export declare const UrlRedirectApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
15455
|
+
/**
|
|
15456
|
+
*
|
|
15457
|
+
* @param {string} from
|
|
15458
|
+
* @param {string} companyId
|
|
15459
|
+
* @param {*} [options] Override http request option.
|
|
15460
|
+
* @throws {RequiredError}
|
|
15461
|
+
*/
|
|
15462
|
+
getUrlRedirectBySource: (from: string, companyId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15463
|
+
};
|
|
15464
|
+
/**
|
|
15465
|
+
* UrlRedirectApi - functional programming interface
|
|
15466
|
+
* @export
|
|
15467
|
+
*/
|
|
15468
|
+
export declare const UrlRedirectApiFp: (configuration?: Configuration) => {
|
|
15469
|
+
/**
|
|
15470
|
+
*
|
|
15471
|
+
* @param {string} from
|
|
15472
|
+
* @param {string} companyId
|
|
15473
|
+
* @param {*} [options] Override http request option.
|
|
15474
|
+
* @throws {RequiredError}
|
|
15475
|
+
*/
|
|
15476
|
+
getUrlRedirectBySource(from: string, companyId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IUrlRedirectResponse>>;
|
|
15477
|
+
};
|
|
15478
|
+
/**
|
|
15479
|
+
* UrlRedirectApi - factory interface
|
|
15480
|
+
* @export
|
|
15481
|
+
*/
|
|
15482
|
+
export declare const UrlRedirectApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
15483
|
+
/**
|
|
15484
|
+
*
|
|
15485
|
+
* @param {UrlRedirectApiGetUrlRedirectBySourceRequest} requestParameters Request parameters.
|
|
15486
|
+
* @param {*} [options] Override http request option.
|
|
15487
|
+
* @throws {RequiredError}
|
|
15488
|
+
*/
|
|
15489
|
+
getUrlRedirectBySource(requestParameters: UrlRedirectApiGetUrlRedirectBySourceRequest, options?: RawAxiosRequestConfig): AxiosPromise<IUrlRedirectResponse>;
|
|
15490
|
+
};
|
|
15491
|
+
/**
|
|
15492
|
+
* Request parameters for getUrlRedirectBySource operation in UrlRedirectApi.
|
|
15493
|
+
* @export
|
|
15494
|
+
* @interface UrlRedirectApiGetUrlRedirectBySourceRequest
|
|
15495
|
+
*/
|
|
15496
|
+
export interface UrlRedirectApiGetUrlRedirectBySourceRequest {
|
|
15497
|
+
/**
|
|
15498
|
+
*
|
|
15499
|
+
* @type {string}
|
|
15500
|
+
* @memberof UrlRedirectApiGetUrlRedirectBySource
|
|
15501
|
+
*/
|
|
15502
|
+
readonly from: string;
|
|
15503
|
+
/**
|
|
15504
|
+
*
|
|
15505
|
+
* @type {string}
|
|
15506
|
+
* @memberof UrlRedirectApiGetUrlRedirectBySource
|
|
15507
|
+
*/
|
|
15508
|
+
readonly companyId: string;
|
|
15509
|
+
}
|
|
15510
|
+
/**
|
|
15511
|
+
* UrlRedirectApi - object-oriented interface
|
|
15512
|
+
* @export
|
|
15513
|
+
* @class UrlRedirectApi
|
|
15514
|
+
* @extends {BaseAPI}
|
|
15515
|
+
*/
|
|
15516
|
+
export declare class UrlRedirectApi extends BaseAPI {
|
|
15517
|
+
/**
|
|
15518
|
+
*
|
|
15519
|
+
* @param {UrlRedirectApiGetUrlRedirectBySourceRequest} requestParameters Request parameters.
|
|
15520
|
+
* @param {*} [options] Override http request option.
|
|
15521
|
+
* @throws {RequiredError}
|
|
15522
|
+
* @memberof UrlRedirectApi
|
|
15523
|
+
*/
|
|
15524
|
+
getUrlRedirectBySource(requestParameters: UrlRedirectApiGetUrlRedirectBySourceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IUrlRedirectResponse, any>>;
|
|
15525
|
+
}
|
|
15281
15526
|
/**
|
|
15282
15527
|
* UserApi - axios parameter creator
|
|
15283
15528
|
* @export
|
package/dist/api/api.js
CHANGED
|
@@ -16,9 +16,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
21
|
-
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.UniquePageApi = exports.UniquePageApiFactory = exports.UniquePageApiFp = exports.UniquePageApiAxiosParamCreator = exports.TemplateApi = exports.TemplateApiFactory = exports.TemplateApiFp = exports.TemplateApiAxiosParamCreator = exports.SitemapApi = exports.SitemapApiFactory = exports.SitemapApiFp = void 0;
|
|
19
|
+
exports.PlanCurrencyEnum = exports.PickICollectionQueryParamsExcludeKeyofICollectionQueryParamsSortDateFieldEnum = exports.PaymentStatusEnum = exports.PaymentMethodEnum = exports.PaymentGatewayEnum = exports.OrderStatusEnum = exports.OrderShippedStatusEnum = exports.OrderReturnStatusEnumWAITINGRETURN = exports.OrderReturnStatusEnumRETURNED = exports.OrderReturnStatusEnum = exports.OrderPaymentStatusEnum = exports.OrderEnum = exports.OperationStatusEnum = exports.NotificationStatusEnum = exports.NotificationMessageEnum = exports.NavigationUrlTargetEnum = exports.NavigationLinkTypeEnum = exports.LanguageEnum = exports.IUserCollectionQueryParamsDateFieldEnum = exports.IUrlRedirectCollectionQueryParamsSortEnum = exports.IUrlRedirectCollectionQueryParamsDateFieldEnum = exports.IUniqueCollectionQueryParamsDateFieldEnum = exports.IProductCollectionQueryParamsSortEnum = exports.IProductCollectionQueryParamsDateFieldEnum = exports.IPlanCollectionQueryParamsDateFieldEnum = exports.IPaymentPostRequestPeriodEnum = exports.IPageCollectionQueryParamsDateFieldEnum = exports.IOrderCollectionQueryParamsDateFieldEnum = exports.IOperationCollectionQueryParamsDateFieldEnum = exports.INotificationCollectionQueryParamsDateFieldEnum = exports.INavigationCollectionQueryParamsDateFieldEnum = exports.IMyOrderCollectionQueryParamsDateFieldEnum = exports.IFileCollectionQueryParamsDateFieldEnum = exports.IContactFormCollectionQueryParamsDateFieldEnum = exports.ICompanyUsersCollectionQueryParamsDateFieldEnum = exports.ICompanyDashboardResponsePeriodEnum = exports.ICompanyCollectionQueryParamsDateFieldEnum = exports.ICollectionCollectionsQueryParamsDateFieldEnum = exports.ICategoryCollectionQueryParamsDateFieldEnum = exports.IBrandCollectionQueryParamsDateFieldEnum = exports.FileTypeEnum = exports.FileStatusEnum = exports.FileKeywordEnum = exports.EmailConfigDnsRecordTypeEnum = exports.CurrencyRateTypeEnum = exports.CurrencyEnum = exports.CountryEnum = exports.ContentStatusEnum = exports.CompanyUserStatusEnum = exports.CompanyStatusEnum = void 0;
|
|
20
|
+
exports.GetProductsDateFieldEnum = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.GetPagesDateFieldEnum = exports.PageApi = exports.PageApiFactory = exports.PageApiFp = exports.PageApiAxiosParamCreator = exports.GetOrdersDateFieldEnum = exports.GetMyOrdersDateFieldEnum = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiAxiosParamCreator = exports.ContactFormApi = exports.ContactFormApiFactory = exports.ContactFormApiFp = exports.ContactFormApiAxiosParamCreator = exports.CompanyApi = exports.CompanyApiFactory = exports.CompanyApiFp = exports.CompanyApiAxiosParamCreator = exports.GetCollectionsDateFieldEnum = exports.CollectionApi = exports.CollectionApiFactory = exports.CollectionApiFp = exports.CollectionApiAxiosParamCreator = exports.BasketApi = exports.BasketApiFactory = exports.BasketApiFp = exports.BasketApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.AddressApi = exports.AddressApiFactory = exports.AddressApiFp = exports.AddressApiAxiosParamCreator = exports.UserStatusEnum = exports.UserRoleEnum = exports.TimezoneEnum = exports.StoreLocationEnum = exports.SitemapTypeEnum = exports.ShippingPricingTypeEnum = exports.ReviewStatusEnum = exports.PlanTypeEnum = exports.PlanStatusEnum = void 0;
|
|
21
|
+
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.UrlRedirectApi = exports.UrlRedirectApiFactory = exports.UrlRedirectApiFp = exports.UrlRedirectApiAxiosParamCreator = exports.UniquePageApi = exports.UniquePageApiFactory = exports.UniquePageApiFp = exports.UniquePageApiAxiosParamCreator = exports.TemplateApi = exports.TemplateApiFactory = exports.TemplateApiFp = exports.TemplateApiAxiosParamCreator = exports.SitemapApi = exports.SitemapApiFactory = exports.SitemapApiFp = exports.SitemapApiAxiosParamCreator = exports.GetProductsSortEnum = void 0;
|
|
22
22
|
const axios_1 = __importDefault(require("axios"));
|
|
23
23
|
// Some imports not used depending on template conditions
|
|
24
24
|
// @ts-ignore
|
|
@@ -456,6 +456,14 @@ exports.IUniqueCollectionQueryParamsDateFieldEnum = {
|
|
|
456
456
|
CREATED_AT: 'createdAt',
|
|
457
457
|
UPDATED_AT: 'updatedAt'
|
|
458
458
|
};
|
|
459
|
+
exports.IUrlRedirectCollectionQueryParamsDateFieldEnum = {
|
|
460
|
+
CREATED_AT: 'createdAt',
|
|
461
|
+
UPDATED_AT: 'updatedAt'
|
|
462
|
+
};
|
|
463
|
+
exports.IUrlRedirectCollectionQueryParamsSortEnum = {
|
|
464
|
+
CREATED_AT: 'createdAt',
|
|
465
|
+
FROM: 'from'
|
|
466
|
+
};
|
|
459
467
|
exports.IUserCollectionQueryParamsDateFieldEnum = {
|
|
460
468
|
CREATED_AT: 'createdAt',
|
|
461
469
|
UPDATED_AT: 'updatedAt'
|
|
@@ -1503,39 +1511,6 @@ const BasketApiAxiosParamCreator = function (configuration) {
|
|
|
1503
1511
|
options: localVarRequestOptions,
|
|
1504
1512
|
};
|
|
1505
1513
|
},
|
|
1506
|
-
/**
|
|
1507
|
-
*
|
|
1508
|
-
* @param {string} itemId
|
|
1509
|
-
* @param {IBasketDeleteRequest} iBasketDeleteRequest
|
|
1510
|
-
* @param {*} [options] Override http request option.
|
|
1511
|
-
* @throws {RequiredError}
|
|
1512
|
-
*/
|
|
1513
|
-
deleteProductFromBasket: async (itemId, iBasketDeleteRequest, options = {}) => {
|
|
1514
|
-
// verify required parameter 'itemId' is not null or undefined
|
|
1515
|
-
(0, common_1.assertParamExists)('deleteProductFromBasket', 'itemId', itemId);
|
|
1516
|
-
// verify required parameter 'iBasketDeleteRequest' is not null or undefined
|
|
1517
|
-
(0, common_1.assertParamExists)('deleteProductFromBasket', 'iBasketDeleteRequest', iBasketDeleteRequest);
|
|
1518
|
-
const localVarPath = `/api/baskets/delete-product/{item_id}`
|
|
1519
|
-
.replace(`{${"item_id"}}`, encodeURIComponent(String(itemId)));
|
|
1520
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1521
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1522
|
-
let baseOptions;
|
|
1523
|
-
if (configuration) {
|
|
1524
|
-
baseOptions = configuration.baseOptions;
|
|
1525
|
-
}
|
|
1526
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
1527
|
-
const localVarHeaderParameter = {};
|
|
1528
|
-
const localVarQueryParameter = {};
|
|
1529
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1530
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1531
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1532
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1533
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(iBasketDeleteRequest, localVarRequestOptions, configuration);
|
|
1534
|
-
return {
|
|
1535
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1536
|
-
options: localVarRequestOptions,
|
|
1537
|
-
};
|
|
1538
|
-
},
|
|
1539
1514
|
/**
|
|
1540
1515
|
*
|
|
1541
1516
|
* @param {string} [id]
|
|
@@ -1621,39 +1596,6 @@ const BasketApiAxiosParamCreator = function (configuration) {
|
|
|
1621
1596
|
options: localVarRequestOptions,
|
|
1622
1597
|
};
|
|
1623
1598
|
},
|
|
1624
|
-
/**
|
|
1625
|
-
*
|
|
1626
|
-
* @param {string} itemId
|
|
1627
|
-
* @param {IBasketUpdateAmountRequest} iBasketUpdateAmountRequest
|
|
1628
|
-
* @param {*} [options] Override http request option.
|
|
1629
|
-
* @throws {RequiredError}
|
|
1630
|
-
*/
|
|
1631
|
-
updateAmount: async (itemId, iBasketUpdateAmountRequest, options = {}) => {
|
|
1632
|
-
// verify required parameter 'itemId' is not null or undefined
|
|
1633
|
-
(0, common_1.assertParamExists)('updateAmount', 'itemId', itemId);
|
|
1634
|
-
// verify required parameter 'iBasketUpdateAmountRequest' is not null or undefined
|
|
1635
|
-
(0, common_1.assertParamExists)('updateAmount', 'iBasketUpdateAmountRequest', iBasketUpdateAmountRequest);
|
|
1636
|
-
const localVarPath = `/api/baskets/update-amount/{item_id}`
|
|
1637
|
-
.replace(`{${"item_id"}}`, encodeURIComponent(String(itemId)));
|
|
1638
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1639
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1640
|
-
let baseOptions;
|
|
1641
|
-
if (configuration) {
|
|
1642
|
-
baseOptions = configuration.baseOptions;
|
|
1643
|
-
}
|
|
1644
|
-
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
|
|
1645
|
-
const localVarHeaderParameter = {};
|
|
1646
|
-
const localVarQueryParameter = {};
|
|
1647
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1648
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1649
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1650
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1651
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(iBasketUpdateAmountRequest, localVarRequestOptions, configuration);
|
|
1652
|
-
return {
|
|
1653
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1654
|
-
options: localVarRequestOptions,
|
|
1655
|
-
};
|
|
1656
|
-
},
|
|
1657
1599
|
};
|
|
1658
1600
|
};
|
|
1659
1601
|
exports.BasketApiAxiosParamCreator = BasketApiAxiosParamCreator;
|
|
@@ -1676,19 +1618,6 @@ const BasketApiFp = function (configuration) {
|
|
|
1676
1618
|
const localVarOperationServerBasePath = base_1.operationServerMap['BasketApi.addProductToBasket']?.[localVarOperationServerIndex]?.url;
|
|
1677
1619
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1678
1620
|
},
|
|
1679
|
-
/**
|
|
1680
|
-
*
|
|
1681
|
-
* @param {string} itemId
|
|
1682
|
-
* @param {IBasketDeleteRequest} iBasketDeleteRequest
|
|
1683
|
-
* @param {*} [options] Override http request option.
|
|
1684
|
-
* @throws {RequiredError}
|
|
1685
|
-
*/
|
|
1686
|
-
async deleteProductFromBasket(itemId, iBasketDeleteRequest, options) {
|
|
1687
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProductFromBasket(itemId, iBasketDeleteRequest, options);
|
|
1688
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1689
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['BasketApi.deleteProductFromBasket']?.[localVarOperationServerIndex]?.url;
|
|
1690
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1691
|
-
},
|
|
1692
1621
|
/**
|
|
1693
1622
|
*
|
|
1694
1623
|
* @param {string} [id]
|
|
@@ -1725,19 +1654,6 @@ const BasketApiFp = function (configuration) {
|
|
|
1725
1654
|
const localVarOperationServerBasePath = base_1.operationServerMap['BasketApi.mergeBasket']?.[localVarOperationServerIndex]?.url;
|
|
1726
1655
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1727
1656
|
},
|
|
1728
|
-
/**
|
|
1729
|
-
*
|
|
1730
|
-
* @param {string} itemId
|
|
1731
|
-
* @param {IBasketUpdateAmountRequest} iBasketUpdateAmountRequest
|
|
1732
|
-
* @param {*} [options] Override http request option.
|
|
1733
|
-
* @throws {RequiredError}
|
|
1734
|
-
*/
|
|
1735
|
-
async updateAmount(itemId, iBasketUpdateAmountRequest, options) {
|
|
1736
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateAmount(itemId, iBasketUpdateAmountRequest, options);
|
|
1737
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1738
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['BasketApi.updateAmount']?.[localVarOperationServerIndex]?.url;
|
|
1739
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1740
|
-
},
|
|
1741
1657
|
};
|
|
1742
1658
|
};
|
|
1743
1659
|
exports.BasketApiFp = BasketApiFp;
|
|
@@ -1757,15 +1673,6 @@ const BasketApiFactory = function (configuration, basePath, axios) {
|
|
|
1757
1673
|
addProductToBasket(requestParameters, options) {
|
|
1758
1674
|
return localVarFp.addProductToBasket(requestParameters.iAddProductToBasketRequest, options).then((request) => request(axios, basePath));
|
|
1759
1675
|
},
|
|
1760
|
-
/**
|
|
1761
|
-
*
|
|
1762
|
-
* @param {BasketApiDeleteProductFromBasketRequest} requestParameters Request parameters.
|
|
1763
|
-
* @param {*} [options] Override http request option.
|
|
1764
|
-
* @throws {RequiredError}
|
|
1765
|
-
*/
|
|
1766
|
-
deleteProductFromBasket(requestParameters, options) {
|
|
1767
|
-
return localVarFp.deleteProductFromBasket(requestParameters.itemId, requestParameters.iBasketDeleteRequest, options).then((request) => request(axios, basePath));
|
|
1768
|
-
},
|
|
1769
1676
|
/**
|
|
1770
1677
|
*
|
|
1771
1678
|
* @param {BasketApiGetBasketRequest} requestParameters Request parameters.
|
|
@@ -1793,15 +1700,6 @@ const BasketApiFactory = function (configuration, basePath, axios) {
|
|
|
1793
1700
|
mergeBasket(requestParameters, options) {
|
|
1794
1701
|
return localVarFp.mergeBasket(requestParameters.iBasketMergeRequest, options).then((request) => request(axios, basePath));
|
|
1795
1702
|
},
|
|
1796
|
-
/**
|
|
1797
|
-
*
|
|
1798
|
-
* @param {BasketApiUpdateAmountRequest} requestParameters Request parameters.
|
|
1799
|
-
* @param {*} [options] Override http request option.
|
|
1800
|
-
* @throws {RequiredError}
|
|
1801
|
-
*/
|
|
1802
|
-
updateAmount(requestParameters, options) {
|
|
1803
|
-
return localVarFp.updateAmount(requestParameters.itemId, requestParameters.iBasketUpdateAmountRequest, options).then((request) => request(axios, basePath));
|
|
1804
|
-
},
|
|
1805
1703
|
};
|
|
1806
1704
|
};
|
|
1807
1705
|
exports.BasketApiFactory = BasketApiFactory;
|
|
@@ -1822,16 +1720,6 @@ class BasketApi extends base_1.BaseAPI {
|
|
|
1822
1720
|
addProductToBasket(requestParameters, options) {
|
|
1823
1721
|
return (0, exports.BasketApiFp)(this.configuration).addProductToBasket(requestParameters.iAddProductToBasketRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1824
1722
|
}
|
|
1825
|
-
/**
|
|
1826
|
-
*
|
|
1827
|
-
* @param {BasketApiDeleteProductFromBasketRequest} requestParameters Request parameters.
|
|
1828
|
-
* @param {*} [options] Override http request option.
|
|
1829
|
-
* @throws {RequiredError}
|
|
1830
|
-
* @memberof BasketApi
|
|
1831
|
-
*/
|
|
1832
|
-
deleteProductFromBasket(requestParameters, options) {
|
|
1833
|
-
return (0, exports.BasketApiFp)(this.configuration).deleteProductFromBasket(requestParameters.itemId, requestParameters.iBasketDeleteRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1834
|
-
}
|
|
1835
1723
|
/**
|
|
1836
1724
|
*
|
|
1837
1725
|
* @param {BasketApiGetBasketRequest} requestParameters Request parameters.
|
|
@@ -1862,16 +1750,6 @@ class BasketApi extends base_1.BaseAPI {
|
|
|
1862
1750
|
mergeBasket(requestParameters, options) {
|
|
1863
1751
|
return (0, exports.BasketApiFp)(this.configuration).mergeBasket(requestParameters.iBasketMergeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1864
1752
|
}
|
|
1865
|
-
/**
|
|
1866
|
-
*
|
|
1867
|
-
* @param {BasketApiUpdateAmountRequest} requestParameters Request parameters.
|
|
1868
|
-
* @param {*} [options] Override http request option.
|
|
1869
|
-
* @throws {RequiredError}
|
|
1870
|
-
* @memberof BasketApi
|
|
1871
|
-
*/
|
|
1872
|
-
updateAmount(requestParameters, options) {
|
|
1873
|
-
return (0, exports.BasketApiFp)(this.configuration).updateAmount(requestParameters.itemId, requestParameters.iBasketUpdateAmountRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1874
|
-
}
|
|
1875
1753
|
}
|
|
1876
1754
|
exports.BasketApi = BasketApi;
|
|
1877
1755
|
/**
|
|
@@ -4082,6 +3960,112 @@ class UniquePageApi extends base_1.BaseAPI {
|
|
|
4082
3960
|
}
|
|
4083
3961
|
}
|
|
4084
3962
|
exports.UniquePageApi = UniquePageApi;
|
|
3963
|
+
/**
|
|
3964
|
+
* UrlRedirectApi - axios parameter creator
|
|
3965
|
+
* @export
|
|
3966
|
+
*/
|
|
3967
|
+
const UrlRedirectApiAxiosParamCreator = function (configuration) {
|
|
3968
|
+
return {
|
|
3969
|
+
/**
|
|
3970
|
+
*
|
|
3971
|
+
* @param {string} from
|
|
3972
|
+
* @param {string} companyId
|
|
3973
|
+
* @param {*} [options] Override http request option.
|
|
3974
|
+
* @throws {RequiredError}
|
|
3975
|
+
*/
|
|
3976
|
+
getUrlRedirectBySource: async (from, companyId, options = {}) => {
|
|
3977
|
+
// verify required parameter 'from' is not null or undefined
|
|
3978
|
+
(0, common_1.assertParamExists)('getUrlRedirectBySource', 'from', from);
|
|
3979
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
3980
|
+
(0, common_1.assertParamExists)('getUrlRedirectBySource', 'companyId', companyId);
|
|
3981
|
+
const localVarPath = `/api/url-redirects/from`;
|
|
3982
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3983
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3984
|
+
let baseOptions;
|
|
3985
|
+
if (configuration) {
|
|
3986
|
+
baseOptions = configuration.baseOptions;
|
|
3987
|
+
}
|
|
3988
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
3989
|
+
const localVarHeaderParameter = {};
|
|
3990
|
+
const localVarQueryParameter = {};
|
|
3991
|
+
if (from !== undefined) {
|
|
3992
|
+
localVarQueryParameter['from'] = from;
|
|
3993
|
+
}
|
|
3994
|
+
if (companyId !== undefined) {
|
|
3995
|
+
localVarQueryParameter['companyId'] = companyId;
|
|
3996
|
+
}
|
|
3997
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3998
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3999
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4000
|
+
return {
|
|
4001
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4002
|
+
options: localVarRequestOptions,
|
|
4003
|
+
};
|
|
4004
|
+
},
|
|
4005
|
+
};
|
|
4006
|
+
};
|
|
4007
|
+
exports.UrlRedirectApiAxiosParamCreator = UrlRedirectApiAxiosParamCreator;
|
|
4008
|
+
/**
|
|
4009
|
+
* UrlRedirectApi - functional programming interface
|
|
4010
|
+
* @export
|
|
4011
|
+
*/
|
|
4012
|
+
const UrlRedirectApiFp = function (configuration) {
|
|
4013
|
+
const localVarAxiosParamCreator = (0, exports.UrlRedirectApiAxiosParamCreator)(configuration);
|
|
4014
|
+
return {
|
|
4015
|
+
/**
|
|
4016
|
+
*
|
|
4017
|
+
* @param {string} from
|
|
4018
|
+
* @param {string} companyId
|
|
4019
|
+
* @param {*} [options] Override http request option.
|
|
4020
|
+
* @throws {RequiredError}
|
|
4021
|
+
*/
|
|
4022
|
+
async getUrlRedirectBySource(from, companyId, options) {
|
|
4023
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUrlRedirectBySource(from, companyId, options);
|
|
4024
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4025
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['UrlRedirectApi.getUrlRedirectBySource']?.[localVarOperationServerIndex]?.url;
|
|
4026
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4027
|
+
},
|
|
4028
|
+
};
|
|
4029
|
+
};
|
|
4030
|
+
exports.UrlRedirectApiFp = UrlRedirectApiFp;
|
|
4031
|
+
/**
|
|
4032
|
+
* UrlRedirectApi - factory interface
|
|
4033
|
+
* @export
|
|
4034
|
+
*/
|
|
4035
|
+
const UrlRedirectApiFactory = function (configuration, basePath, axios) {
|
|
4036
|
+
const localVarFp = (0, exports.UrlRedirectApiFp)(configuration);
|
|
4037
|
+
return {
|
|
4038
|
+
/**
|
|
4039
|
+
*
|
|
4040
|
+
* @param {UrlRedirectApiGetUrlRedirectBySourceRequest} requestParameters Request parameters.
|
|
4041
|
+
* @param {*} [options] Override http request option.
|
|
4042
|
+
* @throws {RequiredError}
|
|
4043
|
+
*/
|
|
4044
|
+
getUrlRedirectBySource(requestParameters, options) {
|
|
4045
|
+
return localVarFp.getUrlRedirectBySource(requestParameters.from, requestParameters.companyId, options).then((request) => request(axios, basePath));
|
|
4046
|
+
},
|
|
4047
|
+
};
|
|
4048
|
+
};
|
|
4049
|
+
exports.UrlRedirectApiFactory = UrlRedirectApiFactory;
|
|
4050
|
+
/**
|
|
4051
|
+
* UrlRedirectApi - object-oriented interface
|
|
4052
|
+
* @export
|
|
4053
|
+
* @class UrlRedirectApi
|
|
4054
|
+
* @extends {BaseAPI}
|
|
4055
|
+
*/
|
|
4056
|
+
class UrlRedirectApi extends base_1.BaseAPI {
|
|
4057
|
+
/**
|
|
4058
|
+
*
|
|
4059
|
+
* @param {UrlRedirectApiGetUrlRedirectBySourceRequest} requestParameters Request parameters.
|
|
4060
|
+
* @param {*} [options] Override http request option.
|
|
4061
|
+
* @throws {RequiredError}
|
|
4062
|
+
* @memberof UrlRedirectApi
|
|
4063
|
+
*/
|
|
4064
|
+
getUrlRedirectBySource(requestParameters, options) {
|
|
4065
|
+
return (0, exports.UrlRedirectApiFp)(this.configuration).getUrlRedirectBySource(requestParameters.from, requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
|
|
4066
|
+
}
|
|
4067
|
+
}
|
|
4068
|
+
exports.UrlRedirectApi = UrlRedirectApi;
|
|
4085
4069
|
/**
|
|
4086
4070
|
* UserApi - axios parameter creator
|
|
4087
4071
|
* @export
|
package/dist/api/api.mjs
CHANGED
|
@@ -445,6 +445,14 @@ export const IUniqueCollectionQueryParamsDateFieldEnum = {
|
|
|
445
445
|
CREATED_AT: 'createdAt',
|
|
446
446
|
UPDATED_AT: 'updatedAt'
|
|
447
447
|
};
|
|
448
|
+
export const IUrlRedirectCollectionQueryParamsDateFieldEnum = {
|
|
449
|
+
CREATED_AT: 'createdAt',
|
|
450
|
+
UPDATED_AT: 'updatedAt'
|
|
451
|
+
};
|
|
452
|
+
export const IUrlRedirectCollectionQueryParamsSortEnum = {
|
|
453
|
+
CREATED_AT: 'createdAt',
|
|
454
|
+
FROM: 'from'
|
|
455
|
+
};
|
|
448
456
|
export const IUserCollectionQueryParamsDateFieldEnum = {
|
|
449
457
|
CREATED_AT: 'createdAt',
|
|
450
458
|
UPDATED_AT: 'updatedAt'
|
|
@@ -1484,39 +1492,6 @@ export const BasketApiAxiosParamCreator = function (configuration) {
|
|
|
1484
1492
|
options: localVarRequestOptions,
|
|
1485
1493
|
};
|
|
1486
1494
|
},
|
|
1487
|
-
/**
|
|
1488
|
-
*
|
|
1489
|
-
* @param {string} itemId
|
|
1490
|
-
* @param {IBasketDeleteRequest} iBasketDeleteRequest
|
|
1491
|
-
* @param {*} [options] Override http request option.
|
|
1492
|
-
* @throws {RequiredError}
|
|
1493
|
-
*/
|
|
1494
|
-
deleteProductFromBasket: async (itemId, iBasketDeleteRequest, options = {}) => {
|
|
1495
|
-
// verify required parameter 'itemId' is not null or undefined
|
|
1496
|
-
assertParamExists('deleteProductFromBasket', 'itemId', itemId);
|
|
1497
|
-
// verify required parameter 'iBasketDeleteRequest' is not null or undefined
|
|
1498
|
-
assertParamExists('deleteProductFromBasket', 'iBasketDeleteRequest', iBasketDeleteRequest);
|
|
1499
|
-
const localVarPath = `/api/baskets/delete-product/{item_id}`
|
|
1500
|
-
.replace(`{${"item_id"}}`, encodeURIComponent(String(itemId)));
|
|
1501
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1502
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1503
|
-
let baseOptions;
|
|
1504
|
-
if (configuration) {
|
|
1505
|
-
baseOptions = configuration.baseOptions;
|
|
1506
|
-
}
|
|
1507
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
1508
|
-
const localVarHeaderParameter = {};
|
|
1509
|
-
const localVarQueryParameter = {};
|
|
1510
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1511
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1512
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1513
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1514
|
-
localVarRequestOptions.data = serializeDataIfNeeded(iBasketDeleteRequest, localVarRequestOptions, configuration);
|
|
1515
|
-
return {
|
|
1516
|
-
url: toPathString(localVarUrlObj),
|
|
1517
|
-
options: localVarRequestOptions,
|
|
1518
|
-
};
|
|
1519
|
-
},
|
|
1520
1495
|
/**
|
|
1521
1496
|
*
|
|
1522
1497
|
* @param {string} [id]
|
|
@@ -1602,39 +1577,6 @@ export const BasketApiAxiosParamCreator = function (configuration) {
|
|
|
1602
1577
|
options: localVarRequestOptions,
|
|
1603
1578
|
};
|
|
1604
1579
|
},
|
|
1605
|
-
/**
|
|
1606
|
-
*
|
|
1607
|
-
* @param {string} itemId
|
|
1608
|
-
* @param {IBasketUpdateAmountRequest} iBasketUpdateAmountRequest
|
|
1609
|
-
* @param {*} [options] Override http request option.
|
|
1610
|
-
* @throws {RequiredError}
|
|
1611
|
-
*/
|
|
1612
|
-
updateAmount: async (itemId, iBasketUpdateAmountRequest, options = {}) => {
|
|
1613
|
-
// verify required parameter 'itemId' is not null or undefined
|
|
1614
|
-
assertParamExists('updateAmount', 'itemId', itemId);
|
|
1615
|
-
// verify required parameter 'iBasketUpdateAmountRequest' is not null or undefined
|
|
1616
|
-
assertParamExists('updateAmount', 'iBasketUpdateAmountRequest', iBasketUpdateAmountRequest);
|
|
1617
|
-
const localVarPath = `/api/baskets/update-amount/{item_id}`
|
|
1618
|
-
.replace(`{${"item_id"}}`, encodeURIComponent(String(itemId)));
|
|
1619
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1620
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1621
|
-
let baseOptions;
|
|
1622
|
-
if (configuration) {
|
|
1623
|
-
baseOptions = configuration.baseOptions;
|
|
1624
|
-
}
|
|
1625
|
-
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
|
|
1626
|
-
const localVarHeaderParameter = {};
|
|
1627
|
-
const localVarQueryParameter = {};
|
|
1628
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1629
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1630
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1631
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1632
|
-
localVarRequestOptions.data = serializeDataIfNeeded(iBasketUpdateAmountRequest, localVarRequestOptions, configuration);
|
|
1633
|
-
return {
|
|
1634
|
-
url: toPathString(localVarUrlObj),
|
|
1635
|
-
options: localVarRequestOptions,
|
|
1636
|
-
};
|
|
1637
|
-
},
|
|
1638
1580
|
};
|
|
1639
1581
|
};
|
|
1640
1582
|
/**
|
|
@@ -1656,19 +1598,6 @@ export const BasketApiFp = function (configuration) {
|
|
|
1656
1598
|
const localVarOperationServerBasePath = operationServerMap['BasketApi.addProductToBasket']?.[localVarOperationServerIndex]?.url;
|
|
1657
1599
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1658
1600
|
},
|
|
1659
|
-
/**
|
|
1660
|
-
*
|
|
1661
|
-
* @param {string} itemId
|
|
1662
|
-
* @param {IBasketDeleteRequest} iBasketDeleteRequest
|
|
1663
|
-
* @param {*} [options] Override http request option.
|
|
1664
|
-
* @throws {RequiredError}
|
|
1665
|
-
*/
|
|
1666
|
-
async deleteProductFromBasket(itemId, iBasketDeleteRequest, options) {
|
|
1667
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProductFromBasket(itemId, iBasketDeleteRequest, options);
|
|
1668
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1669
|
-
const localVarOperationServerBasePath = operationServerMap['BasketApi.deleteProductFromBasket']?.[localVarOperationServerIndex]?.url;
|
|
1670
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1671
|
-
},
|
|
1672
1601
|
/**
|
|
1673
1602
|
*
|
|
1674
1603
|
* @param {string} [id]
|
|
@@ -1705,19 +1634,6 @@ export const BasketApiFp = function (configuration) {
|
|
|
1705
1634
|
const localVarOperationServerBasePath = operationServerMap['BasketApi.mergeBasket']?.[localVarOperationServerIndex]?.url;
|
|
1706
1635
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1707
1636
|
},
|
|
1708
|
-
/**
|
|
1709
|
-
*
|
|
1710
|
-
* @param {string} itemId
|
|
1711
|
-
* @param {IBasketUpdateAmountRequest} iBasketUpdateAmountRequest
|
|
1712
|
-
* @param {*} [options] Override http request option.
|
|
1713
|
-
* @throws {RequiredError}
|
|
1714
|
-
*/
|
|
1715
|
-
async updateAmount(itemId, iBasketUpdateAmountRequest, options) {
|
|
1716
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateAmount(itemId, iBasketUpdateAmountRequest, options);
|
|
1717
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1718
|
-
const localVarOperationServerBasePath = operationServerMap['BasketApi.updateAmount']?.[localVarOperationServerIndex]?.url;
|
|
1719
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1720
|
-
},
|
|
1721
1637
|
};
|
|
1722
1638
|
};
|
|
1723
1639
|
/**
|
|
@@ -1736,15 +1652,6 @@ export const BasketApiFactory = function (configuration, basePath, axios) {
|
|
|
1736
1652
|
addProductToBasket(requestParameters, options) {
|
|
1737
1653
|
return localVarFp.addProductToBasket(requestParameters.iAddProductToBasketRequest, options).then((request) => request(axios, basePath));
|
|
1738
1654
|
},
|
|
1739
|
-
/**
|
|
1740
|
-
*
|
|
1741
|
-
* @param {BasketApiDeleteProductFromBasketRequest} requestParameters Request parameters.
|
|
1742
|
-
* @param {*} [options] Override http request option.
|
|
1743
|
-
* @throws {RequiredError}
|
|
1744
|
-
*/
|
|
1745
|
-
deleteProductFromBasket(requestParameters, options) {
|
|
1746
|
-
return localVarFp.deleteProductFromBasket(requestParameters.itemId, requestParameters.iBasketDeleteRequest, options).then((request) => request(axios, basePath));
|
|
1747
|
-
},
|
|
1748
1655
|
/**
|
|
1749
1656
|
*
|
|
1750
1657
|
* @param {BasketApiGetBasketRequest} requestParameters Request parameters.
|
|
@@ -1772,15 +1679,6 @@ export const BasketApiFactory = function (configuration, basePath, axios) {
|
|
|
1772
1679
|
mergeBasket(requestParameters, options) {
|
|
1773
1680
|
return localVarFp.mergeBasket(requestParameters.iBasketMergeRequest, options).then((request) => request(axios, basePath));
|
|
1774
1681
|
},
|
|
1775
|
-
/**
|
|
1776
|
-
*
|
|
1777
|
-
* @param {BasketApiUpdateAmountRequest} requestParameters Request parameters.
|
|
1778
|
-
* @param {*} [options] Override http request option.
|
|
1779
|
-
* @throws {RequiredError}
|
|
1780
|
-
*/
|
|
1781
|
-
updateAmount(requestParameters, options) {
|
|
1782
|
-
return localVarFp.updateAmount(requestParameters.itemId, requestParameters.iBasketUpdateAmountRequest, options).then((request) => request(axios, basePath));
|
|
1783
|
-
},
|
|
1784
1682
|
};
|
|
1785
1683
|
};
|
|
1786
1684
|
/**
|
|
@@ -1800,16 +1698,6 @@ export class BasketApi extends BaseAPI {
|
|
|
1800
1698
|
addProductToBasket(requestParameters, options) {
|
|
1801
1699
|
return BasketApiFp(this.configuration).addProductToBasket(requestParameters.iAddProductToBasketRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1802
1700
|
}
|
|
1803
|
-
/**
|
|
1804
|
-
*
|
|
1805
|
-
* @param {BasketApiDeleteProductFromBasketRequest} requestParameters Request parameters.
|
|
1806
|
-
* @param {*} [options] Override http request option.
|
|
1807
|
-
* @throws {RequiredError}
|
|
1808
|
-
* @memberof BasketApi
|
|
1809
|
-
*/
|
|
1810
|
-
deleteProductFromBasket(requestParameters, options) {
|
|
1811
|
-
return BasketApiFp(this.configuration).deleteProductFromBasket(requestParameters.itemId, requestParameters.iBasketDeleteRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1812
|
-
}
|
|
1813
1701
|
/**
|
|
1814
1702
|
*
|
|
1815
1703
|
* @param {BasketApiGetBasketRequest} requestParameters Request parameters.
|
|
@@ -1840,16 +1728,6 @@ export class BasketApi extends BaseAPI {
|
|
|
1840
1728
|
mergeBasket(requestParameters, options) {
|
|
1841
1729
|
return BasketApiFp(this.configuration).mergeBasket(requestParameters.iBasketMergeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1842
1730
|
}
|
|
1843
|
-
/**
|
|
1844
|
-
*
|
|
1845
|
-
* @param {BasketApiUpdateAmountRequest} requestParameters Request parameters.
|
|
1846
|
-
* @param {*} [options] Override http request option.
|
|
1847
|
-
* @throws {RequiredError}
|
|
1848
|
-
* @memberof BasketApi
|
|
1849
|
-
*/
|
|
1850
|
-
updateAmount(requestParameters, options) {
|
|
1851
|
-
return BasketApiFp(this.configuration).updateAmount(requestParameters.itemId, requestParameters.iBasketUpdateAmountRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1852
|
-
}
|
|
1853
1731
|
}
|
|
1854
1732
|
/**
|
|
1855
1733
|
* CollectionApi - axios parameter creator
|
|
@@ -4023,6 +3901,108 @@ export class UniquePageApi extends BaseAPI {
|
|
|
4023
3901
|
return UniquePageApiFp(this.configuration).getUniquePageByType(requestParameters.type, requestParameters.companyId, requestParameters.domain, requestParameters.template, options).then((request) => request(this.axios, this.basePath));
|
|
4024
3902
|
}
|
|
4025
3903
|
}
|
|
3904
|
+
/**
|
|
3905
|
+
* UrlRedirectApi - axios parameter creator
|
|
3906
|
+
* @export
|
|
3907
|
+
*/
|
|
3908
|
+
export const UrlRedirectApiAxiosParamCreator = function (configuration) {
|
|
3909
|
+
return {
|
|
3910
|
+
/**
|
|
3911
|
+
*
|
|
3912
|
+
* @param {string} from
|
|
3913
|
+
* @param {string} companyId
|
|
3914
|
+
* @param {*} [options] Override http request option.
|
|
3915
|
+
* @throws {RequiredError}
|
|
3916
|
+
*/
|
|
3917
|
+
getUrlRedirectBySource: async (from, companyId, options = {}) => {
|
|
3918
|
+
// verify required parameter 'from' is not null or undefined
|
|
3919
|
+
assertParamExists('getUrlRedirectBySource', 'from', from);
|
|
3920
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
3921
|
+
assertParamExists('getUrlRedirectBySource', 'companyId', companyId);
|
|
3922
|
+
const localVarPath = `/api/url-redirects/from`;
|
|
3923
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3924
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3925
|
+
let baseOptions;
|
|
3926
|
+
if (configuration) {
|
|
3927
|
+
baseOptions = configuration.baseOptions;
|
|
3928
|
+
}
|
|
3929
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
3930
|
+
const localVarHeaderParameter = {};
|
|
3931
|
+
const localVarQueryParameter = {};
|
|
3932
|
+
if (from !== undefined) {
|
|
3933
|
+
localVarQueryParameter['from'] = from;
|
|
3934
|
+
}
|
|
3935
|
+
if (companyId !== undefined) {
|
|
3936
|
+
localVarQueryParameter['companyId'] = companyId;
|
|
3937
|
+
}
|
|
3938
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3939
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3940
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3941
|
+
return {
|
|
3942
|
+
url: toPathString(localVarUrlObj),
|
|
3943
|
+
options: localVarRequestOptions,
|
|
3944
|
+
};
|
|
3945
|
+
},
|
|
3946
|
+
};
|
|
3947
|
+
};
|
|
3948
|
+
/**
|
|
3949
|
+
* UrlRedirectApi - functional programming interface
|
|
3950
|
+
* @export
|
|
3951
|
+
*/
|
|
3952
|
+
export const UrlRedirectApiFp = function (configuration) {
|
|
3953
|
+
const localVarAxiosParamCreator = UrlRedirectApiAxiosParamCreator(configuration);
|
|
3954
|
+
return {
|
|
3955
|
+
/**
|
|
3956
|
+
*
|
|
3957
|
+
* @param {string} from
|
|
3958
|
+
* @param {string} companyId
|
|
3959
|
+
* @param {*} [options] Override http request option.
|
|
3960
|
+
* @throws {RequiredError}
|
|
3961
|
+
*/
|
|
3962
|
+
async getUrlRedirectBySource(from, companyId, options) {
|
|
3963
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUrlRedirectBySource(from, companyId, options);
|
|
3964
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3965
|
+
const localVarOperationServerBasePath = operationServerMap['UrlRedirectApi.getUrlRedirectBySource']?.[localVarOperationServerIndex]?.url;
|
|
3966
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3967
|
+
},
|
|
3968
|
+
};
|
|
3969
|
+
};
|
|
3970
|
+
/**
|
|
3971
|
+
* UrlRedirectApi - factory interface
|
|
3972
|
+
* @export
|
|
3973
|
+
*/
|
|
3974
|
+
export const UrlRedirectApiFactory = function (configuration, basePath, axios) {
|
|
3975
|
+
const localVarFp = UrlRedirectApiFp(configuration);
|
|
3976
|
+
return {
|
|
3977
|
+
/**
|
|
3978
|
+
*
|
|
3979
|
+
* @param {UrlRedirectApiGetUrlRedirectBySourceRequest} requestParameters Request parameters.
|
|
3980
|
+
* @param {*} [options] Override http request option.
|
|
3981
|
+
* @throws {RequiredError}
|
|
3982
|
+
*/
|
|
3983
|
+
getUrlRedirectBySource(requestParameters, options) {
|
|
3984
|
+
return localVarFp.getUrlRedirectBySource(requestParameters.from, requestParameters.companyId, options).then((request) => request(axios, basePath));
|
|
3985
|
+
},
|
|
3986
|
+
};
|
|
3987
|
+
};
|
|
3988
|
+
/**
|
|
3989
|
+
* UrlRedirectApi - object-oriented interface
|
|
3990
|
+
* @export
|
|
3991
|
+
* @class UrlRedirectApi
|
|
3992
|
+
* @extends {BaseAPI}
|
|
3993
|
+
*/
|
|
3994
|
+
export class UrlRedirectApi extends BaseAPI {
|
|
3995
|
+
/**
|
|
3996
|
+
*
|
|
3997
|
+
* @param {UrlRedirectApiGetUrlRedirectBySourceRequest} requestParameters Request parameters.
|
|
3998
|
+
* @param {*} [options] Override http request option.
|
|
3999
|
+
* @throws {RequiredError}
|
|
4000
|
+
* @memberof UrlRedirectApi
|
|
4001
|
+
*/
|
|
4002
|
+
getUrlRedirectBySource(requestParameters, options) {
|
|
4003
|
+
return UrlRedirectApiFp(this.configuration).getUrlRedirectBySource(requestParameters.from, requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
|
|
4004
|
+
}
|
|
4005
|
+
}
|
|
4026
4006
|
/**
|
|
4027
4007
|
* UserApi - axios parameter creator
|
|
4028
4008
|
* @export
|
package/dist/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ interface IApiClient {
|
|
|
15
15
|
OrderApi: doc.OrderApi;
|
|
16
16
|
UniquePageApi: doc.UniquePageApi;
|
|
17
17
|
TemplateApi: doc.TemplateApi;
|
|
18
|
+
UrlRedirectApi: doc.UrlRedirectApi;
|
|
18
19
|
interceptors: {
|
|
19
20
|
request: AxiosInterceptorManager<InternalAxiosRequestConfig>;
|
|
20
21
|
response: AxiosInterceptorManager<AxiosResponse>;
|
|
@@ -39,6 +40,7 @@ export declare class ApiClient implements IApiClient {
|
|
|
39
40
|
OrderApi: doc.OrderApi;
|
|
40
41
|
UniquePageApi: doc.UniquePageApi;
|
|
41
42
|
TemplateApi: doc.TemplateApi;
|
|
43
|
+
UrlRedirectApi: doc.UrlRedirectApi;
|
|
42
44
|
interceptors: {
|
|
43
45
|
request: AxiosInterceptorManager<InternalAxiosRequestConfig>;
|
|
44
46
|
response: AxiosInterceptorManager<AxiosResponse>;
|
package/dist/index.js
CHANGED
|
@@ -69,6 +69,7 @@ class ApiClient {
|
|
|
69
69
|
this.OrderApi = new doc.OrderApi(undefined, this.baseURL, this.api);
|
|
70
70
|
this.UniquePageApi = new doc.UniquePageApi(undefined, this.baseURL, this.api);
|
|
71
71
|
this.TemplateApi = new doc.TemplateApi(undefined, this.baseURL, this.api);
|
|
72
|
+
this.UrlRedirectApi = new doc.UrlRedirectApi(undefined, this.baseURL, this.api);
|
|
72
73
|
this.interceptors = {
|
|
73
74
|
request: this.api.interceptors.request,
|
|
74
75
|
response: this.api.interceptors.response,
|
package/dist/index.mjs
CHANGED
|
@@ -27,6 +27,7 @@ export class ApiClient {
|
|
|
27
27
|
this.OrderApi = new doc.OrderApi(undefined, this.baseURL, this.api);
|
|
28
28
|
this.UniquePageApi = new doc.UniquePageApi(undefined, this.baseURL, this.api);
|
|
29
29
|
this.TemplateApi = new doc.TemplateApi(undefined, this.baseURL, this.api);
|
|
30
|
+
this.UrlRedirectApi = new doc.UrlRedirectApi(undefined, this.baseURL, this.api);
|
|
30
31
|
this.interceptors = {
|
|
31
32
|
request: this.api.interceptors.request,
|
|
32
33
|
response: this.api.interceptors.response,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infisale-client/api-client",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.28",
|
|
4
4
|
"description": "api-client-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": "b5ecf035afe6e26fe8a2dc3ec8f7ddee562e8a0f"
|
|
41
41
|
}
|