@handsondigital/idplugger-admin 2.2.4 → 2.3.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.
package/dist/api.d.ts CHANGED
@@ -846,6 +846,155 @@ export interface AdminPromotionLuckyNumbersReset500Response {
846
846
  */
847
847
  'message'?: string;
848
848
  }
849
+ /**
850
+ *
851
+ * @export
852
+ * @interface AdminServiceCustomerBrands200Response
853
+ */
854
+ export interface AdminServiceCustomerBrands200Response {
855
+ /**
856
+ *
857
+ * @type {string}
858
+ * @memberof AdminServiceCustomerBrands200Response
859
+ */
860
+ 'entity'?: string;
861
+ /**
862
+ *
863
+ * @type {string}
864
+ * @memberof AdminServiceCustomerBrands200Response
865
+ */
866
+ 'action'?: string;
867
+ /**
868
+ *
869
+ * @type {Array<AdminServiceCustomerBrands200ResponseContentInner>}
870
+ * @memberof AdminServiceCustomerBrands200Response
871
+ */
872
+ 'content'?: Array<AdminServiceCustomerBrands200ResponseContentInner>;
873
+ /**
874
+ *
875
+ * @type {AdminServiceCustomerClients200ResponsePaging}
876
+ * @memberof AdminServiceCustomerBrands200Response
877
+ */
878
+ 'paging'?: AdminServiceCustomerClients200ResponsePaging;
879
+ }
880
+ /**
881
+ *
882
+ * @export
883
+ * @interface AdminServiceCustomerBrands200ResponseContentInner
884
+ */
885
+ export interface AdminServiceCustomerBrands200ResponseContentInner {
886
+ /**
887
+ *
888
+ * @type {number}
889
+ * @memberof AdminServiceCustomerBrands200ResponseContentInner
890
+ */
891
+ 'id'?: number;
892
+ /**
893
+ *
894
+ * @type {string}
895
+ * @memberof AdminServiceCustomerBrands200ResponseContentInner
896
+ */
897
+ 'name'?: string;
898
+ /**
899
+ *
900
+ * @type {number}
901
+ * @memberof AdminServiceCustomerBrands200ResponseContentInner
902
+ */
903
+ 'client_id'?: number;
904
+ }
905
+ /**
906
+ *
907
+ * @export
908
+ * @interface AdminServiceCustomerClients200Response
909
+ */
910
+ export interface AdminServiceCustomerClients200Response {
911
+ /**
912
+ *
913
+ * @type {string}
914
+ * @memberof AdminServiceCustomerClients200Response
915
+ */
916
+ 'entity'?: string;
917
+ /**
918
+ *
919
+ * @type {string}
920
+ * @memberof AdminServiceCustomerClients200Response
921
+ */
922
+ 'action'?: string;
923
+ /**
924
+ *
925
+ * @type {Array<AdminServiceCustomerClients200ResponseContentInner>}
926
+ * @memberof AdminServiceCustomerClients200Response
927
+ */
928
+ 'content'?: Array<AdminServiceCustomerClients200ResponseContentInner>;
929
+ /**
930
+ *
931
+ * @type {AdminServiceCustomerClients200ResponsePaging}
932
+ * @memberof AdminServiceCustomerClients200Response
933
+ */
934
+ 'paging'?: AdminServiceCustomerClients200ResponsePaging;
935
+ }
936
+ /**
937
+ *
938
+ * @export
939
+ * @interface AdminServiceCustomerClients200ResponseContentInner
940
+ */
941
+ export interface AdminServiceCustomerClients200ResponseContentInner {
942
+ /**
943
+ *
944
+ * @type {number}
945
+ * @memberof AdminServiceCustomerClients200ResponseContentInner
946
+ */
947
+ 'id'?: number;
948
+ /**
949
+ *
950
+ * @type {string}
951
+ * @memberof AdminServiceCustomerClients200ResponseContentInner
952
+ */
953
+ 'nome_fantasia'?: string;
954
+ /**
955
+ *
956
+ * @type {string}
957
+ * @memberof AdminServiceCustomerClients200ResponseContentInner
958
+ */
959
+ 'razao_social'?: string;
960
+ /**
961
+ *
962
+ * @type {string}
963
+ * @memberof AdminServiceCustomerClients200ResponseContentInner
964
+ */
965
+ 'cnpj_cpf'?: string;
966
+ }
967
+ /**
968
+ *
969
+ * @export
970
+ * @interface AdminServiceCustomerClients200ResponsePaging
971
+ */
972
+ export interface AdminServiceCustomerClients200ResponsePaging {
973
+ /**
974
+ *
975
+ * @type {number}
976
+ * @memberof AdminServiceCustomerClients200ResponsePaging
977
+ */
978
+ 'current_page'?: number;
979
+ /**
980
+ *
981
+ * @type {number}
982
+ * @memberof AdminServiceCustomerClients200ResponsePaging
983
+ */
984
+ 'last_page'?: number;
985
+ /**
986
+ *
987
+ * @type {number}
988
+ * @memberof AdminServiceCustomerClients200ResponsePaging
989
+ */
990
+ 'per_page'?: number;
991
+ /**
992
+ *
993
+ * @type {number}
994
+ * @memberof AdminServiceCustomerClients200ResponsePaging
995
+ */
996
+ 'total'?: number;
997
+ }
849
998
  /**
850
999
  *
851
1000
  * @export
@@ -3583,6 +3732,172 @@ export declare class AuthApi extends BaseAPI {
3583
3732
  */
3584
3733
  authRefreshToken(requestParameters?: AuthApiAuthRefreshTokenRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthLoginByToken200Response, any, {}>>;
3585
3734
  }
3735
+ /**
3736
+ * CustomerServiceApi - axios parameter creator
3737
+ * @export
3738
+ */
3739
+ export declare const CustomerServiceApiAxiosParamCreator: (configuration?: Configuration) => {
3740
+ /**
3741
+ * Retorna uma lista de marcas de um cliente específico obtidas do serviço de atendimento ao cliente.
3742
+ * @summary Listar marcas de um cliente do serviço de atendimento ao cliente
3743
+ * @param {string} clientId ID do cliente
3744
+ * @param {string} [search] Termo de busca
3745
+ * @param {number} [page] Número da página
3746
+ * @param {number} [perPage] Itens por página
3747
+ * @param {*} [options] Override http request option.
3748
+ * @throws {RequiredError}
3749
+ */
3750
+ adminServiceCustomerBrands: (clientId: string, search?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3751
+ /**
3752
+ * Retorna uma lista de clientes obtidos do serviço de atendimento ao cliente.
3753
+ * @summary Listar clientes do serviço de atendimento ao cliente
3754
+ * @param {string} [search] Termo de busca
3755
+ * @param {boolean} [isActive] Filtrar por clientes ativos (padrão true)
3756
+ * @param {number} [page] Número da página
3757
+ * @param {number} [perPage] Itens por página
3758
+ * @param {*} [options] Override http request option.
3759
+ * @throws {RequiredError}
3760
+ */
3761
+ adminServiceCustomerClients: (search?: string, isActive?: boolean, page?: number, perPage?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3762
+ };
3763
+ /**
3764
+ * CustomerServiceApi - functional programming interface
3765
+ * @export
3766
+ */
3767
+ export declare const CustomerServiceApiFp: (configuration?: Configuration) => {
3768
+ /**
3769
+ * Retorna uma lista de marcas de um cliente específico obtidas do serviço de atendimento ao cliente.
3770
+ * @summary Listar marcas de um cliente do serviço de atendimento ao cliente
3771
+ * @param {string} clientId ID do cliente
3772
+ * @param {string} [search] Termo de busca
3773
+ * @param {number} [page] Número da página
3774
+ * @param {number} [perPage] Itens por página
3775
+ * @param {*} [options] Override http request option.
3776
+ * @throws {RequiredError}
3777
+ */
3778
+ adminServiceCustomerBrands(clientId: string, search?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminServiceCustomerBrands200Response>>;
3779
+ /**
3780
+ * Retorna uma lista de clientes obtidos do serviço de atendimento ao cliente.
3781
+ * @summary Listar clientes do serviço de atendimento ao cliente
3782
+ * @param {string} [search] Termo de busca
3783
+ * @param {boolean} [isActive] Filtrar por clientes ativos (padrão true)
3784
+ * @param {number} [page] Número da página
3785
+ * @param {number} [perPage] Itens por página
3786
+ * @param {*} [options] Override http request option.
3787
+ * @throws {RequiredError}
3788
+ */
3789
+ adminServiceCustomerClients(search?: string, isActive?: boolean, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminServiceCustomerClients200Response>>;
3790
+ };
3791
+ /**
3792
+ * CustomerServiceApi - factory interface
3793
+ * @export
3794
+ */
3795
+ export declare const CustomerServiceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
3796
+ /**
3797
+ * Retorna uma lista de marcas de um cliente específico obtidas do serviço de atendimento ao cliente.
3798
+ * @summary Listar marcas de um cliente do serviço de atendimento ao cliente
3799
+ * @param {CustomerServiceApiAdminServiceCustomerBrandsRequest} requestParameters Request parameters.
3800
+ * @param {*} [options] Override http request option.
3801
+ * @throws {RequiredError}
3802
+ */
3803
+ adminServiceCustomerBrands(requestParameters: CustomerServiceApiAdminServiceCustomerBrandsRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminServiceCustomerBrands200Response>;
3804
+ /**
3805
+ * Retorna uma lista de clientes obtidos do serviço de atendimento ao cliente.
3806
+ * @summary Listar clientes do serviço de atendimento ao cliente
3807
+ * @param {CustomerServiceApiAdminServiceCustomerClientsRequest} requestParameters Request parameters.
3808
+ * @param {*} [options] Override http request option.
3809
+ * @throws {RequiredError}
3810
+ */
3811
+ adminServiceCustomerClients(requestParameters?: CustomerServiceApiAdminServiceCustomerClientsRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminServiceCustomerClients200Response>;
3812
+ };
3813
+ /**
3814
+ * Request parameters for adminServiceCustomerBrands operation in CustomerServiceApi.
3815
+ * @export
3816
+ * @interface CustomerServiceApiAdminServiceCustomerBrandsRequest
3817
+ */
3818
+ export interface CustomerServiceApiAdminServiceCustomerBrandsRequest {
3819
+ /**
3820
+ * ID do cliente
3821
+ * @type {string}
3822
+ * @memberof CustomerServiceApiAdminServiceCustomerBrands
3823
+ */
3824
+ readonly clientId: string;
3825
+ /**
3826
+ * Termo de busca
3827
+ * @type {string}
3828
+ * @memberof CustomerServiceApiAdminServiceCustomerBrands
3829
+ */
3830
+ readonly search?: string;
3831
+ /**
3832
+ * Número da página
3833
+ * @type {number}
3834
+ * @memberof CustomerServiceApiAdminServiceCustomerBrands
3835
+ */
3836
+ readonly page?: number;
3837
+ /**
3838
+ * Itens por página
3839
+ * @type {number}
3840
+ * @memberof CustomerServiceApiAdminServiceCustomerBrands
3841
+ */
3842
+ readonly perPage?: number;
3843
+ }
3844
+ /**
3845
+ * Request parameters for adminServiceCustomerClients operation in CustomerServiceApi.
3846
+ * @export
3847
+ * @interface CustomerServiceApiAdminServiceCustomerClientsRequest
3848
+ */
3849
+ export interface CustomerServiceApiAdminServiceCustomerClientsRequest {
3850
+ /**
3851
+ * Termo de busca
3852
+ * @type {string}
3853
+ * @memberof CustomerServiceApiAdminServiceCustomerClients
3854
+ */
3855
+ readonly search?: string;
3856
+ /**
3857
+ * Filtrar por clientes ativos (padrão true)
3858
+ * @type {boolean}
3859
+ * @memberof CustomerServiceApiAdminServiceCustomerClients
3860
+ */
3861
+ readonly isActive?: boolean;
3862
+ /**
3863
+ * Número da página
3864
+ * @type {number}
3865
+ * @memberof CustomerServiceApiAdminServiceCustomerClients
3866
+ */
3867
+ readonly page?: number;
3868
+ /**
3869
+ * Itens por página
3870
+ * @type {number}
3871
+ * @memberof CustomerServiceApiAdminServiceCustomerClients
3872
+ */
3873
+ readonly perPage?: number;
3874
+ }
3875
+ /**
3876
+ * CustomerServiceApi - object-oriented interface
3877
+ * @export
3878
+ * @class CustomerServiceApi
3879
+ * @extends {BaseAPI}
3880
+ */
3881
+ export declare class CustomerServiceApi extends BaseAPI {
3882
+ /**
3883
+ * Retorna uma lista de marcas de um cliente específico obtidas do serviço de atendimento ao cliente.
3884
+ * @summary Listar marcas de um cliente do serviço de atendimento ao cliente
3885
+ * @param {CustomerServiceApiAdminServiceCustomerBrandsRequest} requestParameters Request parameters.
3886
+ * @param {*} [options] Override http request option.
3887
+ * @throws {RequiredError}
3888
+ * @memberof CustomerServiceApi
3889
+ */
3890
+ adminServiceCustomerBrands(requestParameters: CustomerServiceApiAdminServiceCustomerBrandsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminServiceCustomerBrands200Response, any, {}>>;
3891
+ /**
3892
+ * Retorna uma lista de clientes obtidos do serviço de atendimento ao cliente.
3893
+ * @summary Listar clientes do serviço de atendimento ao cliente
3894
+ * @param {CustomerServiceApiAdminServiceCustomerClientsRequest} requestParameters Request parameters.
3895
+ * @param {*} [options] Override http request option.
3896
+ * @throws {RequiredError}
3897
+ * @memberof CustomerServiceApi
3898
+ */
3899
+ adminServiceCustomerClients(requestParameters?: CustomerServiceApiAdminServiceCustomerClientsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminServiceCustomerClients200Response, any, {}>>;
3900
+ }
3586
3901
  /**
3587
3902
  * ErrorReportsApi - axios parameter creator
3588
3903
  * @export
package/dist/api.js CHANGED
@@ -84,7 +84,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
84
84
  return to.concat(ar || Array.prototype.slice.call(from));
85
85
  };
86
86
  Object.defineProperty(exports, "__esModule", { value: true });
87
- exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.StepsApi = exports.StepsApiFactory = exports.StepsApiFp = exports.StepsApiAxiosParamCreator = exports.RolesApi = exports.RolesApiFactory = exports.RolesApiFp = exports.RolesApiAxiosParamCreator = exports.PromotionApi = exports.PromotionApiFactory = exports.PromotionApiFp = exports.PromotionApiAxiosParamCreator = exports.PermissionsApi = exports.PermissionsApiFactory = exports.PermissionsApiFp = exports.PermissionsApiAxiosParamCreator = exports.MetricsApi = exports.MetricsApiFactory = exports.MetricsApiFp = exports.MetricsApiAxiosParamCreator = exports.LogsApi = exports.LogsApiFactory = exports.LogsApiFp = exports.LogsApiAxiosParamCreator = exports.ErrorsApi = exports.ErrorsApiFactory = exports.ErrorsApiFp = exports.ErrorsApiAxiosParamCreator = exports.ErrorReportsApi = exports.ErrorReportsApiFactory = exports.ErrorReportsApiFp = exports.ErrorReportsApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.ApiLogsApi = exports.ApiLogsApiFactory = exports.ApiLogsApiFp = exports.ApiLogsApiAxiosParamCreator = exports.PromotionStartRequestPermissionsEnum = exports.PromotionStart200ResponseUserPermissionsEnum = void 0;
87
+ exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.StepsApi = exports.StepsApiFactory = exports.StepsApiFp = exports.StepsApiAxiosParamCreator = exports.RolesApi = exports.RolesApiFactory = exports.RolesApiFp = exports.RolesApiAxiosParamCreator = exports.PromotionApi = exports.PromotionApiFactory = exports.PromotionApiFp = exports.PromotionApiAxiosParamCreator = exports.PermissionsApi = exports.PermissionsApiFactory = exports.PermissionsApiFp = exports.PermissionsApiAxiosParamCreator = exports.MetricsApi = exports.MetricsApiFactory = exports.MetricsApiFp = exports.MetricsApiAxiosParamCreator = exports.LogsApi = exports.LogsApiFactory = exports.LogsApiFp = exports.LogsApiAxiosParamCreator = exports.ErrorsApi = exports.ErrorsApiFactory = exports.ErrorsApiFp = exports.ErrorsApiAxiosParamCreator = exports.ErrorReportsApi = exports.ErrorReportsApiFactory = exports.ErrorReportsApiFp = exports.ErrorReportsApiAxiosParamCreator = exports.CustomerServiceApi = exports.CustomerServiceApiFactory = exports.CustomerServiceApiFp = exports.CustomerServiceApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.ApiLogsApi = exports.ApiLogsApiFactory = exports.ApiLogsApiFp = exports.ApiLogsApiAxiosParamCreator = exports.PromotionStartRequestPermissionsEnum = exports.PromotionStart200ResponseUserPermissionsEnum = void 0;
88
88
  var axios_1 = require("axios");
89
89
  // Some imports not used depending on template conditions
90
90
  // @ts-ignore
@@ -891,6 +891,266 @@ var AuthApi = /** @class */ (function (_super) {
891
891
  return AuthApi;
892
892
  }(base_1.BaseAPI));
893
893
  exports.AuthApi = AuthApi;
894
+ /**
895
+ * CustomerServiceApi - axios parameter creator
896
+ * @export
897
+ */
898
+ var CustomerServiceApiAxiosParamCreator = function (configuration) {
899
+ var _this = this;
900
+ return {
901
+ /**
902
+ * Retorna uma lista de marcas de um cliente específico obtidas do serviço de atendimento ao cliente.
903
+ * @summary Listar marcas de um cliente do serviço de atendimento ao cliente
904
+ * @param {string} clientId ID do cliente
905
+ * @param {string} [search] Termo de busca
906
+ * @param {number} [page] Número da página
907
+ * @param {number} [perPage] Itens por página
908
+ * @param {*} [options] Override http request option.
909
+ * @throws {RequiredError}
910
+ */
911
+ adminServiceCustomerBrands: function (clientId_1, search_1, page_1, perPage_1) {
912
+ var args_1 = [];
913
+ for (var _i = 4; _i < arguments.length; _i++) {
914
+ args_1[_i - 4] = arguments[_i];
915
+ }
916
+ return __awaiter(_this, __spreadArray([clientId_1, search_1, page_1, perPage_1], args_1, true), void 0, function (clientId, search, page, perPage, options) {
917
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
918
+ if (options === void 0) { options = {}; }
919
+ return __generator(this, function (_a) {
920
+ switch (_a.label) {
921
+ case 0:
922
+ // verify required parameter 'clientId' is not null or undefined
923
+ (0, common_1.assertParamExists)('adminServiceCustomerBrands', 'clientId', clientId);
924
+ localVarPath = "/admin/service/customer/brands/{client_id}"
925
+ .replace("{".concat("client_id", "}"), encodeURIComponent(String(clientId)));
926
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
927
+ if (configuration) {
928
+ baseOptions = configuration.baseOptions;
929
+ }
930
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
931
+ localVarHeaderParameter = {};
932
+ localVarQueryParameter = {};
933
+ // authentication bearerAuth required
934
+ // http bearer authentication required
935
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
936
+ case 1:
937
+ // authentication bearerAuth required
938
+ // http bearer authentication required
939
+ _a.sent();
940
+ if (search !== undefined) {
941
+ localVarQueryParameter['search'] = search;
942
+ }
943
+ if (page !== undefined) {
944
+ localVarQueryParameter['page'] = page;
945
+ }
946
+ if (perPage !== undefined) {
947
+ localVarQueryParameter['perPage'] = perPage;
948
+ }
949
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
950
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
951
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
952
+ return [2 /*return*/, {
953
+ url: (0, common_1.toPathString)(localVarUrlObj),
954
+ options: localVarRequestOptions,
955
+ }];
956
+ }
957
+ });
958
+ });
959
+ },
960
+ /**
961
+ * Retorna uma lista de clientes obtidos do serviço de atendimento ao cliente.
962
+ * @summary Listar clientes do serviço de atendimento ao cliente
963
+ * @param {string} [search] Termo de busca
964
+ * @param {boolean} [isActive] Filtrar por clientes ativos (padrão true)
965
+ * @param {number} [page] Número da página
966
+ * @param {number} [perPage] Itens por página
967
+ * @param {*} [options] Override http request option.
968
+ * @throws {RequiredError}
969
+ */
970
+ adminServiceCustomerClients: function (search_1, isActive_1, page_1, perPage_1) {
971
+ var args_1 = [];
972
+ for (var _i = 4; _i < arguments.length; _i++) {
973
+ args_1[_i - 4] = arguments[_i];
974
+ }
975
+ return __awaiter(_this, __spreadArray([search_1, isActive_1, page_1, perPage_1], args_1, true), void 0, function (search, isActive, page, perPage, options) {
976
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
977
+ if (options === void 0) { options = {}; }
978
+ return __generator(this, function (_a) {
979
+ switch (_a.label) {
980
+ case 0:
981
+ localVarPath = "/admin/service/customer/clients";
982
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
983
+ if (configuration) {
984
+ baseOptions = configuration.baseOptions;
985
+ }
986
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
987
+ localVarHeaderParameter = {};
988
+ localVarQueryParameter = {};
989
+ // authentication bearerAuth required
990
+ // http bearer authentication required
991
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
992
+ case 1:
993
+ // authentication bearerAuth required
994
+ // http bearer authentication required
995
+ _a.sent();
996
+ if (search !== undefined) {
997
+ localVarQueryParameter['search'] = search;
998
+ }
999
+ if (isActive !== undefined) {
1000
+ localVarQueryParameter['isActive'] = isActive;
1001
+ }
1002
+ if (page !== undefined) {
1003
+ localVarQueryParameter['page'] = page;
1004
+ }
1005
+ if (perPage !== undefined) {
1006
+ localVarQueryParameter['perPage'] = perPage;
1007
+ }
1008
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1009
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1010
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1011
+ return [2 /*return*/, {
1012
+ url: (0, common_1.toPathString)(localVarUrlObj),
1013
+ options: localVarRequestOptions,
1014
+ }];
1015
+ }
1016
+ });
1017
+ });
1018
+ },
1019
+ };
1020
+ };
1021
+ exports.CustomerServiceApiAxiosParamCreator = CustomerServiceApiAxiosParamCreator;
1022
+ /**
1023
+ * CustomerServiceApi - functional programming interface
1024
+ * @export
1025
+ */
1026
+ var CustomerServiceApiFp = function (configuration) {
1027
+ var localVarAxiosParamCreator = (0, exports.CustomerServiceApiAxiosParamCreator)(configuration);
1028
+ return {
1029
+ /**
1030
+ * Retorna uma lista de marcas de um cliente específico obtidas do serviço de atendimento ao cliente.
1031
+ * @summary Listar marcas de um cliente do serviço de atendimento ao cliente
1032
+ * @param {string} clientId ID do cliente
1033
+ * @param {string} [search] Termo de busca
1034
+ * @param {number} [page] Número da página
1035
+ * @param {number} [perPage] Itens por página
1036
+ * @param {*} [options] Override http request option.
1037
+ * @throws {RequiredError}
1038
+ */
1039
+ adminServiceCustomerBrands: function (clientId, search, page, perPage, options) {
1040
+ return __awaiter(this, void 0, void 0, function () {
1041
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1042
+ var _a, _b, _c;
1043
+ return __generator(this, function (_d) {
1044
+ switch (_d.label) {
1045
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.adminServiceCustomerBrands(clientId, search, page, perPage, options)];
1046
+ case 1:
1047
+ localVarAxiosArgs = _d.sent();
1048
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1049
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CustomerServiceApi.adminServiceCustomerBrands']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1050
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1051
+ }
1052
+ });
1053
+ });
1054
+ },
1055
+ /**
1056
+ * Retorna uma lista de clientes obtidos do serviço de atendimento ao cliente.
1057
+ * @summary Listar clientes do serviço de atendimento ao cliente
1058
+ * @param {string} [search] Termo de busca
1059
+ * @param {boolean} [isActive] Filtrar por clientes ativos (padrão true)
1060
+ * @param {number} [page] Número da página
1061
+ * @param {number} [perPage] Itens por página
1062
+ * @param {*} [options] Override http request option.
1063
+ * @throws {RequiredError}
1064
+ */
1065
+ adminServiceCustomerClients: function (search, isActive, page, perPage, options) {
1066
+ return __awaiter(this, void 0, void 0, function () {
1067
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1068
+ var _a, _b, _c;
1069
+ return __generator(this, function (_d) {
1070
+ switch (_d.label) {
1071
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.adminServiceCustomerClients(search, isActive, page, perPage, options)];
1072
+ case 1:
1073
+ localVarAxiosArgs = _d.sent();
1074
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1075
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CustomerServiceApi.adminServiceCustomerClients']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1076
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1077
+ }
1078
+ });
1079
+ });
1080
+ },
1081
+ };
1082
+ };
1083
+ exports.CustomerServiceApiFp = CustomerServiceApiFp;
1084
+ /**
1085
+ * CustomerServiceApi - factory interface
1086
+ * @export
1087
+ */
1088
+ var CustomerServiceApiFactory = function (configuration, basePath, axios) {
1089
+ var localVarFp = (0, exports.CustomerServiceApiFp)(configuration);
1090
+ return {
1091
+ /**
1092
+ * Retorna uma lista de marcas de um cliente específico obtidas do serviço de atendimento ao cliente.
1093
+ * @summary Listar marcas de um cliente do serviço de atendimento ao cliente
1094
+ * @param {CustomerServiceApiAdminServiceCustomerBrandsRequest} requestParameters Request parameters.
1095
+ * @param {*} [options] Override http request option.
1096
+ * @throws {RequiredError}
1097
+ */
1098
+ adminServiceCustomerBrands: function (requestParameters, options) {
1099
+ return localVarFp.adminServiceCustomerBrands(requestParameters.clientId, requestParameters.search, requestParameters.page, requestParameters.perPage, options).then(function (request) { return request(axios, basePath); });
1100
+ },
1101
+ /**
1102
+ * Retorna uma lista de clientes obtidos do serviço de atendimento ao cliente.
1103
+ * @summary Listar clientes do serviço de atendimento ao cliente
1104
+ * @param {CustomerServiceApiAdminServiceCustomerClientsRequest} requestParameters Request parameters.
1105
+ * @param {*} [options] Override http request option.
1106
+ * @throws {RequiredError}
1107
+ */
1108
+ adminServiceCustomerClients: function (requestParameters, options) {
1109
+ if (requestParameters === void 0) { requestParameters = {}; }
1110
+ return localVarFp.adminServiceCustomerClients(requestParameters.search, requestParameters.isActive, requestParameters.page, requestParameters.perPage, options).then(function (request) { return request(axios, basePath); });
1111
+ },
1112
+ };
1113
+ };
1114
+ exports.CustomerServiceApiFactory = CustomerServiceApiFactory;
1115
+ /**
1116
+ * CustomerServiceApi - object-oriented interface
1117
+ * @export
1118
+ * @class CustomerServiceApi
1119
+ * @extends {BaseAPI}
1120
+ */
1121
+ var CustomerServiceApi = /** @class */ (function (_super) {
1122
+ __extends(CustomerServiceApi, _super);
1123
+ function CustomerServiceApi() {
1124
+ return _super !== null && _super.apply(this, arguments) || this;
1125
+ }
1126
+ /**
1127
+ * Retorna uma lista de marcas de um cliente específico obtidas do serviço de atendimento ao cliente.
1128
+ * @summary Listar marcas de um cliente do serviço de atendimento ao cliente
1129
+ * @param {CustomerServiceApiAdminServiceCustomerBrandsRequest} requestParameters Request parameters.
1130
+ * @param {*} [options] Override http request option.
1131
+ * @throws {RequiredError}
1132
+ * @memberof CustomerServiceApi
1133
+ */
1134
+ CustomerServiceApi.prototype.adminServiceCustomerBrands = function (requestParameters, options) {
1135
+ var _this = this;
1136
+ 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); });
1137
+ };
1138
+ /**
1139
+ * Retorna uma lista de clientes obtidos do serviço de atendimento ao cliente.
1140
+ * @summary Listar clientes do serviço de atendimento ao cliente
1141
+ * @param {CustomerServiceApiAdminServiceCustomerClientsRequest} requestParameters Request parameters.
1142
+ * @param {*} [options] Override http request option.
1143
+ * @throws {RequiredError}
1144
+ * @memberof CustomerServiceApi
1145
+ */
1146
+ CustomerServiceApi.prototype.adminServiceCustomerClients = function (requestParameters, options) {
1147
+ var _this = this;
1148
+ if (requestParameters === void 0) { requestParameters = {}; }
1149
+ return (0, exports.CustomerServiceApiFp)(this.configuration).adminServiceCustomerClients(requestParameters.search, requestParameters.isActive, requestParameters.page, requestParameters.perPage, options).then(function (request) { return request(_this.axios, _this.basePath); });
1150
+ };
1151
+ return CustomerServiceApi;
1152
+ }(base_1.BaseAPI));
1153
+ exports.CustomerServiceApi = CustomerServiceApi;
894
1154
  /**
895
1155
  * ErrorReportsApi - axios parameter creator
896
1156
  * @export
@@ -0,0 +1,26 @@
1
+ # AdminServiceCustomerBrands200Response
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;AdminServiceCustomerBrands200ResponseContentInner&gt;**](AdminServiceCustomerBrands200ResponseContentInner.md) | | [optional] [default to undefined]
11
+ **paging** | [**AdminServiceCustomerClients200ResponsePaging**](AdminServiceCustomerClients200ResponsePaging.md) | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { AdminServiceCustomerBrands200Response } from '@handsondigital/idplugger-admin';
17
+
18
+ const instance: AdminServiceCustomerBrands200Response = {
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,24 @@
1
+ # AdminServiceCustomerBrands200ResponseContentInner
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **number** | | [optional] [default to undefined]
9
+ **name** | **string** | | [optional] [default to undefined]
10
+ **client_id** | **number** | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { AdminServiceCustomerBrands200ResponseContentInner } from '@handsondigital/idplugger-admin';
16
+
17
+ const instance: AdminServiceCustomerBrands200ResponseContentInner = {
18
+ id,
19
+ name,
20
+ client_id,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)