@handsondigital/idplugger-admin 2.5.0 → 2.6.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.
@@ -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.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.5.0 --save
39
+ npm install @handsondigital/idplugger-admin@2.6.1 --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
@@ -2341,31 +2409,7 @@ export interface PromotionStartRequest {
2341
2409
  * @type {number}
2342
2410
  * @memberof PromotionStartRequest
2343
2411
  */
2344
- 'brand_id'?: number;
2345
- /**
2346
- *
2347
- * @type {string}
2348
- * @memberof PromotionStartRequest
2349
- */
2350
- 'promotion_name'?: string;
2351
- /**
2352
- *
2353
- * @type {string}
2354
- * @memberof PromotionStartRequest
2355
- */
2356
- 'promotion_mechanic'?: string;
2357
- /**
2358
- *
2359
- * @type {string}
2360
- * @memberof PromotionStartRequest
2361
- */
2362
- 'data_inicio'?: string;
2363
- /**
2364
- *
2365
- * @type {string}
2366
- * @memberof PromotionStartRequest
2367
- */
2368
- 'data_fim'?: string;
2412
+ 'campaign_id'?: number;
2369
2413
  /**
2370
2414
  *
2371
2415
  * @type {PromotionPullConfigurationRequestDb}
@@ -4567,6 +4611,64 @@ export const CustomerServiceApiAxiosParamCreator = function (configuration?: Con
4567
4611
 
4568
4612
 
4569
4613
 
4614
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4615
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4616
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4617
+
4618
+ return {
4619
+ url: toPathString(localVarUrlObj),
4620
+ options: localVarRequestOptions,
4621
+ };
4622
+ },
4623
+ /**
4624
+ * Retorna uma lista de campanhas de um cliente específico obtidas do serviço de atendimento ao cliente.
4625
+ * @summary Listar campanhas de um cliente no serviço de atendimento ao cliente
4626
+ * @param {string} clientId ID do cliente
4627
+ * @param {number} [page] Número da página
4628
+ * @param {number} [perPage] Itens por página
4629
+ * @param {string} [status] Status da campanha
4630
+ * @param {string} [name] Nome da campanha
4631
+ * @param {*} [options] Override http request option.
4632
+ * @throws {RequiredError}
4633
+ */
4634
+ adminServiceCustomerCampaigns: async (clientId: string, page?: number, perPage?: number, status?: string, name?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4635
+ // verify required parameter 'clientId' is not null or undefined
4636
+ assertParamExists('adminServiceCustomerCampaigns', 'clientId', clientId)
4637
+ const localVarPath = `/admin/service/customer/campaigns/{client_id}`
4638
+ .replace(`{${"client_id"}}`, encodeURIComponent(String(clientId)));
4639
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4640
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4641
+ let baseOptions;
4642
+ if (configuration) {
4643
+ baseOptions = configuration.baseOptions;
4644
+ }
4645
+
4646
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4647
+ const localVarHeaderParameter = {} as any;
4648
+ const localVarQueryParameter = {} as any;
4649
+
4650
+ // authentication bearerAuth required
4651
+ // http bearer authentication required
4652
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
4653
+
4654
+ if (page !== undefined) {
4655
+ localVarQueryParameter['page'] = page;
4656
+ }
4657
+
4658
+ if (perPage !== undefined) {
4659
+ localVarQueryParameter['perPage'] = perPage;
4660
+ }
4661
+
4662
+ if (status !== undefined) {
4663
+ localVarQueryParameter['status'] = status;
4664
+ }
4665
+
4666
+ if (name !== undefined) {
4667
+ localVarQueryParameter['name'] = name;
4668
+ }
4669
+
4670
+
4671
+
4570
4672
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4571
4673
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4572
4674
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -4671,6 +4773,23 @@ export const CustomerServiceApiFp = function(configuration?: Configuration) {
4671
4773
  const localVarOperationServerBasePath = operationServerMap['CustomerServiceApi.adminServiceCustomerBrands']?.[localVarOperationServerIndex]?.url;
4672
4774
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4673
4775
  },
4776
+ /**
4777
+ * Retorna uma lista de campanhas de um cliente específico obtidas do serviço de atendimento ao cliente.
4778
+ * @summary Listar campanhas de um cliente no serviço de atendimento ao cliente
4779
+ * @param {string} clientId ID do cliente
4780
+ * @param {number} [page] Número da página
4781
+ * @param {number} [perPage] Itens por página
4782
+ * @param {string} [status] Status da campanha
4783
+ * @param {string} [name] Nome da campanha
4784
+ * @param {*} [options] Override http request option.
4785
+ * @throws {RequiredError}
4786
+ */
4787
+ async adminServiceCustomerCampaigns(clientId: string, page?: number, perPage?: number, status?: string, name?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminServiceCustomerCampaigns200Response>> {
4788
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminServiceCustomerCampaigns(clientId, page, perPage, status, name, options);
4789
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4790
+ const localVarOperationServerBasePath = operationServerMap['CustomerServiceApi.adminServiceCustomerCampaigns']?.[localVarOperationServerIndex]?.url;
4791
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4792
+ },
4674
4793
  /**
4675
4794
  * Retorna uma lista de clientes obtidos do serviço de atendimento ao cliente.
4676
4795
  * @summary Listar clientes do serviço de atendimento ao cliente
@@ -4717,6 +4836,16 @@ export const CustomerServiceApiFactory = function (configuration?: Configuration
4717
4836
  adminServiceCustomerBrands(requestParameters: CustomerServiceApiAdminServiceCustomerBrandsRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminServiceCustomerBrands200Response> {
4718
4837
  return localVarFp.adminServiceCustomerBrands(requestParameters.clientId, requestParameters.search, requestParameters.page, requestParameters.perPage, options).then((request) => request(axios, basePath));
4719
4838
  },
4839
+ /**
4840
+ * Retorna uma lista de campanhas de um cliente específico obtidas do serviço de atendimento ao cliente.
4841
+ * @summary Listar campanhas de um cliente no serviço de atendimento ao cliente
4842
+ * @param {CustomerServiceApiAdminServiceCustomerCampaignsRequest} requestParameters Request parameters.
4843
+ * @param {*} [options] Override http request option.
4844
+ * @throws {RequiredError}
4845
+ */
4846
+ adminServiceCustomerCampaigns(requestParameters: CustomerServiceApiAdminServiceCustomerCampaignsRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminServiceCustomerCampaigns200Response> {
4847
+ return localVarFp.adminServiceCustomerCampaigns(requestParameters.clientId, requestParameters.page, requestParameters.perPage, requestParameters.status, requestParameters.name, options).then((request) => request(axios, basePath));
4848
+ },
4720
4849
  /**
4721
4850
  * Retorna uma lista de clientes obtidos do serviço de atendimento ao cliente.
4722
4851
  * @summary Listar clientes do serviço de atendimento ao cliente
@@ -4793,6 +4922,48 @@ export interface CustomerServiceApiAdminServiceCustomerBrandsRequest {
4793
4922
  readonly perPage?: number
4794
4923
  }
4795
4924
 
4925
+ /**
4926
+ * Request parameters for adminServiceCustomerCampaigns operation in CustomerServiceApi.
4927
+ * @export
4928
+ * @interface CustomerServiceApiAdminServiceCustomerCampaignsRequest
4929
+ */
4930
+ export interface CustomerServiceApiAdminServiceCustomerCampaignsRequest {
4931
+ /**
4932
+ * ID do cliente
4933
+ * @type {string}
4934
+ * @memberof CustomerServiceApiAdminServiceCustomerCampaigns
4935
+ */
4936
+ readonly clientId: string
4937
+
4938
+ /**
4939
+ * Número da página
4940
+ * @type {number}
4941
+ * @memberof CustomerServiceApiAdminServiceCustomerCampaigns
4942
+ */
4943
+ readonly page?: number
4944
+
4945
+ /**
4946
+ * Itens por página
4947
+ * @type {number}
4948
+ * @memberof CustomerServiceApiAdminServiceCustomerCampaigns
4949
+ */
4950
+ readonly perPage?: number
4951
+
4952
+ /**
4953
+ * Status da campanha
4954
+ * @type {string}
4955
+ * @memberof CustomerServiceApiAdminServiceCustomerCampaigns
4956
+ */
4957
+ readonly status?: string
4958
+
4959
+ /**
4960
+ * Nome da campanha
4961
+ * @type {string}
4962
+ * @memberof CustomerServiceApiAdminServiceCustomerCampaigns
4963
+ */
4964
+ readonly name?: string
4965
+ }
4966
+
4796
4967
  /**
4797
4968
  * Request parameters for adminServiceCustomerClients operation in CustomerServiceApi.
4798
4969
  * @export
@@ -4859,6 +5030,18 @@ export class CustomerServiceApi extends BaseAPI {
4859
5030
  return CustomerServiceApiFp(this.configuration).adminServiceCustomerBrands(requestParameters.clientId, requestParameters.search, requestParameters.page, requestParameters.perPage, options).then((request) => request(this.axios, this.basePath));
4860
5031
  }
4861
5032
 
5033
+ /**
5034
+ * Retorna uma lista de campanhas de um cliente específico obtidas do serviço de atendimento ao cliente.
5035
+ * @summary Listar campanhas de um cliente no serviço de atendimento ao cliente
5036
+ * @param {CustomerServiceApiAdminServiceCustomerCampaignsRequest} requestParameters Request parameters.
5037
+ * @param {*} [options] Override http request option.
5038
+ * @throws {RequiredError}
5039
+ * @memberof CustomerServiceApi
5040
+ */
5041
+ public adminServiceCustomerCampaigns(requestParameters: CustomerServiceApiAdminServiceCustomerCampaignsRequest, options?: RawAxiosRequestConfig) {
5042
+ return CustomerServiceApiFp(this.configuration).adminServiceCustomerCampaigns(requestParameters.clientId, requestParameters.page, requestParameters.perPage, requestParameters.status, requestParameters.name, options).then((request) => request(this.axios, this.basePath));
5043
+ }
5044
+
4862
5045
  /**
4863
5046
  * Retorna uma lista de clientes obtidos do serviço de atendimento ao cliente.
4864
5047
  * @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
@@ -2331,31 +2399,7 @@ export interface PromotionStartRequest {
2331
2399
  * @type {number}
2332
2400
  * @memberof PromotionStartRequest
2333
2401
  */
2334
- 'brand_id'?: number;
2335
- /**
2336
- *
2337
- * @type {string}
2338
- * @memberof PromotionStartRequest
2339
- */
2340
- 'promotion_name'?: string;
2341
- /**
2342
- *
2343
- * @type {string}
2344
- * @memberof PromotionStartRequest
2345
- */
2346
- 'promotion_mechanic'?: string;
2347
- /**
2348
- *
2349
- * @type {string}
2350
- * @memberof PromotionStartRequest
2351
- */
2352
- 'data_inicio'?: string;
2353
- /**
2354
- *
2355
- * @type {string}
2356
- * @memberof PromotionStartRequest
2357
- */
2358
- 'data_fim'?: string;
2402
+ 'campaign_id'?: number;
2359
2403
  /**
2360
2404
  *
2361
2405
  * @type {PromotionPullConfigurationRequestDb}
@@ -4160,6 +4204,18 @@ export declare const CustomerServiceApiAxiosParamCreator: (configuration?: Confi
4160
4204
  * @throws {RequiredError}
4161
4205
  */
4162
4206
  adminServiceCustomerBrands: (clientId: string, search?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4207
+ /**
4208
+ * Retorna uma lista de campanhas de um cliente específico obtidas do serviço de atendimento ao cliente.
4209
+ * @summary Listar campanhas de um cliente no serviço de atendimento ao cliente
4210
+ * @param {string} clientId ID do cliente
4211
+ * @param {number} [page] Número da página
4212
+ * @param {number} [perPage] Itens por página
4213
+ * @param {string} [status] Status da campanha
4214
+ * @param {string} [name] Nome da campanha
4215
+ * @param {*} [options] Override http request option.
4216
+ * @throws {RequiredError}
4217
+ */
4218
+ adminServiceCustomerCampaigns: (clientId: string, page?: number, perPage?: number, status?: string, name?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4163
4219
  /**
4164
4220
  * Retorna uma lista de clientes obtidos do serviço de atendimento ao cliente.
4165
4221
  * @summary Listar clientes do serviço de atendimento ao cliente
@@ -4198,6 +4254,18 @@ export declare const CustomerServiceApiFp: (configuration?: Configuration) => {
4198
4254
  * @throws {RequiredError}
4199
4255
  */
4200
4256
  adminServiceCustomerBrands(clientId: string, search?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminServiceCustomerBrands200Response>>;
4257
+ /**
4258
+ * Retorna uma lista de campanhas de um cliente específico obtidas do serviço de atendimento ao cliente.
4259
+ * @summary Listar campanhas de um cliente no serviço de atendimento ao cliente
4260
+ * @param {string} clientId ID do cliente
4261
+ * @param {number} [page] Número da página
4262
+ * @param {number} [perPage] Itens por página
4263
+ * @param {string} [status] Status da campanha
4264
+ * @param {string} [name] Nome da campanha
4265
+ * @param {*} [options] Override http request option.
4266
+ * @throws {RequiredError}
4267
+ */
4268
+ adminServiceCustomerCampaigns(clientId: string, page?: number, perPage?: number, status?: string, name?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminServiceCustomerCampaigns200Response>>;
4201
4269
  /**
4202
4270
  * Retorna uma lista de clientes obtidos do serviço de atendimento ao cliente.
4203
4271
  * @summary Listar clientes do serviço de atendimento ao cliente
@@ -4231,6 +4299,14 @@ export declare const CustomerServiceApiFactory: (configuration?: Configuration,
4231
4299
  * @throws {RequiredError}
4232
4300
  */
4233
4301
  adminServiceCustomerBrands(requestParameters: CustomerServiceApiAdminServiceCustomerBrandsRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminServiceCustomerBrands200Response>;
4302
+ /**
4303
+ * Retorna uma lista de campanhas de um cliente específico obtidas do serviço de atendimento ao cliente.
4304
+ * @summary Listar campanhas de um cliente no serviço de atendimento ao cliente
4305
+ * @param {CustomerServiceApiAdminServiceCustomerCampaignsRequest} requestParameters Request parameters.
4306
+ * @param {*} [options] Override http request option.
4307
+ * @throws {RequiredError}
4308
+ */
4309
+ adminServiceCustomerCampaigns(requestParameters: CustomerServiceApiAdminServiceCustomerCampaignsRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminServiceCustomerCampaigns200Response>;
4234
4310
  /**
4235
4311
  * Retorna uma lista de clientes obtidos do serviço de atendimento ao cliente.
4236
4312
  * @summary Listar clientes do serviço de atendimento ao cliente
@@ -4296,6 +4372,43 @@ export interface CustomerServiceApiAdminServiceCustomerBrandsRequest {
4296
4372
  */
4297
4373
  readonly perPage?: number;
4298
4374
  }
4375
+ /**
4376
+ * Request parameters for adminServiceCustomerCampaigns operation in CustomerServiceApi.
4377
+ * @export
4378
+ * @interface CustomerServiceApiAdminServiceCustomerCampaignsRequest
4379
+ */
4380
+ export interface CustomerServiceApiAdminServiceCustomerCampaignsRequest {
4381
+ /**
4382
+ * ID do cliente
4383
+ * @type {string}
4384
+ * @memberof CustomerServiceApiAdminServiceCustomerCampaigns
4385
+ */
4386
+ readonly clientId: string;
4387
+ /**
4388
+ * Número da página
4389
+ * @type {number}
4390
+ * @memberof CustomerServiceApiAdminServiceCustomerCampaigns
4391
+ */
4392
+ readonly page?: number;
4393
+ /**
4394
+ * Itens por página
4395
+ * @type {number}
4396
+ * @memberof CustomerServiceApiAdminServiceCustomerCampaigns
4397
+ */
4398
+ readonly perPage?: number;
4399
+ /**
4400
+ * Status da campanha
4401
+ * @type {string}
4402
+ * @memberof CustomerServiceApiAdminServiceCustomerCampaigns
4403
+ */
4404
+ readonly status?: string;
4405
+ /**
4406
+ * Nome da campanha
4407
+ * @type {string}
4408
+ * @memberof CustomerServiceApiAdminServiceCustomerCampaigns
4409
+ */
4410
+ readonly name?: string;
4411
+ }
4299
4412
  /**
4300
4413
  * Request parameters for adminServiceCustomerClients operation in CustomerServiceApi.
4301
4414
  * @export
@@ -4352,6 +4465,15 @@ export declare class CustomerServiceApi extends BaseAPI {
4352
4465
  * @memberof CustomerServiceApi
4353
4466
  */
4354
4467
  adminServiceCustomerBrands(requestParameters: CustomerServiceApiAdminServiceCustomerBrandsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminServiceCustomerBrands200Response, any, {}>>;
4468
+ /**
4469
+ * Retorna uma lista de campanhas de um cliente específico obtidas do serviço de atendimento ao cliente.
4470
+ * @summary Listar campanhas de um cliente no serviço de atendimento ao cliente
4471
+ * @param {CustomerServiceApiAdminServiceCustomerCampaignsRequest} requestParameters Request parameters.
4472
+ * @param {*} [options] Override http request option.
4473
+ * @throws {RequiredError}
4474
+ * @memberof CustomerServiceApi
4475
+ */
4476
+ adminServiceCustomerCampaigns(requestParameters: CustomerServiceApiAdminServiceCustomerCampaignsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminServiceCustomerCampaigns200Response, any, {}>>;
4355
4477
  /**
4356
4478
  * Retorna uma lista de clientes obtidos do serviço de atendimento ao cliente.
4357
4479
  * @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
  |-------------|-------------|------------------|
@@ -6,11 +6,7 @@
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **client_id** | **number** | | [optional] [default to undefined]
9
- **brand_id** | **number** | | [optional] [default to undefined]
10
- **promotion_name** | **string** | | [optional] [default to undefined]
11
- **promotion_mechanic** | **string** | | [optional] [default to undefined]
12
- **data_inicio** | **string** | | [optional] [default to undefined]
13
- **data_fim** | **string** | | [optional] [default to undefined]
9
+ **campaign_id** | **number** | | [optional] [default to undefined]
14
10
  **db** | [**PromotionPullConfigurationRequestDb**](PromotionPullConfigurationRequestDb.md) | | [optional] [default to undefined]
15
11
  **user** | [**PromotionStartRequestUser**](PromotionStartRequestUser.md) | | [optional] [default to undefined]
16
12
  **permissions** | **Array&lt;string&gt;** | | [optional] [default to undefined]
@@ -22,11 +18,7 @@ import { PromotionStartRequest } from '@handsondigital/idplugger-admin';
22
18
 
23
19
  const instance: PromotionStartRequest = {
24
20
  client_id,
25
- brand_id,
26
- promotion_name,
27
- promotion_mechanic,
28
- data_inicio,
29
- data_fim,
21
+ campaign_id,
30
22
  db,
31
23
  user,
32
24
  permissions,
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.1",
4
4
  "description": "OpenAPI client for @handsondigital/idplugger-admin",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {