@handsondigital/idplugger-admin 2.7.0 → 2.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @handsondigital/idplugger-admin@2.7.0
1
+ ## @handsondigital/idplugger-admin@2.7.1
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @handsondigital/idplugger-admin@2.7.0 --save
39
+ npm install @handsondigital/idplugger-admin@2.7.1 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/api.ts CHANGED
@@ -4963,10 +4963,11 @@ export const ConfigsApiAxiosParamCreator = function (configuration?: Configurati
4963
4963
  * @param {string} [grupo] Filtrar por grupo
4964
4964
  * @param {AdminPromotionConfigsIndexTypeEnum} [type] Filtrar por tipo
4965
4965
  * @param {number} [perPage] Itens por página
4966
+ * @param {number} [page] Número da página
4966
4967
  * @param {*} [options] Override http request option.
4967
4968
  * @throws {RequiredError}
4968
4969
  */
4969
- adminPromotionConfigsIndex: async (promotionId: string, key?: string, grupo?: string, type?: AdminPromotionConfigsIndexTypeEnum, perPage?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4970
+ adminPromotionConfigsIndex: async (promotionId: string, key?: string, grupo?: string, type?: AdminPromotionConfigsIndexTypeEnum, perPage?: number, page?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4970
4971
  // verify required parameter 'promotionId' is not null or undefined
4971
4972
  assertParamExists('adminPromotionConfigsIndex', 'promotionId', promotionId)
4972
4973
  const localVarPath = `/v3/admin/promotion/{promotion_id}/configs`
@@ -5002,6 +5003,10 @@ export const ConfigsApiAxiosParamCreator = function (configuration?: Configurati
5002
5003
  localVarQueryParameter['_per_page'] = perPage;
5003
5004
  }
5004
5005
 
5006
+ if (page !== undefined) {
5007
+ localVarQueryParameter['page'] = page;
5008
+ }
5009
+
5005
5010
 
5006
5011
 
5007
5012
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -5247,11 +5252,12 @@ export const ConfigsApiFp = function(configuration?: Configuration) {
5247
5252
  * @param {string} [grupo] Filtrar por grupo
5248
5253
  * @param {AdminPromotionConfigsIndexTypeEnum} [type] Filtrar por tipo
5249
5254
  * @param {number} [perPage] Itens por página
5255
+ * @param {number} [page] Número da página
5250
5256
  * @param {*} [options] Override http request option.
5251
5257
  * @throws {RequiredError}
5252
5258
  */
5253
- async adminPromotionConfigsIndex(promotionId: string, key?: string, grupo?: string, type?: AdminPromotionConfigsIndexTypeEnum, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminPromotionConfigsIndex200Response>> {
5254
- const localVarAxiosArgs = await localVarAxiosParamCreator.adminPromotionConfigsIndex(promotionId, key, grupo, type, perPage, options);
5259
+ async adminPromotionConfigsIndex(promotionId: string, key?: string, grupo?: string, type?: AdminPromotionConfigsIndexTypeEnum, perPage?: number, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminPromotionConfigsIndex200Response>> {
5260
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminPromotionConfigsIndex(promotionId, key, grupo, type, perPage, page, options);
5255
5261
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5256
5262
  const localVarOperationServerBasePath = operationServerMap['ConfigsApi.adminPromotionConfigsIndex']?.[localVarOperationServerIndex]?.url;
5257
5263
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -5344,7 +5350,7 @@ export const ConfigsApiFactory = function (configuration?: Configuration, basePa
5344
5350
  * @throws {RequiredError}
5345
5351
  */
5346
5352
  adminPromotionConfigsIndex(requestParameters: ConfigsApiAdminPromotionConfigsIndexRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminPromotionConfigsIndex200Response> {
5347
- return localVarFp.adminPromotionConfigsIndex(requestParameters.promotionId, requestParameters.key, requestParameters.grupo, requestParameters.type, requestParameters.perPage, options).then((request) => request(axios, basePath));
5353
+ return localVarFp.adminPromotionConfigsIndex(requestParameters.promotionId, requestParameters.key, requestParameters.grupo, requestParameters.type, requestParameters.perPage, requestParameters.page, options).then((request) => request(axios, basePath));
5348
5354
  },
5349
5355
  /**
5350
5356
  *
@@ -5439,6 +5445,13 @@ export interface ConfigsApiAdminPromotionConfigsIndexRequest {
5439
5445
  * @memberof ConfigsApiAdminPromotionConfigsIndex
5440
5446
  */
5441
5447
  readonly perPage?: number
5448
+
5449
+ /**
5450
+ * Número da página
5451
+ * @type {number}
5452
+ * @memberof ConfigsApiAdminPromotionConfigsIndex
5453
+ */
5454
+ readonly page?: number
5442
5455
  }
5443
5456
 
5444
5457
  /**
@@ -5562,7 +5575,7 @@ export class ConfigsApi extends BaseAPI {
5562
5575
  * @memberof ConfigsApi
5563
5576
  */
5564
5577
  public adminPromotionConfigsIndex(requestParameters: ConfigsApiAdminPromotionConfigsIndexRequest, options?: RawAxiosRequestConfig) {
5565
- return ConfigsApiFp(this.configuration).adminPromotionConfigsIndex(requestParameters.promotionId, requestParameters.key, requestParameters.grupo, requestParameters.type, requestParameters.perPage, options).then((request) => request(this.axios, this.basePath));
5578
+ return ConfigsApiFp(this.configuration).adminPromotionConfigsIndex(requestParameters.promotionId, requestParameters.key, requestParameters.grupo, requestParameters.type, requestParameters.perPage, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
5566
5579
  }
5567
5580
 
5568
5581
  /**
package/dist/api.d.ts CHANGED
@@ -4618,10 +4618,11 @@ export declare const ConfigsApiAxiosParamCreator: (configuration?: Configuration
4618
4618
  * @param {string} [grupo] Filtrar por grupo
4619
4619
  * @param {AdminPromotionConfigsIndexTypeEnum} [type] Filtrar por tipo
4620
4620
  * @param {number} [perPage] Itens por página
4621
+ * @param {number} [page] Número da página
4621
4622
  * @param {*} [options] Override http request option.
4622
4623
  * @throws {RequiredError}
4623
4624
  */
4624
- adminPromotionConfigsIndex: (promotionId: string, key?: string, grupo?: string, type?: AdminPromotionConfigsIndexTypeEnum, perPage?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4625
+ adminPromotionConfigsIndex: (promotionId: string, key?: string, grupo?: string, type?: AdminPromotionConfigsIndexTypeEnum, perPage?: number, page?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4625
4626
  /**
4626
4627
  *
4627
4628
  * @summary Buscar configuração por chave
@@ -4681,10 +4682,11 @@ export declare const ConfigsApiFp: (configuration?: Configuration) => {
4681
4682
  * @param {string} [grupo] Filtrar por grupo
4682
4683
  * @param {AdminPromotionConfigsIndexTypeEnum} [type] Filtrar por tipo
4683
4684
  * @param {number} [perPage] Itens por página
4685
+ * @param {number} [page] Número da página
4684
4686
  * @param {*} [options] Override http request option.
4685
4687
  * @throws {RequiredError}
4686
4688
  */
4687
- adminPromotionConfigsIndex(promotionId: string, key?: string, grupo?: string, type?: AdminPromotionConfigsIndexTypeEnum, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminPromotionConfigsIndex200Response>>;
4689
+ adminPromotionConfigsIndex(promotionId: string, key?: string, grupo?: string, type?: AdminPromotionConfigsIndexTypeEnum, perPage?: number, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminPromotionConfigsIndex200Response>>;
4688
4690
  /**
4689
4691
  *
4690
4692
  * @summary Buscar configuração por chave
@@ -4821,6 +4823,12 @@ export interface ConfigsApiAdminPromotionConfigsIndexRequest {
4821
4823
  * @memberof ConfigsApiAdminPromotionConfigsIndex
4822
4824
  */
4823
4825
  readonly perPage?: number;
4826
+ /**
4827
+ * Número da página
4828
+ * @type {number}
4829
+ * @memberof ConfigsApiAdminPromotionConfigsIndex
4830
+ */
4831
+ readonly page?: number;
4824
4832
  }
4825
4833
  /**
4826
4834
  * Request parameters for adminPromotionConfigsShow operation in ConfigsApi.
package/dist/api.js CHANGED
@@ -946,15 +946,16 @@ var ConfigsApiAxiosParamCreator = function (configuration) {
946
946
  * @param {string} [grupo] Filtrar por grupo
947
947
  * @param {AdminPromotionConfigsIndexTypeEnum} [type] Filtrar por tipo
948
948
  * @param {number} [perPage] Itens por página
949
+ * @param {number} [page] Número da página
949
950
  * @param {*} [options] Override http request option.
950
951
  * @throws {RequiredError}
951
952
  */
952
- adminPromotionConfigsIndex: function (promotionId_1, key_1, grupo_1, type_1, perPage_1) {
953
+ adminPromotionConfigsIndex: function (promotionId_1, key_1, grupo_1, type_1, perPage_1, page_1) {
953
954
  var args_1 = [];
954
- for (var _i = 5; _i < arguments.length; _i++) {
955
- args_1[_i - 5] = arguments[_i];
955
+ for (var _i = 6; _i < arguments.length; _i++) {
956
+ args_1[_i - 6] = arguments[_i];
956
957
  }
957
- return __awaiter(_this, __spreadArray([promotionId_1, key_1, grupo_1, type_1, perPage_1], args_1, true), void 0, function (promotionId, key, grupo, type, perPage, options) {
958
+ return __awaiter(_this, __spreadArray([promotionId_1, key_1, grupo_1, type_1, perPage_1, page_1], args_1, true), void 0, function (promotionId, key, grupo, type, perPage, page, options) {
958
959
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
959
960
  if (options === void 0) { options = {}; }
960
961
  return __generator(this, function (_a) {
@@ -990,6 +991,9 @@ var ConfigsApiAxiosParamCreator = function (configuration) {
990
991
  if (perPage !== undefined) {
991
992
  localVarQueryParameter['_per_page'] = perPage;
992
993
  }
994
+ if (page !== undefined) {
995
+ localVarQueryParameter['page'] = page;
996
+ }
993
997
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
994
998
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
995
999
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -1277,16 +1281,17 @@ var ConfigsApiFp = function (configuration) {
1277
1281
  * @param {string} [grupo] Filtrar por grupo
1278
1282
  * @param {AdminPromotionConfigsIndexTypeEnum} [type] Filtrar por tipo
1279
1283
  * @param {number} [perPage] Itens por página
1284
+ * @param {number} [page] Número da página
1280
1285
  * @param {*} [options] Override http request option.
1281
1286
  * @throws {RequiredError}
1282
1287
  */
1283
- adminPromotionConfigsIndex: function (promotionId, key, grupo, type, perPage, options) {
1288
+ adminPromotionConfigsIndex: function (promotionId, key, grupo, type, perPage, page, options) {
1284
1289
  return __awaiter(this, void 0, void 0, function () {
1285
1290
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1286
1291
  var _a, _b, _c;
1287
1292
  return __generator(this, function (_d) {
1288
1293
  switch (_d.label) {
1289
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.adminPromotionConfigsIndex(promotionId, key, grupo, type, perPage, options)];
1294
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.adminPromotionConfigsIndex(promotionId, key, grupo, type, perPage, page, options)];
1290
1295
  case 1:
1291
1296
  localVarAxiosArgs = _d.sent();
1292
1297
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -1434,7 +1439,7 @@ var ConfigsApiFactory = function (configuration, basePath, axios) {
1434
1439
  * @throws {RequiredError}
1435
1440
  */
1436
1441
  adminPromotionConfigsIndex: function (requestParameters, options) {
1437
- return localVarFp.adminPromotionConfigsIndex(requestParameters.promotionId, requestParameters.key, requestParameters.grupo, requestParameters.type, requestParameters.perPage, options).then(function (request) { return request(axios, basePath); });
1442
+ return localVarFp.adminPromotionConfigsIndex(requestParameters.promotionId, requestParameters.key, requestParameters.grupo, requestParameters.type, requestParameters.perPage, requestParameters.page, options).then(function (request) { return request(axios, basePath); });
1438
1443
  },
1439
1444
  /**
1440
1445
  *
@@ -1510,7 +1515,7 @@ var ConfigsApi = /** @class */ (function (_super) {
1510
1515
  */
1511
1516
  ConfigsApi.prototype.adminPromotionConfigsIndex = function (requestParameters, options) {
1512
1517
  var _this = this;
1513
- return (0, exports.ConfigsApiFp)(this.configuration).adminPromotionConfigsIndex(requestParameters.promotionId, requestParameters.key, requestParameters.grupo, requestParameters.type, requestParameters.perPage, options).then(function (request) { return request(_this.axios, _this.basePath); });
1518
+ return (0, exports.ConfigsApiFp)(this.configuration).adminPromotionConfigsIndex(requestParameters.promotionId, requestParameters.key, requestParameters.grupo, requestParameters.type, requestParameters.perPage, requestParameters.page, options).then(function (request) { return request(_this.axios, _this.basePath); });
1514
1519
  };
1515
1520
  /**
1516
1521
  *
@@ -31,13 +31,15 @@ let key: string; //Filtrar por chave (busca parcial) (optional) (default to unde
31
31
  let grupo: string; //Filtrar por grupo (optional) (default to undefined)
32
32
  let type: 'text' | 'uuid' | 'html' | 'url' | 'path_url' | 'integer' | 'double' | 'file' | 'json' | 'date' | 'datetime'; //Filtrar por tipo (optional) (default to undefined)
33
33
  let perPage: number; //Itens por página (optional) (default to 15)
34
+ let page: number; //Número da página (optional) (default to 1)
34
35
 
35
36
  const { status, data } = await apiInstance.adminPromotionConfigsIndex(
36
37
  promotionId,
37
38
  key,
38
39
  grupo,
39
40
  type,
40
- perPage
41
+ perPage,
42
+ page
41
43
  );
42
44
  ```
43
45
 
@@ -50,6 +52,7 @@ const { status, data } = await apiInstance.adminPromotionConfigsIndex(
50
52
  | **grupo** | [**string**] | Filtrar por grupo | (optional) defaults to undefined|
51
53
  | **type** | [**&#39;text&#39; | &#39;uuid&#39; | &#39;html&#39; | &#39;url&#39; | &#39;path_url&#39; | &#39;integer&#39; | &#39;double&#39; | &#39;file&#39; | &#39;json&#39; | &#39;date&#39; | &#39;datetime&#39;**]**Array<&#39;text&#39; &#124; &#39;uuid&#39; &#124; &#39;html&#39; &#124; &#39;url&#39; &#124; &#39;path_url&#39; &#124; &#39;integer&#39; &#124; &#39;double&#39; &#124; &#39;file&#39; &#124; &#39;json&#39; &#124; &#39;date&#39; &#124; &#39;datetime&#39;>** | Filtrar por tipo | (optional) defaults to undefined|
52
54
  | **perPage** | [**number**] | Itens por página | (optional) defaults to 15|
55
+ | **page** | [**number**] | Número da página | (optional) defaults to 1|
53
56
 
54
57
 
55
58
  ### Return type
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@handsondigital/idplugger-admin",
3
- "version": "2.7.0",
3
+ "version": "2.7.1",
4
4
  "description": "OpenAPI client for @handsondigital/idplugger-admin",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {