@seekora-ai/admin-api 1.0.67 → 1.0.69

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/esm/api.d.ts CHANGED
@@ -21154,6 +21154,67 @@ export declare class BillingDashboardApi extends BaseAPI {
21154
21154
  */
21155
21155
  adminBillingPaymentTransactionsGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesGenericResponseArrayBillingServicePaymentTransactionSummary, any, {}>>;
21156
21156
  }
21157
+ /**
21158
+ * CommonApi - axios parameter creator
21159
+ * @export
21160
+ */
21161
+ export declare const CommonApiAxiosParamCreator: (configuration?: Configuration) => {
21162
+ /**
21163
+ * Retrieve list of supported languages for query suggestions with language codes, names, and locales
21164
+ * @summary Get Supported Languages
21165
+ * @param {*} [options] Override http request option.
21166
+ * @throws {RequiredError}
21167
+ */
21168
+ commonLanguagesGet: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
21169
+ };
21170
+ /**
21171
+ * CommonApi - functional programming interface
21172
+ * @export
21173
+ */
21174
+ export declare const CommonApiFp: (configuration?: Configuration) => {
21175
+ /**
21176
+ * Retrieve list of supported languages for query suggestions with language codes, names, and locales
21177
+ * @summary Get Supported Languages
21178
+ * @param {*} [options] Override http request option.
21179
+ * @throws {RequiredError}
21180
+ */
21181
+ commonLanguagesGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{
21182
+ [key: string]: any;
21183
+ }>>;
21184
+ };
21185
+ /**
21186
+ * CommonApi - factory interface
21187
+ * @export
21188
+ */
21189
+ export declare const CommonApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
21190
+ /**
21191
+ * Retrieve list of supported languages for query suggestions with language codes, names, and locales
21192
+ * @summary Get Supported Languages
21193
+ * @param {*} [options] Override http request option.
21194
+ * @throws {RequiredError}
21195
+ */
21196
+ commonLanguagesGet(options?: RawAxiosRequestConfig): AxiosPromise<{
21197
+ [key: string]: any;
21198
+ }>;
21199
+ };
21200
+ /**
21201
+ * CommonApi - object-oriented interface
21202
+ * @export
21203
+ * @class CommonApi
21204
+ * @extends {BaseAPI}
21205
+ */
21206
+ export declare class CommonApi extends BaseAPI {
21207
+ /**
21208
+ * Retrieve list of supported languages for query suggestions with language codes, names, and locales
21209
+ * @summary Get Supported Languages
21210
+ * @param {*} [options] Override http request option.
21211
+ * @throws {RequiredError}
21212
+ * @memberof CommonApi
21213
+ */
21214
+ commonLanguagesGet(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<{
21215
+ [key: string]: any;
21216
+ }, any, {}>>;
21217
+ }
21157
21218
  /**
21158
21219
  * ConnectorsApi - axios parameter creator
21159
21220
  * @export
@@ -25054,20 +25115,20 @@ export declare class ParentMenusApi extends BaseAPI {
25054
25115
  */
25055
25116
  export declare const PaymentGatewayApiAxiosParamCreator: (configuration?: Configuration) => {
25056
25117
  /**
25057
- * Creates a payment order using specified or default payment gateway
25058
- * @summary Create a new payment order
25059
- * @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
25118
+ * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
25119
+ * @summary Get available credit plans
25060
25120
  * @param {*} [options] Override http request option.
25061
25121
  * @throws {RequiredError}
25062
25122
  */
25063
- paymentGatewayCreateOrderPost: (dataTypesCreatePaymentOrderRequest: DataTypesCreatePaymentOrderRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25123
+ adminPaymentGatewayCreditPlansGet: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25064
25124
  /**
25065
- * Returns list of all active credit plans for purchase
25066
- * @summary Get available credit plans
25125
+ * Creates a payment order using specified or default payment gateway
25126
+ * @summary Create a new payment order
25127
+ * @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
25067
25128
  * @param {*} [options] Override http request option.
25068
25129
  * @throws {RequiredError}
25069
25130
  */
25070
- paymentGatewayCreditPlansGet: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25131
+ paymentGatewayCreateOrderPost: (dataTypesCreatePaymentOrderRequest: DataTypesCreatePaymentOrderRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25071
25132
  /**
25072
25133
  * Returns list of all available payment gateways
25073
25134
  * @summary Get available payment gateways
@@ -25091,6 +25152,13 @@ export declare const PaymentGatewayApiAxiosParamCreator: (configuration?: Config
25091
25152
  * @throws {RequiredError}
25092
25153
  */
25093
25154
  paymentGatewayVerifyPost: (dataTypesVerifyPaymentRequest: DataTypesVerifyPaymentRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25155
+ /**
25156
+ * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
25157
+ * @summary Get available credit plans
25158
+ * @param {*} [options] Override http request option.
25159
+ * @throws {RequiredError}
25160
+ */
25161
+ v1CreditPlansGet: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25094
25162
  };
25095
25163
  /**
25096
25164
  * PaymentGatewayApi - functional programming interface
@@ -25098,20 +25166,20 @@ export declare const PaymentGatewayApiAxiosParamCreator: (configuration?: Config
25098
25166
  */
25099
25167
  export declare const PaymentGatewayApiFp: (configuration?: Configuration) => {
25100
25168
  /**
25101
- * Creates a payment order using specified or default payment gateway
25102
- * @summary Create a new payment order
25103
- * @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
25169
+ * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
25170
+ * @summary Get available credit plans
25104
25171
  * @param {*} [options] Override http request option.
25105
25172
  * @throws {RequiredError}
25106
25173
  */
25107
- paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest: DataTypesCreatePaymentOrderRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesCreatePaymentOrderResponse>>;
25174
+ adminPaymentGatewayCreditPlansGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DataTypesCreditPlan>>>;
25108
25175
  /**
25109
- * Returns list of all active credit plans for purchase
25110
- * @summary Get available credit plans
25176
+ * Creates a payment order using specified or default payment gateway
25177
+ * @summary Create a new payment order
25178
+ * @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
25111
25179
  * @param {*} [options] Override http request option.
25112
25180
  * @throws {RequiredError}
25113
25181
  */
25114
- paymentGatewayCreditPlansGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DataTypesCreditPlan>>>;
25182
+ paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest: DataTypesCreatePaymentOrderRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesCreatePaymentOrderResponse>>;
25115
25183
  /**
25116
25184
  * Returns list of all available payment gateways
25117
25185
  * @summary Get available payment gateways
@@ -25135,6 +25203,13 @@ export declare const PaymentGatewayApiFp: (configuration?: Configuration) => {
25135
25203
  * @throws {RequiredError}
25136
25204
  */
25137
25205
  paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest: DataTypesVerifyPaymentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesPaymentStatusResponse>>;
25206
+ /**
25207
+ * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
25208
+ * @summary Get available credit plans
25209
+ * @param {*} [options] Override http request option.
25210
+ * @throws {RequiredError}
25211
+ */
25212
+ v1CreditPlansGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DataTypesCreditPlan>>>;
25138
25213
  };
25139
25214
  /**
25140
25215
  * PaymentGatewayApi - factory interface
@@ -25142,20 +25217,20 @@ export declare const PaymentGatewayApiFp: (configuration?: Configuration) => {
25142
25217
  */
25143
25218
  export declare const PaymentGatewayApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
25144
25219
  /**
25145
- * Creates a payment order using specified or default payment gateway
25146
- * @summary Create a new payment order
25147
- * @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
25220
+ * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
25221
+ * @summary Get available credit plans
25148
25222
  * @param {*} [options] Override http request option.
25149
25223
  * @throws {RequiredError}
25150
25224
  */
25151
- paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest: DataTypesCreatePaymentOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesCreatePaymentOrderResponse>;
25225
+ adminPaymentGatewayCreditPlansGet(options?: RawAxiosRequestConfig): AxiosPromise<Array<DataTypesCreditPlan>>;
25152
25226
  /**
25153
- * Returns list of all active credit plans for purchase
25154
- * @summary Get available credit plans
25227
+ * Creates a payment order using specified or default payment gateway
25228
+ * @summary Create a new payment order
25229
+ * @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
25155
25230
  * @param {*} [options] Override http request option.
25156
25231
  * @throws {RequiredError}
25157
25232
  */
25158
- paymentGatewayCreditPlansGet(options?: RawAxiosRequestConfig): AxiosPromise<Array<DataTypesCreditPlan>>;
25233
+ paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest: DataTypesCreatePaymentOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesCreatePaymentOrderResponse>;
25159
25234
  /**
25160
25235
  * Returns list of all available payment gateways
25161
25236
  * @summary Get available payment gateways
@@ -25179,6 +25254,13 @@ export declare const PaymentGatewayApiFactory: (configuration?: Configuration, b
25179
25254
  * @throws {RequiredError}
25180
25255
  */
25181
25256
  paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest: DataTypesVerifyPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesPaymentStatusResponse>;
25257
+ /**
25258
+ * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
25259
+ * @summary Get available credit plans
25260
+ * @param {*} [options] Override http request option.
25261
+ * @throws {RequiredError}
25262
+ */
25263
+ v1CreditPlansGet(options?: RawAxiosRequestConfig): AxiosPromise<Array<DataTypesCreditPlan>>;
25182
25264
  };
25183
25265
  /**
25184
25266
  * PaymentGatewayApi - object-oriented interface
@@ -25188,22 +25270,22 @@ export declare const PaymentGatewayApiFactory: (configuration?: Configuration, b
25188
25270
  */
25189
25271
  export declare class PaymentGatewayApi extends BaseAPI {
25190
25272
  /**
25191
- * Creates a payment order using specified or default payment gateway
25192
- * @summary Create a new payment order
25193
- * @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
25273
+ * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
25274
+ * @summary Get available credit plans
25194
25275
  * @param {*} [options] Override http request option.
25195
25276
  * @throws {RequiredError}
25196
25277
  * @memberof PaymentGatewayApi
25197
25278
  */
25198
- paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest: DataTypesCreatePaymentOrderRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesCreatePaymentOrderResponse, any, {}>>;
25279
+ adminPaymentGatewayCreditPlansGet(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesCreditPlan[], any, {}>>;
25199
25280
  /**
25200
- * Returns list of all active credit plans for purchase
25201
- * @summary Get available credit plans
25281
+ * Creates a payment order using specified or default payment gateway
25282
+ * @summary Create a new payment order
25283
+ * @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
25202
25284
  * @param {*} [options] Override http request option.
25203
25285
  * @throws {RequiredError}
25204
25286
  * @memberof PaymentGatewayApi
25205
25287
  */
25206
- paymentGatewayCreditPlansGet(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesCreditPlan[], any, {}>>;
25288
+ paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest: DataTypesCreatePaymentOrderRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesCreatePaymentOrderResponse, any, {}>>;
25207
25289
  /**
25208
25290
  * Returns list of all available payment gateways
25209
25291
  * @summary Get available payment gateways
@@ -25230,6 +25312,14 @@ export declare class PaymentGatewayApi extends BaseAPI {
25230
25312
  * @memberof PaymentGatewayApi
25231
25313
  */
25232
25314
  paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest: DataTypesVerifyPaymentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesPaymentStatusResponse, any, {}>>;
25315
+ /**
25316
+ * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
25317
+ * @summary Get available credit plans
25318
+ * @param {*} [options] Override http request option.
25319
+ * @throws {RequiredError}
25320
+ * @memberof PaymentGatewayApi
25321
+ */
25322
+ v1CreditPlansGet(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesCreditPlan[], any, {}>>;
25233
25323
  }
25234
25324
  /**
25235
25325
  * PaymentsApi - axios parameter creator
package/dist/esm/api.js CHANGED
@@ -6282,6 +6282,99 @@ export class BillingDashboardApi extends BaseAPI {
6282
6282
  return BillingDashboardApiFp(this.configuration).adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(this.axios, this.basePath));
6283
6283
  }
6284
6284
  }
6285
+ /**
6286
+ * CommonApi - axios parameter creator
6287
+ * @export
6288
+ */
6289
+ export const CommonApiAxiosParamCreator = function (configuration) {
6290
+ return {
6291
+ /**
6292
+ * Retrieve list of supported languages for query suggestions with language codes, names, and locales
6293
+ * @summary Get Supported Languages
6294
+ * @param {*} [options] Override http request option.
6295
+ * @throws {RequiredError}
6296
+ */
6297
+ commonLanguagesGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6298
+ const localVarPath = `/common/languages`;
6299
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6300
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6301
+ let baseOptions;
6302
+ if (configuration) {
6303
+ baseOptions = configuration.baseOptions;
6304
+ }
6305
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6306
+ const localVarHeaderParameter = {};
6307
+ const localVarQueryParameter = {};
6308
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6309
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6310
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6311
+ return {
6312
+ url: toPathString(localVarUrlObj),
6313
+ options: localVarRequestOptions,
6314
+ };
6315
+ }),
6316
+ };
6317
+ };
6318
+ /**
6319
+ * CommonApi - functional programming interface
6320
+ * @export
6321
+ */
6322
+ export const CommonApiFp = function (configuration) {
6323
+ const localVarAxiosParamCreator = CommonApiAxiosParamCreator(configuration);
6324
+ return {
6325
+ /**
6326
+ * Retrieve list of supported languages for query suggestions with language codes, names, and locales
6327
+ * @summary Get Supported Languages
6328
+ * @param {*} [options] Override http request option.
6329
+ * @throws {RequiredError}
6330
+ */
6331
+ commonLanguagesGet(options) {
6332
+ return __awaiter(this, void 0, void 0, function* () {
6333
+ var _a, _b, _c;
6334
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.commonLanguagesGet(options);
6335
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6336
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CommonApi.commonLanguagesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6337
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6338
+ });
6339
+ },
6340
+ };
6341
+ };
6342
+ /**
6343
+ * CommonApi - factory interface
6344
+ * @export
6345
+ */
6346
+ export const CommonApiFactory = function (configuration, basePath, axios) {
6347
+ const localVarFp = CommonApiFp(configuration);
6348
+ return {
6349
+ /**
6350
+ * Retrieve list of supported languages for query suggestions with language codes, names, and locales
6351
+ * @summary Get Supported Languages
6352
+ * @param {*} [options] Override http request option.
6353
+ * @throws {RequiredError}
6354
+ */
6355
+ commonLanguagesGet(options) {
6356
+ return localVarFp.commonLanguagesGet(options).then((request) => request(axios, basePath));
6357
+ },
6358
+ };
6359
+ };
6360
+ /**
6361
+ * CommonApi - object-oriented interface
6362
+ * @export
6363
+ * @class CommonApi
6364
+ * @extends {BaseAPI}
6365
+ */
6366
+ export class CommonApi extends BaseAPI {
6367
+ /**
6368
+ * Retrieve list of supported languages for query suggestions with language codes, names, and locales
6369
+ * @summary Get Supported Languages
6370
+ * @param {*} [options] Override http request option.
6371
+ * @throws {RequiredError}
6372
+ * @memberof CommonApi
6373
+ */
6374
+ commonLanguagesGet(options) {
6375
+ return CommonApiFp(this.configuration).commonLanguagesGet(options).then((request) => request(this.axios, this.basePath));
6376
+ }
6377
+ }
6285
6378
  /**
6286
6379
  * ConnectorsApi - axios parameter creator
6287
6380
  * @export
@@ -13741,59 +13834,57 @@ export class ParentMenusApi extends BaseAPI {
13741
13834
  export const PaymentGatewayApiAxiosParamCreator = function (configuration) {
13742
13835
  return {
13743
13836
  /**
13744
- * Creates a payment order using specified or default payment gateway
13745
- * @summary Create a new payment order
13746
- * @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
13837
+ * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
13838
+ * @summary Get available credit plans
13747
13839
  * @param {*} [options] Override http request option.
13748
13840
  * @throws {RequiredError}
13749
13841
  */
13750
- paymentGatewayCreateOrderPost: (dataTypesCreatePaymentOrderRequest_1, ...args_1) => __awaiter(this, [dataTypesCreatePaymentOrderRequest_1, ...args_1], void 0, function* (dataTypesCreatePaymentOrderRequest, options = {}) {
13751
- // verify required parameter 'dataTypesCreatePaymentOrderRequest' is not null or undefined
13752
- assertParamExists('paymentGatewayCreateOrderPost', 'dataTypesCreatePaymentOrderRequest', dataTypesCreatePaymentOrderRequest);
13753
- const localVarPath = `/payment-gateway/create-order`;
13842
+ adminPaymentGatewayCreditPlansGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
13843
+ const localVarPath = `/admin/payment-gateway/credit-plans`;
13754
13844
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
13755
13845
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13756
13846
  let baseOptions;
13757
13847
  if (configuration) {
13758
13848
  baseOptions = configuration.baseOptions;
13759
13849
  }
13760
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
13850
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
13761
13851
  const localVarHeaderParameter = {};
13762
13852
  const localVarQueryParameter = {};
13763
- // authentication BearerAuth required
13764
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
13765
- localVarHeaderParameter['Content-Type'] = 'application/json';
13766
13853
  setSearchParams(localVarUrlObj, localVarQueryParameter);
13767
13854
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13768
13855
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13769
- localVarRequestOptions.data = serializeDataIfNeeded(dataTypesCreatePaymentOrderRequest, localVarRequestOptions, configuration);
13770
13856
  return {
13771
13857
  url: toPathString(localVarUrlObj),
13772
13858
  options: localVarRequestOptions,
13773
13859
  };
13774
13860
  }),
13775
13861
  /**
13776
- * Returns list of all active credit plans for purchase
13777
- * @summary Get available credit plans
13862
+ * Creates a payment order using specified or default payment gateway
13863
+ * @summary Create a new payment order
13864
+ * @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
13778
13865
  * @param {*} [options] Override http request option.
13779
13866
  * @throws {RequiredError}
13780
13867
  */
13781
- paymentGatewayCreditPlansGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
13782
- const localVarPath = `/payment-gateway/credit-plans`;
13868
+ paymentGatewayCreateOrderPost: (dataTypesCreatePaymentOrderRequest_1, ...args_1) => __awaiter(this, [dataTypesCreatePaymentOrderRequest_1, ...args_1], void 0, function* (dataTypesCreatePaymentOrderRequest, options = {}) {
13869
+ // verify required parameter 'dataTypesCreatePaymentOrderRequest' is not null or undefined
13870
+ assertParamExists('paymentGatewayCreateOrderPost', 'dataTypesCreatePaymentOrderRequest', dataTypesCreatePaymentOrderRequest);
13871
+ const localVarPath = `/payment-gateway/create-order`;
13783
13872
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
13784
13873
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13785
13874
  let baseOptions;
13786
13875
  if (configuration) {
13787
13876
  baseOptions = configuration.baseOptions;
13788
13877
  }
13789
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
13878
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
13790
13879
  const localVarHeaderParameter = {};
13791
13880
  const localVarQueryParameter = {};
13792
13881
  // authentication BearerAuth required
13793
13882
  yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
13883
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13794
13884
  setSearchParams(localVarUrlObj, localVarQueryParameter);
13795
13885
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13796
13886
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13887
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesCreatePaymentOrderRequest, localVarRequestOptions, configuration);
13797
13888
  return {
13798
13889
  url: toPathString(localVarUrlObj),
13799
13890
  options: localVarRequestOptions,
@@ -13890,6 +13981,31 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration) {
13890
13981
  options: localVarRequestOptions,
13891
13982
  };
13892
13983
  }),
13984
+ /**
13985
+ * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
13986
+ * @summary Get available credit plans
13987
+ * @param {*} [options] Override http request option.
13988
+ * @throws {RequiredError}
13989
+ */
13990
+ v1CreditPlansGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
13991
+ const localVarPath = `/v1/credit-plans`;
13992
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13993
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13994
+ let baseOptions;
13995
+ if (configuration) {
13996
+ baseOptions = configuration.baseOptions;
13997
+ }
13998
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
13999
+ const localVarHeaderParameter = {};
14000
+ const localVarQueryParameter = {};
14001
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14002
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14003
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14004
+ return {
14005
+ url: toPathString(localVarUrlObj),
14006
+ options: localVarRequestOptions,
14007
+ };
14008
+ }),
13893
14009
  };
13894
14010
  };
13895
14011
  /**
@@ -13900,33 +14016,33 @@ export const PaymentGatewayApiFp = function (configuration) {
13900
14016
  const localVarAxiosParamCreator = PaymentGatewayApiAxiosParamCreator(configuration);
13901
14017
  return {
13902
14018
  /**
13903
- * Creates a payment order using specified or default payment gateway
13904
- * @summary Create a new payment order
13905
- * @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
14019
+ * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
14020
+ * @summary Get available credit plans
13906
14021
  * @param {*} [options] Override http request option.
13907
14022
  * @throws {RequiredError}
13908
14023
  */
13909
- paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options) {
14024
+ adminPaymentGatewayCreditPlansGet(options) {
13910
14025
  return __awaiter(this, void 0, void 0, function* () {
13911
14026
  var _a, _b, _c;
13912
- const localVarAxiosArgs = yield localVarAxiosParamCreator.paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options);
14027
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminPaymentGatewayCreditPlansGet(options);
13913
14028
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13914
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentGatewayApi.paymentGatewayCreateOrderPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
14029
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentGatewayApi.adminPaymentGatewayCreditPlansGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13915
14030
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13916
14031
  });
13917
14032
  },
13918
14033
  /**
13919
- * Returns list of all active credit plans for purchase
13920
- * @summary Get available credit plans
14034
+ * Creates a payment order using specified or default payment gateway
14035
+ * @summary Create a new payment order
14036
+ * @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
13921
14037
  * @param {*} [options] Override http request option.
13922
14038
  * @throws {RequiredError}
13923
14039
  */
13924
- paymentGatewayCreditPlansGet(options) {
14040
+ paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options) {
13925
14041
  return __awaiter(this, void 0, void 0, function* () {
13926
14042
  var _a, _b, _c;
13927
- const localVarAxiosArgs = yield localVarAxiosParamCreator.paymentGatewayCreditPlansGet(options);
14043
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options);
13928
14044
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13929
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentGatewayApi.paymentGatewayCreditPlansGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
14045
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentGatewayApi.paymentGatewayCreateOrderPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13930
14046
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13931
14047
  });
13932
14048
  },
@@ -13977,6 +14093,21 @@ export const PaymentGatewayApiFp = function (configuration) {
13977
14093
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13978
14094
  });
13979
14095
  },
14096
+ /**
14097
+ * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
14098
+ * @summary Get available credit plans
14099
+ * @param {*} [options] Override http request option.
14100
+ * @throws {RequiredError}
14101
+ */
14102
+ v1CreditPlansGet(options) {
14103
+ return __awaiter(this, void 0, void 0, function* () {
14104
+ var _a, _b, _c;
14105
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1CreditPlansGet(options);
14106
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
14107
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentGatewayApi.v1CreditPlansGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
14108
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14109
+ });
14110
+ },
13980
14111
  };
13981
14112
  };
