@handsondigital/idplugger-admin 2.5.0 → 2.6.0

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.
@@ -43,6 +43,8 @@ docs/AdminServiceCustomerApplications200ResponseContentInnerWorkflowSchedulesInn
43
43
  docs/AdminServiceCustomerApplications200ResponseContentInnerWorkflowSchedulesInnerWorkflow.md
44
44
  docs/AdminServiceCustomerBrands200Response.md
45
45
  docs/AdminServiceCustomerBrands200ResponseContentInner.md
46
+ docs/AdminServiceCustomerCampaigns200Response.md
47
+ docs/AdminServiceCustomerCampaigns200ResponseContentInner.md
46
48
  docs/AdminServiceCustomerClients200Response.md
47
49
  docs/AdminServiceCustomerClients200ResponseContentInner.md
48
50
  docs/AdminServiceCustomerClients200ResponsePaging.md
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @handsondigital/idplugger-admin@2.5.0
1
+ ## @handsondigital/idplugger-admin@2.6.0
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.5.0 --save
39
+ npm install @handsondigital/idplugger-admin@2.6.0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -60,6 +60,7 @@ Class | Method | HTTP request | Description
60
60
  *AuthApi* | [**authRefreshToken**](docs/AuthApi.md#authrefreshtoken) | **POST** /admin/auth/refresh | Renova o do token de autenticação
61
61
  *CustomerServiceApi* | [**adminServiceCustomerApplications**](docs/CustomerServiceApi.md#adminservicecustomerapplications) | **GET** /admin/service/customer/applications/{client_id} | Listar aplicações de um cliente no serviço de atendimento ao cliente
62
62
  *CustomerServiceApi* | [**adminServiceCustomerBrands**](docs/CustomerServiceApi.md#adminservicecustomerbrands) | **GET** /admin/service/customer/brands/{client_id} | Listar marcas de um cliente do serviço de atendimento ao cliente
63
+ *CustomerServiceApi* | [**adminServiceCustomerCampaigns**](docs/CustomerServiceApi.md#adminservicecustomercampaigns) | **GET** /admin/service/customer/campaigns/{client_id} | Listar campanhas de um cliente no serviço de atendimento ao cliente
63
64
  *CustomerServiceApi* | [**adminServiceCustomerClients**](docs/CustomerServiceApi.md#adminservicecustomerclients) | **GET** /admin/service/customer/clients | Listar clientes do serviço de atendimento ao cliente
64
65
  *ErrorReportsApi* | [**adminErrorsGet**](docs/ErrorReportsApi.md#adminerrorsget) | **GET** /admin/errors | List error reports
65
66
  *ErrorReportsApi* | [**adminErrorsIdDelete**](docs/ErrorReportsApi.md#adminerrorsiddelete) | **DELETE** /admin/errors/{id} | Delete error report
@@ -138,6 +139,8 @@ Class | Method | HTTP request | Description
138
139
  - [AdminServiceCustomerApplications200ResponseContentInnerWorkflowSchedulesInnerWorkflow](docs/AdminServiceCustomerApplications200ResponseContentInnerWorkflowSchedulesInnerWorkflow.md)
139
140
  - [AdminServiceCustomerBrands200Response](docs/AdminServiceCustomerBrands200Response.md)
140
141
  - [AdminServiceCustomerBrands200ResponseContentInner](docs/AdminServiceCustomerBrands200ResponseContentInner.md)
142
+ - [AdminServiceCustomerCampaigns200Response](docs/AdminServiceCustomerCampaigns200Response.md)
143
+ - [AdminServiceCustomerCampaigns200ResponseContentInner](docs/AdminServiceCustomerCampaigns200ResponseContentInner.md)
141
144
  - [AdminServiceCustomerClients200Response](docs/AdminServiceCustomerClients200Response.md)
142
145
  - [AdminServiceCustomerClients200ResponseContentInner](docs/AdminServiceCustomerClients200ResponseContentInner.md)
143
146
  - [AdminServiceCustomerClients200ResponsePaging](docs/AdminServiceCustomerClients200ResponsePaging.md)
package/api.ts CHANGED
@@ -1296,6 +1296,74 @@ export interface AdminServiceCustomerBrands200ResponseContentInner {
1296
1296
  */
1297
1297
  'client_id'?: number;
1298
1298
  }
1299
+ /**
1300
+ *
1301
+ * @export
1302
+ * @interface AdminServiceCustomerCampaigns200Response
1303
+ */
1304
+ export interface AdminServiceCustomerCampaigns200Response {
1305
+ /**
1306
+ *
1307
+ * @type {string}
1308
+ * @memberof AdminServiceCustomerCampaigns200Response
1309
+ */
1310
+ 'entity'?: string;
1311
+ /**
1312
+ *
1313
+ * @type {string}
1314
+ * @memberof AdminServiceCustomerCampaigns200Response
1315
+ */
1316
+ 'action'?: string;
1317
+ /**
1318
+ *
1319
+ * @type {Array<AdminServiceCustomerCampaigns200ResponseContentInner>}
1320
+ * @memberof AdminServiceCustomerCampaigns200Response
1321
+ */
1322
+ 'content'?: Array<AdminServiceCustomerCampaigns200ResponseContentInner>;
1323
+ /**
1324
+ *
1325
+ * @type {AdminServiceCustomerClients200ResponsePaging}
1326
+ * @memberof AdminServiceCustomerCampaigns200Response
1327
+ */
1328
+ 'paging'?: AdminServiceCustomerClients200ResponsePaging;
1329
+ }
1330
+ /**
1331
+ *
1332
+ * @export
1333
+ * @interface AdminServiceCustomerCampaigns200ResponseContentInner
1334
+ */
1335
+ export interface AdminServiceCustomerCampaigns200ResponseContentInner {
1336
+ /**
1337
+ *
1338
+ * @type {number}
1339
+ * @memberof AdminServiceCustomerCampaigns200ResponseContentInner
1340
+ */
1341
+ 'id'?: number;
1342
+ /**
1343
+ *
1344
+ * @type {string}
1345
+ * @memberof AdminServiceCustomerCampaigns200ResponseContentInner
1346
+ */
1347
+ 'promotion_id'?: string;
1348
+ /**
1349
+ *
1350
+ * @type {string}
1351
+ * @memberof AdminServiceCustomerCampaigns200ResponseContentInner
1352
+ */
1353
+ 'name'?: string;
1354
+ /**
1355
+ *
1356
+ * @type {string}
1357
+ * @memberof AdminServiceCustomerCampaigns200ResponseContentInner
1358
+ */
1359
+ 'status'?: string;
1360
+ /**
1361
+ *
1362
+ * @type {number}
1363
+ * @memberof AdminServiceCustomerCampaigns200ResponseContentInner
1364
+ */
1365
+ 'client_id'?: number;
1366
+ }
1299
1367
  /**
1300
1368
  *
1301
1369
  * @export
@@ -4567,6 +4635,64 @@ export const CustomerServiceApiAxiosParamCreator = function (configuration?: Con
4567
4635
 
4568
4636
 
4569
4637
 
4638
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4639
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4640
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4641
+
4642
+ return {
4643
+ url: toPathString(localVarUrlObj),
4644
+ options: localVarRequestOptions,
4645
+ };
4646
+ },
4647
+ /**
4648
+ * Retorna uma lista de campanhas de um cliente específico obtidas do serviço de atendimento ao cliente.
4649
+ * @summary Listar campanhas de um cliente no serviço de atendimento ao cliente
4650
+ * @param {string} clientId ID do cliente
4651
+ * @param {number} [page] Número da página
4652
+ * @param {number} [perPage] Itens por página
4653
+ * @param {string} [status] Status da campanha
4654
+ * @param {string} [name] Nome da campanha
4655
+ * @param {*} [options] Override http request option.
4656
+ * @throws {RequiredError}
4657
+ */
4658
+ adminServiceCustomerCampaigns: async (clientId: string, page?: number, perPage?: number, status?: string, name?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4659
+ // verify required parameter 'clientId' is not null or undefined
4660
+ assertParamExists('adminServiceCustomerCampaigns', 'clientId', clientId)
4661
+ const localVarPath = `/admin/service/customer/campaigns/{client_id}`
4662
+ .replace(`{${"client_id"}}`, encodeURIComponent(String(clientId)));
4663
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4664
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4665
+ let baseOptions;
4666
+ if (configuration) {
4667
+ baseOptions = configuration.baseOptions;
4668
+ }
4669
+
4670
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4671
+ const localVarHeaderParameter = {} as any;
4672
+ const localVarQueryParameter = {} as any;
4673
+
4674
+ // authentication bearerAuth required
4675
+ // http bearer authentication required
4676
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
4677
+
4678
+ if (page !== undefined) {
4679
+ localVarQueryParameter['page'] = page;
4680
+ }
4681
+
4682
+ if (perPage !== undefined) {
4683
+ localVarQueryParameter['perPage'] = perPage;
4684
+ }
4685
+
4686
+ if (status !== undefined) {
4687
+ localVarQueryParameter['status'] = status;
4688
+ }
4689
+
4690
+ if (name !== undefined) {
4691
+ localVarQueryParameter['name'] = name;
4692
+ }
4693
+
4694
+
4695
+
4570
4696
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4571
4697
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4572
4698
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -4671,6 +4797,23 @@ export const CustomerServiceApiFp = function(configuration?: Configuration) {
4671
4797
  const localVarOperationServerBasePath = operationServerMap['CustomerServiceApi.adminServiceCustomerBrands']?.[localVarOperationServerIndex]?.url;
4672
4798
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4673
4799
  },
4800
+ /**
4801
+ * Retorna uma lista de campanhas de um cliente específico obtidas do serviço de atendimento ao cliente.
4802
+ * @summary Listar campanhas de um cliente no serviço de atendimento ao cliente
4803
+ * @param {string} clientId ID do cliente
4804
+ * @param {number} [page] Número da página
4805
+ * @param {number} [perPage] Itens por página
4806
+ * @param {string} [status] Status da campanha
4807
+ * @param {string} [name] Nome da campanha
4808
+ * @param {*} [options] Override http request option.
4809
+ * @throws {RequiredError}
4810
+ */
4811
+ async adminServiceCustomerCampaigns(clientId: string, page?: number, perPage?: number, status?: string, name?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminServiceCustomerCampaigns200Response>> {
4812
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminServiceCustomerCampaigns(clientId, page, perPage, status, name, options);
4813
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4814
+ const localVarOperationServerBasePath = operationServerMap['CustomerServiceApi.adminServiceCustomerCampaigns']?.[localVarOperationServerIndex]?.url;
4815
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4816
+ },
4674
4817
  /**
4675
4818
  * Retorna uma lista de clientes obtidos do serviço de atendimento ao cliente.
4676
4819
  * @summary Listar clientes do serviço de atendimento ao cliente
@@ -4717,6 +4860,16 @@ export const CustomerServiceApiFactory = function (configuration?: Configuration
4717
4860
  adminServiceCustomerBrands(requestParameters: CustomerServiceApiAdminServiceCustomerBrandsRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminServiceCustomerBrands200Response> {
4718
4861
  return localVarFp.adminServiceCustomerBrands(requestParameters.clientId, requestParameters.search, requestParameters.page, requestParameters.perPage, options).then((request) => request(axios, basePath));
4719
4862
  },
4863
+ /**
4864
+ * Retorna uma lista de campanhas de um cliente específico obtidas do serviço de atendimento ao cliente.
4865
+ * @summary Listar campanhas de um cliente no serviço de atendimento ao cliente
4866
+ * @param {CustomerServiceApiAdminServiceCustomerCampaignsRequest} requestParameters Request parameters.
4867
+ * @param {*} [options] Override http request option.
4868
+ * @throws {RequiredError}
4869
+ */
4870
+ adminServiceCustomerCampaigns(requestParameters: CustomerServiceApiAdminServiceCustomerCampaignsRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminServiceCustomerCampaigns200Response> {
4871
+ return localVarFp.adminServiceCustomerCampaigns(requestParameters.clientId, requestParameters.page, requestParameters.perPage, requestParameters.status, requestParameters.name, options).then((request) => request(axios, basePath));
4872
+ },
4720
4873
  /**
4721
4874
  * Retorna uma lista de clientes obtidos do serviço de atendimento ao cliente.
4722
4875
  * @summary Listar clientes do serviço de atendimento ao cliente
@@ -4793,6 +4946,48 @@ export interface CustomerServiceApiAdminServiceCustomerBrandsRequest {
4793
4946
  readonly perPage?: number
4794
4947
  }
4795
4948
 
4949
+ /**
4950
+ * Request parameters for adminServiceCustomerCampaigns operation in CustomerServiceApi.
4951
+ * @export
4952
+ * @interface CustomerServiceApiAdminServiceCustomerCampaignsRequest
4953
+ */
4954
+ export interface CustomerServiceApiAdminServiceCustomerCampaignsRequest {
4955
+ /**
4956
+ * ID do cliente
4957
+ * @type {string}
4958
+ * @memberof CustomerServiceApiAdminServiceCustomerCampaigns
4959
+ */
4960
+ readonly clientId: string
4961
+
4962
+ /**
4963
+ * Número da página
4964
+ * @type {number}
4965
+ * @memberof CustomerServiceApiAdminServiceCustomerCampaigns
4966
+ */
4967
+ readonly page?: number
4968
+
4969
+ /**
4970
+ * Itens por página
4971
+ * @type {number}
4972
+ * @memberof CustomerServiceApiAdminServiceCustomerCampaigns
4973
+ */
4974
+ readonly perPage?: number
4975
+
4976
+ /**
4977
+ * Status da campanha
4978
+ * @type {string}
4979
+ * @memberof CustomerServiceApiAdminServiceCustomerCampaigns
4980
+ */
4981
+ readonly status?: string
4982
+
4983
+ /**
4984
+ * Nome da campanha
4985
+ * @type {string}
4986
+ * @memberof CustomerServiceApiAdminServiceCustomerCampaigns
4987
+ */
4988
+ readonly name?: string
4989
+ }
4990
+
4796
4991
  /**
4797
4992
  * Request parameters for adminServiceCustomerClients operation in CustomerServiceApi.
4798
4993
  * @export
@@ -4859,6 +5054,18 @@ export class CustomerServiceApi extends BaseAPI {
4859
5054
  return CustomerServiceApiFp(this.configuration).adminServiceCustomerBrands(requestParameters.clientId, requestParameters.search, requestParameters.page, requestParameters.perPage, options).then((request) => request(this.axios, this.basePath));
4860
5055
  }
4861
5056
 
5057
+ /**
5058
+ * Retorna uma lista de campanhas de um cliente específico obtidas do serviço de atendimento ao cliente.
5059
+ * @summary Listar campanhas de um cliente no serviço de atendimento ao cliente
5060
+ * @param {CustomerServiceApiAdminServiceCustomerCampaignsRequest} requestParameters Request parameters.
5061
+ * @param {*} [options] Override http request option.
5062
+ * @throws {RequiredError}
5063
+ * @memberof CustomerServiceApi
5064
+ */
5065
+ public adminServiceCustomerCampaigns(requestParameters: CustomerServiceApiAdminServiceCustomerCampaignsRequest, options?: RawAxiosRequestConfig) {
5066
+ return CustomerServiceApiFp(this.configuration).adminServiceCustomerCampaigns(requestParameters.clientId, requestParameters.page, requestParameters.perPage, requestParameters.status, requestParameters.name, options).then((request) => request(this.axios, this.basePath));
5067
+ }
5068
+
4862
5069
  /**
4863
5070
  * Retorna uma lista de clientes obtidos do serviço de atendimento ao cliente.
4864
5071
  * @summary Listar clientes do serviço de atendimento ao cliente
package/dist/api.d.ts CHANGED
@@ -1287,6 +1287,74 @@ export interface AdminServiceCustomerBrands200ResponseContentInner {
1287
1287
  */
1288
1288
  'client_id'?: number;
1289
1289
  }
1290
+ /**
1291
+ *
1292
+ * @export
1293
+ * @interface AdminServiceCustomerCampaigns200Response
1294
+ */
1295
+ export interface AdminServiceCustomerCampaigns200Response {
1296
+ /**
1297
+ *
1298
+ * @type {string}
1299
+ * @memberof AdminServiceCustomerCampaigns200Response
1300
+ */
1301
+ 'entity'?: string;
1302
+ /**
1303
+ *
1304
+ * @type {string}
1305
+ * @memberof AdminServiceCustomerCampaigns200Response
1306
+ */
1307
+ 'action'?: string;
1308
+ /**
1309
+ *
1310
+ * @type {Array<AdminServiceCustomerCampaigns200ResponseContentInner>}
1311
+ * @memberof AdminServiceCustomerCampaigns200Response
1312
+ */
1313
+ 'content'?: Array<AdminServiceCustomerCampaigns200ResponseContentInner>;
1314
+ /**
1315
+ *
1316
+ * @type {AdminServiceCustomerClients200ResponsePaging}
1317
+ * @memberof AdminServiceCustomerCampaigns200Response
1318
+ */
1319
+ 'paging'?: AdminServiceCustomerClients200ResponsePaging;
1320
+ }
1321
+ /**
1322
+ *
1323
+ * @export
1324
+ * @interface AdminServiceCustomerCampaigns200ResponseContentInner
1325
+ */
1326
+ export interface AdminServiceCustomerCampaigns200ResponseContentInner {
1327
+ /**
1328
+ *
1329
+ * @type {number}
1330
+ * @memberof AdminServiceCustomerCampaigns200ResponseContentInner
1331
+ */
1332
+ 'id'?: number;
1333
+ /**
1334
+ *
1335
+ * @type {string}
1336
+ * @memberof AdminServiceCustomerCampaigns200ResponseContentInner
1337
+ */
1338
+ 'promotion_id'?: string;
1339
+ /**
1340
+ *
1341
+ * @type {string}
1342
+ * @memberof AdminServiceCustomerCampaigns200ResponseContentInner
1343
+ */
1344
+ 'name'?: string;
1345
+ /**
1346
+ *
1347
+ * @type {string}
1348
+ * @memberof AdminServiceCustomerCampaigns200ResponseContentInner
1349
+ */
1350
+ 'status'?: string;
1351
+ /**
1352
+ *
1353
+ * @type {number}
1354
+ * @memberof AdminServiceCustomerCampaigns200ResponseContentInner
1355
+ */
1356
+ 'client_id'?: number;
1357
+ }
1290
1358
  /**
1291
1359
  *
1292
1360
  * @export
@@ -4160,6 +4228,18 @@ export declare const CustomerServiceApiAxiosParamCreator: (configuration?: Confi
4160
4228
  * @throws {RequiredError}
4161
4229
  */
4162
4230
  adminServiceCustomerBrands: (clientId: string, search?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4231
+ /**
4232
+ * Retorna uma lista de campanhas de um cliente específico obtidas do serviço de atendimento ao cliente.
4233
+ * @summary Listar campanhas de um cliente no serviço de atendimento ao cliente
4234
+ * @param {string} clientId ID do cliente
4235
+ * @param {number} [page] Número da página
4236
+ * @param {number} [perPage] Itens por página
4237
+ * @param {string} [status] Status da campanha
4238
+ * @param {string} [name] Nome da campanha
4239
+ * @param {*} [options] Override http request option.
4240
+ * @throws {RequiredError}
4241
+ */
4242
+ adminServiceCustomerCampaigns: (clientId: string, page?: number, perPage?: number, status?: string, name?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4163
4243
  /**
4164
4244
  * Retorna uma lista de clientes obtidos do serviço de atendimento ao cliente.
4165
4245
  * @summary Listar clientes do serviço de atendimento ao cliente
@@ -4198,6 +4278,18 @@ export declare const CustomerServiceApiFp: (configuration?: Configuration) => {
4198
4278
  * @throws {RequiredError}
4199
4279
  */
4200
4280
  adminServiceCustomerBrands(clientId: string, search?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminServiceCustomerBrands200Response>>;
4281
+ /**
4282
+ * Retorna uma lista de campanhas de um cliente específico obtidas do serviço de atendimento ao cliente.
4283
+ * @summary Listar campanhas de um cliente no serviço de atendimento ao cliente
4284
+ * @param {string} clientId ID do cliente
4285
+ * @param {number} [page] Número da página
4286
+ * @param {number} [perPage] Itens por página
4287
+ * @param {string} [status] Status da campanha
4288
+ * @param {string} [name] Nome da campanha
4289
+ * @param {*} [options] Override http request option.
4290
+ * @throws {RequiredError}
4291
+ */
4292
+ adminServiceCustomerCampaigns(clientId: string, page?: number, perPage?: number, status?: string, name?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminServiceCustomerCampaigns200Response>>;
4201
4293
  /**
4202
4294
  * Retorna uma lista de clientes obtidos do serviço de atendimento ao cliente.
4203
4295
  * @summary Listar clientes do serviço de atendimento ao cliente
@@ -4231,6 +4323,14 @@ export declare const CustomerServiceApiFactory: (configuration?: Configuration,
4231
4323
  * @throws {RequiredError}
4232
4324
  */
4233
4325
  adminServiceCustomerBrands(requestParameters: CustomerServiceApiAdminServiceCustomerBrandsRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminServiceCustomerBrands200Response>;
4326
+ /**
4327
+ * Retorna uma lista de campanhas de um cliente específico obtidas do serviço de atendimento ao cliente.
4328
+ * @summary Listar campanhas de um cliente no serviço de atendimento ao cliente
4329
+ * @param {CustomerServiceApiAdminServiceCustomerCampaignsRequest} requestParameters Request parameters.
4330
+ * @param {*} [options] Override http request option.
4331
+ * @throws {RequiredError}
4332
+ */
4333
+ adminServiceCustomerCampaigns(requestParameters: CustomerServiceApiAdminServiceCustomerCampaignsRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminServiceCustomerCampaigns200Response>;
4234
4334
  /**
4235
4335
  * Retorna uma lista de clientes obtidos do serviço de atendimento ao cliente.
4236
4336
  * @summary Listar clientes do serviço de atendimento ao cliente
@@ -4296,6 +4396,43 @@ export interface CustomerServiceApiAdminServiceCustomerBrandsRequest {
4296
4396
  */
4297
4397
  readonly perPage?: number;
4298
4398
  }
4399
+ /**
4400
+ * Request parameters for adminServiceCustomerCampaigns operation in CustomerServiceApi.
4401
+ * @export
4402
+ * @interface CustomerServiceApiAdminServiceCustomerCampaignsRequest
4403
+ */
4404
+ export interface CustomerServiceApiAdminServiceCustomerCampaignsRequest {
4405
+ /**
4406
+ * ID do cliente
4407
+ * @type {string}
4408
+ * @memberof CustomerServiceApiAdminServiceCustomerCampaigns
4409
+ */
4410
+ readonly clientId: string;
4411
+ /**
4412
+ * Número da página
4413
+ * @type {number}
4414
+ * @memberof CustomerServiceApiAdminServiceCustomerCampaigns
4415
+ */
4416
+ readonly page?: number;
4417
+ /**
4418
+ * Itens por página
4419
+ * @type {number}
4420
+ * @memberof CustomerServiceApiAdminServiceCustomerCampaigns
4421
+ */
4422
+ readonly perPage?: number;
4423
+ /**
4424
+ * Status da campanha
4425
+ * @type {string}
4426
+ * @memberof CustomerServiceApiAdminServiceCustomerCampaigns
4427
+ */
4428
+ readonly status?: string;
4429
+ /**
4430
+ * Nome da campanha
4431
+ * @type {string}
4432
+ * @memberof CustomerServiceApiAdminServiceCustomerCampaigns
4433
+ */
4434
+ readonly name?: string;
4435
+ }
4299
4436
  /**
4300
4437
  * Request parameters for adminServiceCustomerClients operation in CustomerServiceApi.
4301
4438
  * @export
@@ -4352,6 +4489,15 @@ export declare class CustomerServiceApi extends BaseAPI {
4352
4489
  * @memberof CustomerServiceApi
4353
4490
  */
4354
4491
  adminServiceCustomerBrands(requestParameters: CustomerServiceApiAdminServiceCustomerBrandsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminServiceCustomerBrands200Response, any, {}>>;
4492
+ /**
4493
+ * Retorna uma lista de campanhas de um cliente específico obtidas do serviço de atendimento ao cliente.
4494
+ * @summary Listar campanhas de um cliente no serviço de atendimento ao cliente
4495
+ * @param {CustomerServiceApiAdminServiceCustomerCampaignsRequest} requestParameters Request parameters.
4496
+ * @param {*} [options] Override http request option.
4497
+ * @throws {RequiredError}
4498
+ * @memberof CustomerServiceApi
4499
+ */
4500
+ adminServiceCustomerCampaigns(requestParameters: CustomerServiceApiAdminServiceCustomerCampaignsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminServiceCustomerCampaigns200Response, any, {}>>;
4355
4501
  /**
4356
4502
  * Retorna uma lista de clientes obtidos do serviço de atendimento ao cliente.
4357
4503
  * @summary Listar clientes do serviço de atendimento ao cliente
package/dist/api.js CHANGED
@@ -1012,6 +1012,69 @@ var CustomerServiceApiAxiosParamCreator = function (configuration) {
1012
1012
  });
1013
1013
  });
1014
1014
  },
1015
+ /**
1016
+ * Retorna uma lista de campanhas de um cliente específico obtidas do serviço de atendimento ao cliente.
1017
+ * @summary Listar campanhas de um cliente no serviço de atendimento ao cliente
1018
+ * @param {string} clientId ID do cliente
1019
+ * @param {number} [page] Número da página
1020
+ * @param {number} [perPage] Itens por página
1021
+ * @param {string} [status] Status da campanha
1022
+ * @param {string} [name] Nome da campanha
1023
+ * @param {*} [options] Override http request option.
1024
+ * @throws {RequiredError}
1025
+ */
1026
+ adminServiceCustomerCampaigns: function (clientId_1, page_1, perPage_1, status_1, name_1) {
1027
+ var args_1 = [];
1028
+ for (var _i = 5; _i < arguments.length; _i++) {
1029
+ args_1[_i - 5] = arguments[_i];
1030
+ }
1031
+ return __awaiter(_this, __spreadArray([clientId_1, page_1, perPage_1, status_1, name_1], args_1, true), void 0, function (clientId, page, perPage, status, name, options) {
1032
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1033
+ if (options === void 0) { options = {}; }
1034
+ return __generator(this, function (_a) {
1035
+ switch (_a.label) {
1036
+ case 0:
1037
+ // verify required parameter 'clientId' is not null or undefined
1038
+ (0, common_1.assertParamExists)('adminServiceCustomerCampaigns', 'clientId', clientId);
1039
+ localVarPath = "/admin/service/customer/campaigns/{client_id}"
1040
+ .replace("{".concat("client_id", "}"), encodeURIComponent(String(clientId)));
1041
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1042
+ if (configuration) {
1043
+ baseOptions = configuration.baseOptions;
1044
+ }
1045
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1046
+ localVarHeaderParameter = {};
1047
+ localVarQueryParameter = {};
1048
+ // authentication bearerAuth required
1049
+ // http bearer authentication required
1050
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
1051
+ case 1:
1052
+ // authentication bearerAuth required
1053
+ // http bearer authentication required
1054
+ _a.sent();
1055
+ if (page !== undefined) {
1056
+ localVarQueryParameter['page'] = page;
1057
+ }
1058
+ if (perPage !== undefined) {
1059
+ localVarQueryParameter['perPage'] = perPage;
1060
+ }
1061
+ if (status !== undefined) {
1062
+ localVarQueryParameter['status'] = status;
1063
+ }
1064
+ if (name !== undefined) {
1065
+ localVarQueryParameter['name'] = name;
1066
+ }
1067
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1068
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1069
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1070
+ return [2 /*return*/, {
1071
+ url: (0, common_1.toPathString)(localVarUrlObj),
1072
+ options: localVarRequestOptions,
1073
+ }];
1074
+ }
1075
+ });
1076
+ });
1077
+ },
1015
1078
  /**
1016
1079
  * Retorna uma lista de clientes obtidos do serviço de atendimento ao cliente.
1017
1080
  * @summary Listar clientes do serviço de atendimento ao cliente
@@ -1132,6 +1195,33 @@ var CustomerServiceApiFp = function (configuration) {
1132
1195
  });
1133
1196
  });
1134
1197
  },
1198
+ /**
1199
+ * Retorna uma lista de campanhas de um cliente específico obtidas do serviço de atendimento ao cliente.
1200
+ * @summary Listar campanhas de um cliente no serviço de atendimento ao cliente
1201
+ * @param {string} clientId ID do cliente
1202
+ * @param {number} [page] Número da página
1203
+ * @param {number} [perPage] Itens por página
1204
+ * @param {string} [status] Status da campanha
1205
+ * @param {string} [name] Nome da campanha
1206
+ * @param {*} [options] Override http request option.
1207
+ * @throws {RequiredError}
1208
+ */
1209
+ adminServiceCustomerCampaigns: function (clientId, page, perPage, status, name, options) {
1210
+ return __awaiter(this, void 0, void 0, function () {
1211
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1212
+ var _a, _b, _c;
1213
+ return __generator(this, function (_d) {
1214
+ switch (_d.label) {
1215
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.adminServiceCustomerCampaigns(clientId, page, perPage, status, name, options)];
1216
+ case 1:
1217
+ localVarAxiosArgs = _d.sent();
1218
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1219
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CustomerServiceApi.adminServiceCustomerCampaigns']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1220
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1221
+ }
1222
+ });
1223
+ });
1224
+ },
1135
1225
  /**
1136
1226
  * Retorna uma lista de clientes obtidos do serviço de atendimento ao cliente.
1137
1227
  * @summary Listar clientes do serviço de atendimento ao cliente
@@ -1188,6 +1278,16 @@ var CustomerServiceApiFactory = function (configuration, basePath, axios) {
1188
1278
  adminServiceCustomerBrands: function (requestParameters, options) {
1189
1279
  return localVarFp.adminServiceCustomerBrands(requestParameters.clientId, requestParameters.search, requestParameters.page, requestParameters.perPage, options).then(function (request) { return request(axios, basePath); });
1190
1280
  },
1281
+ /**
1282
+ * Retorna uma lista de campanhas de um cliente específico obtidas do serviço de atendimento ao cliente.
1283
+ * @summary Listar campanhas de um cliente no serviço de atendimento ao cliente
1284
+ * @param {CustomerServiceApiAdminServiceCustomerCampaignsRequest} requestParameters Request parameters.
1285
+ * @param {*} [options] Override http request option.
1286
+ * @throws {RequiredError}
1287
+ */
1288
+ adminServiceCustomerCampaigns: function (requestParameters, options) {
1289
+ return localVarFp.adminServiceCustomerCampaigns(requestParameters.clientId, requestParameters.page, requestParameters.perPage, requestParameters.status, requestParameters.name, options).then(function (request) { return request(axios, basePath); });
1290
+ },
1191
1291
  /**
1192
1292
  * Retorna uma lista de clientes obtidos do serviço de atendimento ao cliente.
1193
1293
  * @summary Listar clientes do serviço de atendimento ao cliente
@@ -1237,6 +1337,18 @@ var CustomerServiceApi = /** @class */ (function (_super) {
1237
1337
  var _this = this;
1238
1338
  return (0, exports.CustomerServiceApiFp)(this.configuration).adminServiceCustomerBrands(requestParameters.clientId, requestParameters.search, requestParameters.page, requestParameters.perPage, options).then(function (request) { return request(_this.axios, _this.basePath); });
1239
1339
  };
1340
+ /**
1341
+ * Retorna uma lista de campanhas de um cliente específico obtidas do serviço de atendimento ao cliente.
1342
+ * @summary Listar campanhas de um cliente no serviço de atendimento ao cliente
1343
+ * @param {CustomerServiceApiAdminServiceCustomerCampaignsRequest} requestParameters Request parameters.
1344
+ * @param {*} [options] Override http request option.
1345
+ * @throws {RequiredError}
1346
+ * @memberof CustomerServiceApi
1347
+ */
1348
+ CustomerServiceApi.prototype.adminServiceCustomerCampaigns = function (requestParameters, options) {
1349
+ var _this = this;
1350
+ return (0, exports.CustomerServiceApiFp)(this.configuration).adminServiceCustomerCampaigns(requestParameters.clientId, requestParameters.page, requestParameters.perPage, requestParameters.status, requestParameters.name, options).then(function (request) { return request(_this.axios, _this.basePath); });
1351
+ };
1240
1352
  /**
1241
1353
  * Retorna uma lista de clientes obtidos do serviço de atendimento ao cliente.
1242
1354
  * @summary Listar clientes do serviço de atendimento ao cliente
@@ -0,0 +1,26 @@
1
+ # AdminServiceCustomerCampaigns200Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **entity** | **string** | | [optional] [default to undefined]
9
+ **action** | **string** | | [optional] [default to undefined]
10
+ **content** | [**Array&lt;AdminServiceCustomerCampaigns200ResponseContentInner&gt;**](AdminServiceCustomerCampaigns200ResponseContentInner.md) | | [optional] [default to undefined]
11
+ **paging** | [**AdminServiceCustomerClients200ResponsePaging**](AdminServiceCustomerClients200ResponsePaging.md) | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { AdminServiceCustomerCampaigns200Response } from '@handsondigital/idplugger-admin';
17
+
18
+ const instance: AdminServiceCustomerCampaigns200Response = {
19
+ entity,
20
+ action,
21
+ content,
22
+ paging,
23
+ };
24
+ ```
25
+
26
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,28 @@
1
+ # AdminServiceCustomerCampaigns200ResponseContentInner
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **number** | | [optional] [default to undefined]
9
+ **promotion_id** | **string** | | [optional] [default to undefined]
10
+ **name** | **string** | | [optional] [default to undefined]
11
+ **status** | **string** | | [optional] [default to undefined]
12
+ **client_id** | **number** | | [optional] [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { AdminServiceCustomerCampaigns200ResponseContentInner } from '@handsondigital/idplugger-admin';
18
+
19
+ const instance: AdminServiceCustomerCampaigns200ResponseContentInner = {
20
+ id,
21
+ promotion_id,
22
+ name,
23
+ status,
24
+ client_id,
25
+ };
26
+ ```
27
+
28
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -6,6 +6,7 @@ All URIs are relative to *https://api.idplugger.com*
6
6
  |------------- | ------------- | -------------|
7
7
  |[**adminServiceCustomerApplications**](#adminservicecustomerapplications) | **GET** /admin/service/customer/applications/{client_id} | Listar aplicações de um cliente no serviço de atendimento ao cliente|
8
8
  |[**adminServiceCustomerBrands**](#adminservicecustomerbrands) | **GET** /admin/service/customer/brands/{client_id} | Listar marcas de um cliente do serviço de atendimento ao cliente|
9
+ |[**adminServiceCustomerCampaigns**](#adminservicecustomercampaigns) | **GET** /admin/service/customer/campaigns/{client_id} | Listar campanhas de um cliente no serviço de atendimento ao cliente|
9
10
  |[**adminServiceCustomerClients**](#adminservicecustomerclients) | **GET** /admin/service/customer/clients | Listar clientes do serviço de atendimento ao cliente|
10
11
 
11
12
  # **adminServiceCustomerApplications**
@@ -118,6 +119,69 @@ const { status, data } = await apiInstance.adminServiceCustomerBrands(
118
119
  - **Accept**: application/json
119
120
 
120
121
 
122
+ ### HTTP response details
123
+ | Status code | Description | Response headers |
124
+ |-------------|-------------|------------------|
125
+ |**200** | Sucesso | - |
126
+
127
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
128
+
129
+ # **adminServiceCustomerCampaigns**
130
+ > AdminServiceCustomerCampaigns200Response adminServiceCustomerCampaigns()
131
+
132
+ Retorna uma lista de campanhas de um cliente específico obtidas do serviço de atendimento ao cliente.
133
+
134
+ ### Example
135
+
136
+ ```typescript
137
+ import {
138
+ CustomerServiceApi,
139
+ Configuration
140
+ } from '@handsondigital/idplugger-admin';
141
+
142
+ const configuration = new Configuration();
143
+ const apiInstance = new CustomerServiceApi(configuration);
144
+
145
+ let clientId: string; //ID do cliente (default to undefined)
146
+ let page: number; //Número da página (optional) (default to 1)
147
+ let perPage: number; //Itens por página (optional) (default to 15)
148
+ let status: string; //Status da campanha (optional) (default to undefined)
149
+ let name: string; //Nome da campanha (optional) (default to undefined)
150
+
151
+ const { status, data } = await apiInstance.adminServiceCustomerCampaigns(
152
+ clientId,
153
+ page,
154
+ perPage,
155
+ status,
156
+ name
157
+ );
158
+ ```
159
+
160
+ ### Parameters
161
+
162
+ |Name | Type | Description | Notes|
163
+ |------------- | ------------- | ------------- | -------------|
164
+ | **clientId** | [**string**] | ID do cliente | defaults to undefined|
165
+ | **page** | [**number**] | Número da página | (optional) defaults to 1|
166
+ | **perPage** | [**number**] | Itens por página | (optional) defaults to 15|
167
+ | **status** | [**string**] | Status da campanha | (optional) defaults to undefined|
168
+ | **name** | [**string**] | Nome da campanha | (optional) defaults to undefined|
169
+
170
+
171
+ ### Return type
172
+
173
+ **AdminServiceCustomerCampaigns200Response**
174
+
175
+ ### Authorization
176
+
177
+ [bearerAuth](../README.md#bearerAuth)
178
+
179
+ ### HTTP request headers
180
+
181
+ - **Content-Type**: Not defined
182
+ - **Accept**: application/json
183
+
184
+
121
185
  ### HTTP response details
122
186
  | Status code | Description | Response headers |
123
187
  |-------------|-------------|------------------|
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@handsondigital/idplugger-admin",
3
- "version": "2.5.0",
3
+ "version": "2.6.0",
4
4
  "description": "OpenAPI client for @handsondigital/idplugger-admin",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {