@handsondigital/idplugger-admin 2.7.0 → 2.7.2
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/.openapi-generator/FILES +2 -1
- package/README.md +4 -3
- package/api.ts +89 -21
- package/dist/api.d.ts +83 -18
- package/dist/api.js +15 -10
- package/docs/AdminPromotionConfigsIndex200Response.md +1 -1
- package/docs/AdminPromotionConfigsIndex200ResponseConfigsValue.md +32 -0
- package/docs/AdminPromotionConfigsIndex200ResponseConfigsValueMetadata.md +26 -0
- package/docs/AdminPromotionConfigsShow200ResponseConfig.md +4 -0
- package/docs/AdminPromotionConfigsUpdate200Response.md +1 -1
- package/docs/AdminPromotionConfigsUpsert200Response.md +1 -1
- package/docs/ConfigsApi.md +4 -1
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -31,7 +31,8 @@ docs/AdminPromotionCacheClear200Response.md
|
|
|
31
31
|
docs/AdminPromotionCacheClear200ResponseContent.md
|
|
32
32
|
docs/AdminPromotionCacheClear500Response.md
|
|
33
33
|
docs/AdminPromotionConfigsIndex200Response.md
|
|
34
|
-
docs/
|
|
34
|
+
docs/AdminPromotionConfigsIndex200ResponseConfigsValue.md
|
|
35
|
+
docs/AdminPromotionConfigsIndex200ResponseConfigsValueMetadata.md
|
|
35
36
|
docs/AdminPromotionConfigsIndex500Response.md
|
|
36
37
|
docs/AdminPromotionConfigsShow200Response.md
|
|
37
38
|
docs/AdminPromotionConfigsShow200ResponseConfig.md
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @handsondigital/idplugger-admin@2.7.
|
|
1
|
+
## @handsondigital/idplugger-admin@2.7.2
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @handsondigital/idplugger-admin@2.7.
|
|
39
|
+
npm install @handsondigital/idplugger-admin@2.7.2 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -133,7 +133,8 @@ Class | Method | HTTP request | Description
|
|
|
133
133
|
- [AdminPromotionCacheClear200ResponseContent](docs/AdminPromotionCacheClear200ResponseContent.md)
|
|
134
134
|
- [AdminPromotionCacheClear500Response](docs/AdminPromotionCacheClear500Response.md)
|
|
135
135
|
- [AdminPromotionConfigsIndex200Response](docs/AdminPromotionConfigsIndex200Response.md)
|
|
136
|
-
- [
|
|
136
|
+
- [AdminPromotionConfigsIndex200ResponseConfigsValue](docs/AdminPromotionConfigsIndex200ResponseConfigsValue.md)
|
|
137
|
+
- [AdminPromotionConfigsIndex200ResponseConfigsValueMetadata](docs/AdminPromotionConfigsIndex200ResponseConfigsValueMetadata.md)
|
|
137
138
|
- [AdminPromotionConfigsIndex500Response](docs/AdminPromotionConfigsIndex500Response.md)
|
|
138
139
|
- [AdminPromotionConfigsShow200Response](docs/AdminPromotionConfigsShow200Response.md)
|
|
139
140
|
- [AdminPromotionConfigsShow200ResponseConfig](docs/AdminPromotionConfigsShow200ResponseConfig.md)
|
package/api.ts
CHANGED
|
@@ -812,10 +812,10 @@ export interface AdminPromotionConfigsIndex200Response {
|
|
|
812
812
|
'result'?: string;
|
|
813
813
|
/**
|
|
814
814
|
*
|
|
815
|
-
* @type {
|
|
815
|
+
* @type {{ [key: string]: AdminPromotionConfigsIndex200ResponseConfigsValue; }}
|
|
816
816
|
* @memberof AdminPromotionConfigsIndex200Response
|
|
817
817
|
*/
|
|
818
|
-
'configs'?:
|
|
818
|
+
'configs'?: { [key: string]: AdminPromotionConfigsIndex200ResponseConfigsValue; };
|
|
819
819
|
/**
|
|
820
820
|
*
|
|
821
821
|
* @type {object}
|
|
@@ -826,42 +826,54 @@ export interface AdminPromotionConfigsIndex200Response {
|
|
|
826
826
|
/**
|
|
827
827
|
*
|
|
828
828
|
* @export
|
|
829
|
-
* @interface
|
|
829
|
+
* @interface AdminPromotionConfigsIndex200ResponseConfigsValue
|
|
830
830
|
*/
|
|
831
|
-
export interface
|
|
831
|
+
export interface AdminPromotionConfigsIndex200ResponseConfigsValue {
|
|
832
832
|
/**
|
|
833
833
|
*
|
|
834
834
|
* @type {number}
|
|
835
|
-
* @memberof
|
|
835
|
+
* @memberof AdminPromotionConfigsIndex200ResponseConfigsValue
|
|
836
836
|
*/
|
|
837
837
|
'id'?: number;
|
|
838
838
|
/**
|
|
839
839
|
*
|
|
840
840
|
* @type {string}
|
|
841
|
-
* @memberof
|
|
841
|
+
* @memberof AdminPromotionConfigsIndex200ResponseConfigsValue
|
|
842
842
|
*/
|
|
843
843
|
'key'?: string;
|
|
844
844
|
/**
|
|
845
845
|
*
|
|
846
846
|
* @type {string}
|
|
847
|
-
* @memberof
|
|
847
|
+
* @memberof AdminPromotionConfigsIndex200ResponseConfigsValue
|
|
848
848
|
*/
|
|
849
849
|
'value'?: string | null;
|
|
850
850
|
/**
|
|
851
851
|
*
|
|
852
852
|
* @type {string}
|
|
853
|
-
* @memberof
|
|
853
|
+
* @memberof AdminPromotionConfigsIndex200ResponseConfigsValue
|
|
854
854
|
*/
|
|
855
|
-
'type'?:
|
|
855
|
+
'type'?: AdminPromotionConfigsIndex200ResponseConfigsValueTypeEnum;
|
|
856
856
|
/**
|
|
857
857
|
*
|
|
858
858
|
* @type {string}
|
|
859
|
-
* @memberof
|
|
859
|
+
* @memberof AdminPromotionConfigsIndex200ResponseConfigsValue
|
|
860
860
|
*/
|
|
861
861
|
'grupo'?: string | null;
|
|
862
|
+
/**
|
|
863
|
+
*
|
|
864
|
+
* @type {AdminPromotionConfigsIndex200ResponseConfigsValueMetadata}
|
|
865
|
+
* @memberof AdminPromotionConfigsIndex200ResponseConfigsValue
|
|
866
|
+
*/
|
|
867
|
+
'metadata'?: AdminPromotionConfigsIndex200ResponseConfigsValueMetadata;
|
|
868
|
+
/**
|
|
869
|
+
* Estrutura DTO tipada da configuração (se disponível)
|
|
870
|
+
* @type {object}
|
|
871
|
+
* @memberof AdminPromotionConfigsIndex200ResponseConfigsValue
|
|
872
|
+
*/
|
|
873
|
+
'dto'?: object | null;
|
|
862
874
|
}
|
|
863
875
|
|
|
864
|
-
export const
|
|
876
|
+
export const AdminPromotionConfigsIndex200ResponseConfigsValueTypeEnum = {
|
|
865
877
|
Text: 'text',
|
|
866
878
|
Uuid: 'uuid',
|
|
867
879
|
Html: 'html',
|
|
@@ -875,8 +887,39 @@ export const AdminPromotionConfigsIndex200ResponseConfigsInnerTypeEnum = {
|
|
|
875
887
|
Datetime: 'datetime'
|
|
876
888
|
} as const;
|
|
877
889
|
|
|
878
|
-
export type
|
|
890
|
+
export type AdminPromotionConfigsIndex200ResponseConfigsValueTypeEnum = typeof AdminPromotionConfigsIndex200ResponseConfigsValueTypeEnum[keyof typeof AdminPromotionConfigsIndex200ResponseConfigsValueTypeEnum];
|
|
879
891
|
|
|
892
|
+
/**
|
|
893
|
+
*
|
|
894
|
+
* @export
|
|
895
|
+
* @interface AdminPromotionConfigsIndex200ResponseConfigsValueMetadata
|
|
896
|
+
*/
|
|
897
|
+
export interface AdminPromotionConfigsIndex200ResponseConfigsValueMetadata {
|
|
898
|
+
/**
|
|
899
|
+
*
|
|
900
|
+
* @type {string}
|
|
901
|
+
* @memberof AdminPromotionConfigsIndex200ResponseConfigsValueMetadata
|
|
902
|
+
*/
|
|
903
|
+
'name'?: string;
|
|
904
|
+
/**
|
|
905
|
+
*
|
|
906
|
+
* @type {string}
|
|
907
|
+
* @memberof AdminPromotionConfigsIndex200ResponseConfigsValueMetadata
|
|
908
|
+
*/
|
|
909
|
+
'description'?: string;
|
|
910
|
+
/**
|
|
911
|
+
*
|
|
912
|
+
* @type {string}
|
|
913
|
+
* @memberof AdminPromotionConfigsIndex200ResponseConfigsValueMetadata
|
|
914
|
+
*/
|
|
915
|
+
'category'?: string;
|
|
916
|
+
/**
|
|
917
|
+
*
|
|
918
|
+
* @type {boolean}
|
|
919
|
+
* @memberof AdminPromotionConfigsIndex200ResponseConfigsValueMetadata
|
|
920
|
+
*/
|
|
921
|
+
'visible'?: boolean;
|
|
922
|
+
}
|
|
880
923
|
/**
|
|
881
924
|
*
|
|
882
925
|
* @export
|
|
@@ -969,6 +1012,18 @@ export interface AdminPromotionConfigsShow200ResponseConfig {
|
|
|
969
1012
|
* @memberof AdminPromotionConfigsShow200ResponseConfig
|
|
970
1013
|
*/
|
|
971
1014
|
'grupo'?: string | null;
|
|
1015
|
+
/**
|
|
1016
|
+
*
|
|
1017
|
+
* @type {AdminPromotionConfigsIndex200ResponseConfigsValueMetadata}
|
|
1018
|
+
* @memberof AdminPromotionConfigsShow200ResponseConfig
|
|
1019
|
+
*/
|
|
1020
|
+
'metadata'?: AdminPromotionConfigsIndex200ResponseConfigsValueMetadata;
|
|
1021
|
+
/**
|
|
1022
|
+
* Estrutura DTO tipada da configuração (se disponível)
|
|
1023
|
+
* @type {object}
|
|
1024
|
+
* @memberof AdminPromotionConfigsShow200ResponseConfig
|
|
1025
|
+
*/
|
|
1026
|
+
'dto'?: object | null;
|
|
972
1027
|
}
|
|
973
1028
|
/**
|
|
974
1029
|
*
|
|
@@ -1100,10 +1155,10 @@ export interface AdminPromotionConfigsUpdate200Response {
|
|
|
1100
1155
|
'message'?: string;
|
|
1101
1156
|
/**
|
|
1102
1157
|
*
|
|
1103
|
-
* @type {
|
|
1158
|
+
* @type {AdminPromotionConfigsIndex200ResponseConfigsValue}
|
|
1104
1159
|
* @memberof AdminPromotionConfigsUpdate200Response
|
|
1105
1160
|
*/
|
|
1106
|
-
'config'?:
|
|
1161
|
+
'config'?: AdminPromotionConfigsIndex200ResponseConfigsValue;
|
|
1107
1162
|
}
|
|
1108
1163
|
/**
|
|
1109
1164
|
*
|
|
@@ -1173,10 +1228,10 @@ export interface AdminPromotionConfigsUpsert200Response {
|
|
|
1173
1228
|
'message'?: string;
|
|
1174
1229
|
/**
|
|
1175
1230
|
*
|
|
1176
|
-
* @type {
|
|
1231
|
+
* @type {AdminPromotionConfigsIndex200ResponseConfigsValue}
|
|
1177
1232
|
* @memberof AdminPromotionConfigsUpsert200Response
|
|
1178
1233
|
*/
|
|
1179
|
-
'config'?:
|
|
1234
|
+
'config'?: AdminPromotionConfigsIndex200ResponseConfigsValue;
|
|
1180
1235
|
}
|
|
1181
1236
|
/**
|
|
1182
1237
|
*
|
|
@@ -4963,10 +5018,11 @@ export const ConfigsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
4963
5018
|
* @param {string} [grupo] Filtrar por grupo
|
|
4964
5019
|
* @param {AdminPromotionConfigsIndexTypeEnum} [type] Filtrar por tipo
|
|
4965
5020
|
* @param {number} [perPage] Itens por página
|
|
5021
|
+
* @param {number} [page] Número da página
|
|
4966
5022
|
* @param {*} [options] Override http request option.
|
|
4967
5023
|
* @throws {RequiredError}
|
|
4968
5024
|
*/
|
|
4969
|
-
adminPromotionConfigsIndex: async (promotionId: string, key?: string, grupo?: string, type?: AdminPromotionConfigsIndexTypeEnum, perPage?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5025
|
+
adminPromotionConfigsIndex: async (promotionId: string, key?: string, grupo?: string, type?: AdminPromotionConfigsIndexTypeEnum, perPage?: number, page?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4970
5026
|
// verify required parameter 'promotionId' is not null or undefined
|
|
4971
5027
|
assertParamExists('adminPromotionConfigsIndex', 'promotionId', promotionId)
|
|
4972
5028
|
const localVarPath = `/v3/admin/promotion/{promotion_id}/configs`
|
|
@@ -5002,6 +5058,10 @@ export const ConfigsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
5002
5058
|
localVarQueryParameter['_per_page'] = perPage;
|
|
5003
5059
|
}
|
|
5004
5060
|
|
|
5061
|
+
if (page !== undefined) {
|
|
5062
|
+
localVarQueryParameter['page'] = page;
|
|
5063
|
+
}
|
|
5064
|
+
|
|
5005
5065
|
|
|
5006
5066
|
|
|
5007
5067
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -5247,11 +5307,12 @@ export const ConfigsApiFp = function(configuration?: Configuration) {
|
|
|
5247
5307
|
* @param {string} [grupo] Filtrar por grupo
|
|
5248
5308
|
* @param {AdminPromotionConfigsIndexTypeEnum} [type] Filtrar por tipo
|
|
5249
5309
|
* @param {number} [perPage] Itens por página
|
|
5310
|
+
* @param {number} [page] Número da página
|
|
5250
5311
|
* @param {*} [options] Override http request option.
|
|
5251
5312
|
* @throws {RequiredError}
|
|
5252
5313
|
*/
|
|
5253
|
-
async adminPromotionConfigsIndex(promotionId: string, key?: string, grupo?: string, type?: AdminPromotionConfigsIndexTypeEnum, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminPromotionConfigsIndex200Response>> {
|
|
5254
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.adminPromotionConfigsIndex(promotionId, key, grupo, type, perPage, options);
|
|
5314
|
+
async adminPromotionConfigsIndex(promotionId: string, key?: string, grupo?: string, type?: AdminPromotionConfigsIndexTypeEnum, perPage?: number, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminPromotionConfigsIndex200Response>> {
|
|
5315
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminPromotionConfigsIndex(promotionId, key, grupo, type, perPage, page, options);
|
|
5255
5316
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5256
5317
|
const localVarOperationServerBasePath = operationServerMap['ConfigsApi.adminPromotionConfigsIndex']?.[localVarOperationServerIndex]?.url;
|
|
5257
5318
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -5344,7 +5405,7 @@ export const ConfigsApiFactory = function (configuration?: Configuration, basePa
|
|
|
5344
5405
|
* @throws {RequiredError}
|
|
5345
5406
|
*/
|
|
5346
5407
|
adminPromotionConfigsIndex(requestParameters: ConfigsApiAdminPromotionConfigsIndexRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminPromotionConfigsIndex200Response> {
|
|
5347
|
-
return localVarFp.adminPromotionConfigsIndex(requestParameters.promotionId, requestParameters.key, requestParameters.grupo, requestParameters.type, requestParameters.perPage, options).then((request) => request(axios, basePath));
|
|
5408
|
+
return localVarFp.adminPromotionConfigsIndex(requestParameters.promotionId, requestParameters.key, requestParameters.grupo, requestParameters.type, requestParameters.perPage, requestParameters.page, options).then((request) => request(axios, basePath));
|
|
5348
5409
|
},
|
|
5349
5410
|
/**
|
|
5350
5411
|
*
|
|
@@ -5439,6 +5500,13 @@ export interface ConfigsApiAdminPromotionConfigsIndexRequest {
|
|
|
5439
5500
|
* @memberof ConfigsApiAdminPromotionConfigsIndex
|
|
5440
5501
|
*/
|
|
5441
5502
|
readonly perPage?: number
|
|
5503
|
+
|
|
5504
|
+
/**
|
|
5505
|
+
* Número da página
|
|
5506
|
+
* @type {number}
|
|
5507
|
+
* @memberof ConfigsApiAdminPromotionConfigsIndex
|
|
5508
|
+
*/
|
|
5509
|
+
readonly page?: number
|
|
5442
5510
|
}
|
|
5443
5511
|
|
|
5444
5512
|
/**
|
|
@@ -5562,7 +5630,7 @@ export class ConfigsApi extends BaseAPI {
|
|
|
5562
5630
|
* @memberof ConfigsApi
|
|
5563
5631
|
*/
|
|
5564
5632
|
public adminPromotionConfigsIndex(requestParameters: ConfigsApiAdminPromotionConfigsIndexRequest, options?: RawAxiosRequestConfig) {
|
|
5565
|
-
return ConfigsApiFp(this.configuration).adminPromotionConfigsIndex(requestParameters.promotionId, requestParameters.key, requestParameters.grupo, requestParameters.type, requestParameters.perPage, options).then((request) => request(this.axios, this.basePath));
|
|
5633
|
+
return ConfigsApiFp(this.configuration).adminPromotionConfigsIndex(requestParameters.promotionId, requestParameters.key, requestParameters.grupo, requestParameters.type, requestParameters.perPage, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
5566
5634
|
}
|
|
5567
5635
|
|
|
5568
5636
|
/**
|
package/dist/api.d.ts
CHANGED
|
@@ -804,10 +804,12 @@ export interface AdminPromotionConfigsIndex200Response {
|
|
|
804
804
|
'result'?: string;
|
|
805
805
|
/**
|
|
806
806
|
*
|
|
807
|
-
* @type {
|
|
807
|
+
* @type {{ [key: string]: AdminPromotionConfigsIndex200ResponseConfigsValue; }}
|
|
808
808
|
* @memberof AdminPromotionConfigsIndex200Response
|
|
809
809
|
*/
|
|
810
|
-
'configs'?:
|
|
810
|
+
'configs'?: {
|
|
811
|
+
[key: string]: AdminPromotionConfigsIndex200ResponseConfigsValue;
|
|
812
|
+
};
|
|
811
813
|
/**
|
|
812
814
|
*
|
|
813
815
|
* @type {object}
|
|
@@ -818,41 +820,53 @@ export interface AdminPromotionConfigsIndex200Response {
|
|
|
818
820
|
/**
|
|
819
821
|
*
|
|
820
822
|
* @export
|
|
821
|
-
* @interface
|
|
823
|
+
* @interface AdminPromotionConfigsIndex200ResponseConfigsValue
|
|
822
824
|
*/
|
|
823
|
-
export interface
|
|
825
|
+
export interface AdminPromotionConfigsIndex200ResponseConfigsValue {
|
|
824
826
|
/**
|
|
825
827
|
*
|
|
826
828
|
* @type {number}
|
|
827
|
-
* @memberof
|
|
829
|
+
* @memberof AdminPromotionConfigsIndex200ResponseConfigsValue
|
|
828
830
|
*/
|
|
829
831
|
'id'?: number;
|
|
830
832
|
/**
|
|
831
833
|
*
|
|
832
834
|
* @type {string}
|
|
833
|
-
* @memberof
|
|
835
|
+
* @memberof AdminPromotionConfigsIndex200ResponseConfigsValue
|
|
834
836
|
*/
|
|
835
837
|
'key'?: string;
|
|
836
838
|
/**
|
|
837
839
|
*
|
|
838
840
|
* @type {string}
|
|
839
|
-
* @memberof
|
|
841
|
+
* @memberof AdminPromotionConfigsIndex200ResponseConfigsValue
|
|
840
842
|
*/
|
|
841
843
|
'value'?: string | null;
|
|
842
844
|
/**
|
|
843
845
|
*
|
|
844
846
|
* @type {string}
|
|
845
|
-
* @memberof
|
|
847
|
+
* @memberof AdminPromotionConfigsIndex200ResponseConfigsValue
|
|
846
848
|
*/
|
|
847
|
-
'type'?:
|
|
849
|
+
'type'?: AdminPromotionConfigsIndex200ResponseConfigsValueTypeEnum;
|
|
848
850
|
/**
|
|
849
851
|
*
|
|
850
852
|
* @type {string}
|
|
851
|
-
* @memberof
|
|
853
|
+
* @memberof AdminPromotionConfigsIndex200ResponseConfigsValue
|
|
852
854
|
*/
|
|
853
855
|
'grupo'?: string | null;
|
|
856
|
+
/**
|
|
857
|
+
*
|
|
858
|
+
* @type {AdminPromotionConfigsIndex200ResponseConfigsValueMetadata}
|
|
859
|
+
* @memberof AdminPromotionConfigsIndex200ResponseConfigsValue
|
|
860
|
+
*/
|
|
861
|
+
'metadata'?: AdminPromotionConfigsIndex200ResponseConfigsValueMetadata;
|
|
862
|
+
/**
|
|
863
|
+
* Estrutura DTO tipada da configuração (se disponível)
|
|
864
|
+
* @type {object}
|
|
865
|
+
* @memberof AdminPromotionConfigsIndex200ResponseConfigsValue
|
|
866
|
+
*/
|
|
867
|
+
'dto'?: object | null;
|
|
854
868
|
}
|
|
855
|
-
export declare const
|
|
869
|
+
export declare const AdminPromotionConfigsIndex200ResponseConfigsValueTypeEnum: {
|
|
856
870
|
readonly Text: "text";
|
|
857
871
|
readonly Uuid: "uuid";
|
|
858
872
|
readonly Html: "html";
|
|
@@ -865,7 +879,38 @@ export declare const AdminPromotionConfigsIndex200ResponseConfigsInnerTypeEnum:
|
|
|
865
879
|
readonly Date: "date";
|
|
866
880
|
readonly Datetime: "datetime";
|
|
867
881
|
};
|
|
868
|
-
export type
|
|
882
|
+
export type AdminPromotionConfigsIndex200ResponseConfigsValueTypeEnum = typeof AdminPromotionConfigsIndex200ResponseConfigsValueTypeEnum[keyof typeof AdminPromotionConfigsIndex200ResponseConfigsValueTypeEnum];
|
|
883
|
+
/**
|
|
884
|
+
*
|
|
885
|
+
* @export
|
|
886
|
+
* @interface AdminPromotionConfigsIndex200ResponseConfigsValueMetadata
|
|
887
|
+
*/
|
|
888
|
+
export interface AdminPromotionConfigsIndex200ResponseConfigsValueMetadata {
|
|
889
|
+
/**
|
|
890
|
+
*
|
|
891
|
+
* @type {string}
|
|
892
|
+
* @memberof AdminPromotionConfigsIndex200ResponseConfigsValueMetadata
|
|
893
|
+
*/
|
|
894
|
+
'name'?: string;
|
|
895
|
+
/**
|
|
896
|
+
*
|
|
897
|
+
* @type {string}
|
|
898
|
+
* @memberof AdminPromotionConfigsIndex200ResponseConfigsValueMetadata
|
|
899
|
+
*/
|
|
900
|
+
'description'?: string;
|
|
901
|
+
/**
|
|
902
|
+
*
|
|
903
|
+
* @type {string}
|
|
904
|
+
* @memberof AdminPromotionConfigsIndex200ResponseConfigsValueMetadata
|
|
905
|
+
*/
|
|
906
|
+
'category'?: string;
|
|
907
|
+
/**
|
|
908
|
+
*
|
|
909
|
+
* @type {boolean}
|
|
910
|
+
* @memberof AdminPromotionConfigsIndex200ResponseConfigsValueMetadata
|
|
911
|
+
*/
|
|
912
|
+
'visible'?: boolean;
|
|
913
|
+
}
|
|
869
914
|
/**
|
|
870
915
|
*
|
|
871
916
|
* @export
|
|
@@ -958,6 +1003,18 @@ export interface AdminPromotionConfigsShow200ResponseConfig {
|
|
|
958
1003
|
* @memberof AdminPromotionConfigsShow200ResponseConfig
|
|
959
1004
|
*/
|
|
960
1005
|
'grupo'?: string | null;
|
|
1006
|
+
/**
|
|
1007
|
+
*
|
|
1008
|
+
* @type {AdminPromotionConfigsIndex200ResponseConfigsValueMetadata}
|
|
1009
|
+
* @memberof AdminPromotionConfigsShow200ResponseConfig
|
|
1010
|
+
*/
|
|
1011
|
+
'metadata'?: AdminPromotionConfigsIndex200ResponseConfigsValueMetadata;
|
|
1012
|
+
/**
|
|
1013
|
+
* Estrutura DTO tipada da configuração (se disponível)
|
|
1014
|
+
* @type {object}
|
|
1015
|
+
* @memberof AdminPromotionConfigsShow200ResponseConfig
|
|
1016
|
+
*/
|
|
1017
|
+
'dto'?: object | null;
|
|
961
1018
|
}
|
|
962
1019
|
/**
|
|
963
1020
|
*
|
|
@@ -1086,10 +1143,10 @@ export interface AdminPromotionConfigsUpdate200Response {
|
|
|
1086
1143
|
'message'?: string;
|
|
1087
1144
|
/**
|
|
1088
1145
|
*
|
|
1089
|
-
* @type {
|
|
1146
|
+
* @type {AdminPromotionConfigsIndex200ResponseConfigsValue}
|
|
1090
1147
|
* @memberof AdminPromotionConfigsUpdate200Response
|
|
1091
1148
|
*/
|
|
1092
|
-
'config'?:
|
|
1149
|
+
'config'?: AdminPromotionConfigsIndex200ResponseConfigsValue;
|
|
1093
1150
|
}
|
|
1094
1151
|
/**
|
|
1095
1152
|
*
|
|
@@ -1156,10 +1213,10 @@ export interface AdminPromotionConfigsUpsert200Response {
|
|
|
1156
1213
|
'message'?: string;
|
|
1157
1214
|
/**
|
|
1158
1215
|
*
|
|
1159
|
-
* @type {
|
|
1216
|
+
* @type {AdminPromotionConfigsIndex200ResponseConfigsValue}
|
|
1160
1217
|
* @memberof AdminPromotionConfigsUpsert200Response
|
|
1161
1218
|
*/
|
|
1162
|
-
'config'?:
|
|
1219
|
+
'config'?: AdminPromotionConfigsIndex200ResponseConfigsValue;
|
|
1163
1220
|
}
|
|
1164
1221
|
/**
|
|
1165
1222
|
*
|
|
@@ -4618,10 +4675,11 @@ export declare const ConfigsApiAxiosParamCreator: (configuration?: Configuration
|
|
|
4618
4675
|
* @param {string} [grupo] Filtrar por grupo
|
|
4619
4676
|
* @param {AdminPromotionConfigsIndexTypeEnum} [type] Filtrar por tipo
|
|
4620
4677
|
* @param {number} [perPage] Itens por página
|
|
4678
|
+
* @param {number} [page] Número da página
|
|
4621
4679
|
* @param {*} [options] Override http request option.
|
|
4622
4680
|
* @throws {RequiredError}
|
|
4623
4681
|
*/
|
|
4624
|
-
adminPromotionConfigsIndex: (promotionId: string, key?: string, grupo?: string, type?: AdminPromotionConfigsIndexTypeEnum, perPage?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4682
|
+
adminPromotionConfigsIndex: (promotionId: string, key?: string, grupo?: string, type?: AdminPromotionConfigsIndexTypeEnum, perPage?: number, page?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4625
4683
|
/**
|
|
4626
4684
|
*
|
|
4627
4685
|
* @summary Buscar configuração por chave
|
|
@@ -4681,10 +4739,11 @@ export declare const ConfigsApiFp: (configuration?: Configuration) => {
|
|
|
4681
4739
|
* @param {string} [grupo] Filtrar por grupo
|
|
4682
4740
|
* @param {AdminPromotionConfigsIndexTypeEnum} [type] Filtrar por tipo
|
|
4683
4741
|
* @param {number} [perPage] Itens por página
|
|
4742
|
+
* @param {number} [page] Número da página
|
|
4684
4743
|
* @param {*} [options] Override http request option.
|
|
4685
4744
|
* @throws {RequiredError}
|
|
4686
4745
|
*/
|
|
4687
|
-
adminPromotionConfigsIndex(promotionId: string, key?: string, grupo?: string, type?: AdminPromotionConfigsIndexTypeEnum, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminPromotionConfigsIndex200Response>>;
|
|
4746
|
+
adminPromotionConfigsIndex(promotionId: string, key?: string, grupo?: string, type?: AdminPromotionConfigsIndexTypeEnum, perPage?: number, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminPromotionConfigsIndex200Response>>;
|
|
4688
4747
|
/**
|
|
4689
4748
|
*
|
|
4690
4749
|
* @summary Buscar configuração por chave
|
|
@@ -4821,6 +4880,12 @@ export interface ConfigsApiAdminPromotionConfigsIndexRequest {
|
|
|
4821
4880
|
* @memberof ConfigsApiAdminPromotionConfigsIndex
|
|
4822
4881
|
*/
|
|
4823
4882
|
readonly perPage?: number;
|
|
4883
|
+
/**
|
|
4884
|
+
* Número da página
|
|
4885
|
+
* @type {number}
|
|
4886
|
+
* @memberof ConfigsApiAdminPromotionConfigsIndex
|
|
4887
|
+
*/
|
|
4888
|
+
readonly page?: number;
|
|
4824
4889
|
}
|
|
4825
4890
|
/**
|
|
4826
4891
|
* Request parameters for adminPromotionConfigsShow operation in ConfigsApi.
|
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.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.AdminPromotionConfigsIndexTypeEnum = exports.ConfigsApi = exports.ConfigsApiFactory = exports.ConfigsApiFp = exports.ConfigsApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.ApiLogsApi = exports.ApiLogsApiFactory = exports.ApiLogsApiFp = exports.ApiLogsApiAxiosParamCreator = exports.PromotionStartRequestPermissionsEnum = exports.PromotionStart200ResponseUserPermissionsEnum = exports.AdminPromotionConfigsUpdateRequestTypeEnum = exports.AdminPromotionConfigsStoreRequestTypeEnum = exports.
|
|
87
|
+
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.AdminPromotionConfigsIndexTypeEnum = exports.ConfigsApi = exports.ConfigsApiFactory = exports.ConfigsApiFp = exports.ConfigsApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.ApiLogsApi = exports.ApiLogsApiFactory = exports.ApiLogsApiFp = exports.ApiLogsApiAxiosParamCreator = exports.PromotionStartRequestPermissionsEnum = exports.PromotionStart200ResponseUserPermissionsEnum = exports.AdminPromotionConfigsUpdateRequestTypeEnum = exports.AdminPromotionConfigsStoreRequestTypeEnum = exports.AdminPromotionConfigsIndex200ResponseConfigsValueTypeEnum = void 0;
|
|
88
88
|
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.StepsApi = exports.StepsApiFactory = exports.StepsApiFp = exports.StepsApiAxiosParamCreator = void 0;
|
|
89
89
|
var axios_1 = require("axios");
|
|
90
90
|
// Some imports not used depending on template conditions
|
|
@@ -92,7 +92,7 @@ var axios_1 = require("axios");
|
|
|
92
92
|
var common_1 = require("./common");
|
|
93
93
|
// @ts-ignore
|
|
94
94
|
var base_1 = require("./base");
|
|
95
|
-
exports.
|
|
95
|
+
exports.AdminPromotionConfigsIndex200ResponseConfigsValueTypeEnum = {
|
|
96
96
|
Text: 'text',
|
|
97
97
|
Uuid: 'uuid',
|
|
98
98
|
Html: 'html',
|
|
@@ -946,15 +946,16 @@ var ConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
946
946
|
* @param {string} [grupo] Filtrar por grupo
|
|
947
947
|
* @param {AdminPromotionConfigsIndexTypeEnum} [type] Filtrar por tipo
|
|
948
948
|
* @param {number} [perPage] Itens por página
|
|
949
|
+
* @param {number} [page] Número da página
|
|
949
950
|
* @param {*} [options] Override http request option.
|
|
950
951
|
* @throws {RequiredError}
|
|
951
952
|
*/
|
|
952
|
-
adminPromotionConfigsIndex: function (promotionId_1, key_1, grupo_1, type_1, perPage_1) {
|
|
953
|
+
adminPromotionConfigsIndex: function (promotionId_1, key_1, grupo_1, type_1, perPage_1, page_1) {
|
|
953
954
|
var args_1 = [];
|
|
954
|
-
for (var _i =
|
|
955
|
-
args_1[_i -
|
|
955
|
+
for (var _i = 6; _i < arguments.length; _i++) {
|
|
956
|
+
args_1[_i - 6] = arguments[_i];
|
|
956
957
|
}
|
|
957
|
-
return __awaiter(_this, __spreadArray([promotionId_1, key_1, grupo_1, type_1, perPage_1], args_1, true), void 0, function (promotionId, key, grupo, type, perPage, options) {
|
|
958
|
+
return __awaiter(_this, __spreadArray([promotionId_1, key_1, grupo_1, type_1, perPage_1, page_1], args_1, true), void 0, function (promotionId, key, grupo, type, perPage, page, options) {
|
|
958
959
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
959
960
|
if (options === void 0) { options = {}; }
|
|
960
961
|
return __generator(this, function (_a) {
|
|
@@ -990,6 +991,9 @@ var ConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
990
991
|
if (perPage !== undefined) {
|
|
991
992
|
localVarQueryParameter['_per_page'] = perPage;
|
|
992
993
|
}
|
|
994
|
+
if (page !== undefined) {
|
|
995
|
+
localVarQueryParameter['page'] = page;
|
|
996
|
+
}
|
|
993
997
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
994
998
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
995
999
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1277,16 +1281,17 @@ var ConfigsApiFp = function (configuration) {
|
|
|
1277
1281
|
* @param {string} [grupo] Filtrar por grupo
|
|
1278
1282
|
* @param {AdminPromotionConfigsIndexTypeEnum} [type] Filtrar por tipo
|
|
1279
1283
|
* @param {number} [perPage] Itens por página
|
|
1284
|
+
* @param {number} [page] Número da página
|
|
1280
1285
|
* @param {*} [options] Override http request option.
|
|
1281
1286
|
* @throws {RequiredError}
|
|
1282
1287
|
*/
|
|
1283
|
-
adminPromotionConfigsIndex: function (promotionId, key, grupo, type, perPage, options) {
|
|
1288
|
+
adminPromotionConfigsIndex: function (promotionId, key, grupo, type, perPage, page, options) {
|
|
1284
1289
|
return __awaiter(this, void 0, void 0, function () {
|
|
1285
1290
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1286
1291
|
var _a, _b, _c;
|
|
1287
1292
|
return __generator(this, function (_d) {
|
|
1288
1293
|
switch (_d.label) {
|
|
1289
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.adminPromotionConfigsIndex(promotionId, key, grupo, type, perPage, options)];
|
|
1294
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.adminPromotionConfigsIndex(promotionId, key, grupo, type, perPage, page, options)];
|
|
1290
1295
|
case 1:
|
|
1291
1296
|
localVarAxiosArgs = _d.sent();
|
|
1292
1297
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
@@ -1434,7 +1439,7 @@ var ConfigsApiFactory = function (configuration, basePath, axios) {
|
|
|
1434
1439
|
* @throws {RequiredError}
|
|
1435
1440
|
*/
|
|
1436
1441
|
adminPromotionConfigsIndex: function (requestParameters, options) {
|
|
1437
|
-
return localVarFp.adminPromotionConfigsIndex(requestParameters.promotionId, requestParameters.key, requestParameters.grupo, requestParameters.type, requestParameters.perPage, options).then(function (request) { return request(axios, basePath); });
|
|
1442
|
+
return localVarFp.adminPromotionConfigsIndex(requestParameters.promotionId, requestParameters.key, requestParameters.grupo, requestParameters.type, requestParameters.perPage, requestParameters.page, options).then(function (request) { return request(axios, basePath); });
|
|
1438
1443
|
},
|
|
1439
1444
|
/**
|
|
1440
1445
|
*
|
|
@@ -1510,7 +1515,7 @@ var ConfigsApi = /** @class */ (function (_super) {
|
|
|
1510
1515
|
*/
|
|
1511
1516
|
ConfigsApi.prototype.adminPromotionConfigsIndex = function (requestParameters, options) {
|
|
1512
1517
|
var _this = this;
|
|
1513
|
-
return (0, exports.ConfigsApiFp)(this.configuration).adminPromotionConfigsIndex(requestParameters.promotionId, requestParameters.key, requestParameters.grupo, requestParameters.type, requestParameters.perPage, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1518
|
+
return (0, exports.ConfigsApiFp)(this.configuration).adminPromotionConfigsIndex(requestParameters.promotionId, requestParameters.key, requestParameters.grupo, requestParameters.type, requestParameters.perPage, requestParameters.page, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1514
1519
|
};
|
|
1515
1520
|
/**
|
|
1516
1521
|
*
|
|
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**action** | **string** | | [optional] [default to undefined]
|
|
9
9
|
**result** | **string** | | [optional] [default to undefined]
|
|
10
|
-
**configs** | [**
|
|
10
|
+
**configs** | [**{ [key: string]: AdminPromotionConfigsIndex200ResponseConfigsValue; }**](AdminPromotionConfigsIndex200ResponseConfigsValue.md) | | [optional] [default to undefined]
|
|
11
11
|
**pagination** | **object** | | [optional] [default to undefined]
|
|
12
12
|
|
|
13
13
|
## Example
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# AdminPromotionConfigsIndex200ResponseConfigsValue
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **number** | | [optional] [default to undefined]
|
|
9
|
+
**key** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**value** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**type** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**grupo** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**metadata** | [**AdminPromotionConfigsIndex200ResponseConfigsValueMetadata**](AdminPromotionConfigsIndex200ResponseConfigsValueMetadata.md) | | [optional] [default to undefined]
|
|
14
|
+
**dto** | **object** | Estrutura DTO tipada da configuração (se disponível) | [optional] [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { AdminPromotionConfigsIndex200ResponseConfigsValue } from '@handsondigital/idplugger-admin';
|
|
20
|
+
|
|
21
|
+
const instance: AdminPromotionConfigsIndex200ResponseConfigsValue = {
|
|
22
|
+
id,
|
|
23
|
+
key,
|
|
24
|
+
value,
|
|
25
|
+
type,
|
|
26
|
+
grupo,
|
|
27
|
+
metadata,
|
|
28
|
+
dto,
|
|
29
|
+
};
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[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,26 @@
|
|
|
1
|
+
# AdminPromotionConfigsIndex200ResponseConfigsValueMetadata
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**category** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**visible** | **boolean** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { AdminPromotionConfigsIndex200ResponseConfigsValueMetadata } from '@handsondigital/idplugger-admin';
|
|
17
|
+
|
|
18
|
+
const instance: AdminPromotionConfigsIndex200ResponseConfigsValueMetadata = {
|
|
19
|
+
name,
|
|
20
|
+
description,
|
|
21
|
+
category,
|
|
22
|
+
visible,
|
|
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)
|
|
@@ -10,6 +10,8 @@ Name | Type | Description | Notes
|
|
|
10
10
|
**value** | **string** | | [optional] [default to undefined]
|
|
11
11
|
**type** | **string** | | [optional] [default to undefined]
|
|
12
12
|
**grupo** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**metadata** | [**AdminPromotionConfigsIndex200ResponseConfigsValueMetadata**](AdminPromotionConfigsIndex200ResponseConfigsValueMetadata.md) | | [optional] [default to undefined]
|
|
14
|
+
**dto** | **object** | Estrutura DTO tipada da configuração (se disponível) | [optional] [default to undefined]
|
|
13
15
|
|
|
14
16
|
## Example
|
|
15
17
|
|
|
@@ -22,6 +24,8 @@ const instance: AdminPromotionConfigsShow200ResponseConfig = {
|
|
|
22
24
|
value,
|
|
23
25
|
type,
|
|
24
26
|
grupo,
|
|
27
|
+
metadata,
|
|
28
|
+
dto,
|
|
25
29
|
};
|
|
26
30
|
```
|
|
27
31
|
|
|
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**action** | **string** | | [optional] [default to undefined]
|
|
9
9
|
**result** | **string** | | [optional] [default to undefined]
|
|
10
10
|
**message** | **string** | | [optional] [default to undefined]
|
|
11
|
-
**config** | **
|
|
11
|
+
**config** | [**AdminPromotionConfigsIndex200ResponseConfigsValue**](AdminPromotionConfigsIndex200ResponseConfigsValue.md) | | [optional] [default to undefined]
|
|
12
12
|
|
|
13
13
|
## Example
|
|
14
14
|
|
|
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**action** | **string** | | [optional] [default to undefined]
|
|
9
9
|
**result** | **string** | | [optional] [default to undefined]
|
|
10
10
|
**message** | **string** | | [optional] [default to undefined]
|
|
11
|
-
**config** | **
|
|
11
|
+
**config** | [**AdminPromotionConfigsIndex200ResponseConfigsValue**](AdminPromotionConfigsIndex200ResponseConfigsValue.md) | | [optional] [default to undefined]
|
|
12
12
|
|
|
13
13
|
## Example
|
|
14
14
|
|
package/docs/ConfigsApi.md
CHANGED
|
@@ -31,13 +31,15 @@ let key: string; //Filtrar por chave (busca parcial) (optional) (default to unde
|
|
|
31
31
|
let grupo: string; //Filtrar por grupo (optional) (default to undefined)
|
|
32
32
|
let type: 'text' | 'uuid' | 'html' | 'url' | 'path_url' | 'integer' | 'double' | 'file' | 'json' | 'date' | 'datetime'; //Filtrar por tipo (optional) (default to undefined)
|
|
33
33
|
let perPage: number; //Itens por página (optional) (default to 15)
|
|
34
|
+
let page: number; //Número da página (optional) (default to 1)
|
|
34
35
|
|
|
35
36
|
const { status, data } = await apiInstance.adminPromotionConfigsIndex(
|
|
36
37
|
promotionId,
|
|
37
38
|
key,
|
|
38
39
|
grupo,
|
|
39
40
|
type,
|
|
40
|
-
perPage
|
|
41
|
+
perPage,
|
|
42
|
+
page
|
|
41
43
|
);
|
|
42
44
|
```
|
|
43
45
|
|
|
@@ -50,6 +52,7 @@ const { status, data } = await apiInstance.adminPromotionConfigsIndex(
|
|
|
50
52
|
| **grupo** | [**string**] | Filtrar por grupo | (optional) defaults to undefined|
|
|
51
53
|
| **type** | [**'text' | 'uuid' | 'html' | 'url' | 'path_url' | 'integer' | 'double' | 'file' | 'json' | 'date' | 'datetime'**]**Array<'text' | 'uuid' | 'html' | 'url' | 'path_url' | 'integer' | 'double' | 'file' | 'json' | 'date' | 'datetime'>** | Filtrar por tipo | (optional) defaults to undefined|
|
|
52
54
|
| **perPage** | [**number**] | Itens por página | (optional) defaults to 15|
|
|
55
|
+
| **page** | [**number**] | Número da página | (optional) defaults to 1|
|
|
53
56
|
|
|
54
57
|
|
|
55
58
|
### Return type
|