13982
14113
  /**
@@ -13987,23 +14118,23 @@ export const PaymentGatewayApiFactory = function (configuration, basePath, axios
13987
14118
  const localVarFp = PaymentGatewayApiFp(configuration);
13988
14119
  return {
13989
14120
  /**
13990
- * Creates a payment order using specified or default payment gateway
13991
- * @summary Create a new payment order
13992
- * @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
14121
+ * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
14122
+ * @summary Get available credit plans
13993
14123
  * @param {*} [options] Override http request option.
13994
14124
  * @throws {RequiredError}
13995
14125
  */
13996
- paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options) {
13997
- return localVarFp.paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options).then((request) => request(axios, basePath));
14126
+ adminPaymentGatewayCreditPlansGet(options) {
14127
+ return localVarFp.adminPaymentGatewayCreditPlansGet(options).then((request) => request(axios, basePath));
13998
14128
  },
13999
14129
  /**
14000
- * Returns list of all active credit plans for purchase
14001
- * @summary Get available credit plans
14130
+ * Creates a payment order using specified or default payment gateway
14131
+ * @summary Create a new payment order
14132
+ * @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
14002
14133
  * @param {*} [options] Override http request option.
14003
14134
  * @throws {RequiredError}
14004
14135
  */
14005
- paymentGatewayCreditPlansGet(options) {
14006
- return localVarFp.paymentGatewayCreditPlansGet(options).then((request) => request(axios, basePath));
14136
+ paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options) {
14137
+ return localVarFp.paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options).then((request) => request(axios, basePath));
14007
14138
  },
14008
14139
  /**
14009
14140
  * Returns list of all available payment gateways
@@ -14034,6 +14165,15 @@ export const PaymentGatewayApiFactory = function (configuration, basePath, axios
14034
14165
  paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options) {
14035
14166
  return localVarFp.paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options).then((request) => request(axios, basePath));
14036
14167
  },
14168
+ /**
14169
+ * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
14170
+ * @summary Get available credit plans
14171
+ * @param {*} [options] Override http request option.
14172
+ * @throws {RequiredError}
14173
+ */
14174
+ v1CreditPlansGet(options) {
14175
+ return localVarFp.v1CreditPlansGet(options).then((request) => request(axios, basePath));
14176
+ },
14037
14177
  };
14038
14178
  };
14039
14179
  /**
@@ -14044,25 +14184,25 @@ export const PaymentGatewayApiFactory = function (configuration, basePath, axios
14044
14184
  */
14045
14185
  export class PaymentGatewayApi extends BaseAPI {
14046
14186
  /**
14047
- * Creates a payment order using specified or default payment gateway
14048
- * @summary Create a new payment order
14049
- * @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
14187
+ * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
14188
+ * @summary Get available credit plans
14050
14189
  * @param {*} [options] Override http request option.
14051
14190
  * @throws {RequiredError}
14052
14191
  * @memberof PaymentGatewayApi
14053
14192
  */
14054
- paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options) {
14055
- return PaymentGatewayApiFp(this.configuration).paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options).then((request) => request(this.axios, this.basePath));
14193
+ adminPaymentGatewayCreditPlansGet(options) {
14194
+ return PaymentGatewayApiFp(this.configuration).adminPaymentGatewayCreditPlansGet(options).then((request) => request(this.axios, this.basePath));
14056
14195
  }
14057
14196
  /**
14058
- * Returns list of all active credit plans for purchase
14059
- * @summary Get available credit plans
14197
+ * Creates a payment order using specified or default payment gateway
14198
+ * @summary Create a new payment order
14199
+ * @param {DataTypesCreatePaymentOrderRequest} dataTypesCreatePaymentOrderRequest Payment order details
14060
14200
  * @param {*} [options] Override http request option.
14061
14201
  * @throws {RequiredError}
14062
14202
  * @memberof PaymentGatewayApi
14063
14203
  */
14064
- paymentGatewayCreditPlansGet(options) {
14065
- return PaymentGatewayApiFp(this.configuration).paymentGatewayCreditPlansGet(options).then((request) => request(this.axios, this.basePath));
14204
+ paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options) {
14205
+ return PaymentGatewayApiFp(this.configuration).paymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options).then((request) => request(this.axios, this.basePath));
14066
14206
  }
14067
14207
  /**
14068
14208
  * Returns list of all available payment gateways
@@ -14096,6 +14236,16 @@ export class PaymentGatewayApi extends BaseAPI {
14096
14236
  paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options) {
14097
14237
  return PaymentGatewayApiFp(this.configuration).paymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options).then((request) => request(this.axios, this.basePath));
14098
14238
  }
14239
+ /**
14240
+ * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
14241
+ * @summary Get available credit plans
14242
+ * @param {*} [options] Override http request option.
14243
+ * @throws {RequiredError}
14244
+ * @memberof PaymentGatewayApi
14245
+ */
14246
+ v1CreditPlansGet(options) {
14247
+ return PaymentGatewayApiFp(this.configuration).v1CreditPlansGet(options).then((request) => request(this.axios, this.basePath));
14248
+ }
14099
14249
  }
14100
14250
  /**
14101
14251
  * PaymentsApi - axios parameter creator
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seekora-ai/admin-api",
3
- "version": "1.0.67",
3
+ "version": "1.0.69",
4
4
  "description": "OpenAPI client for @seekora-ai/admin-api",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
Binary file
Binary file