@handsondigital/idplugger-promotion 1.0.2 → 1.0.4

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/api.ts CHANGED
@@ -553,6 +553,107 @@ export interface ArticlesUpdate401Response {
553
553
  */
554
554
  'message'?: string;
555
555
  }
556
+ /**
557
+ *
558
+ * @export
559
+ * @interface AuthLoginByToken200Response
560
+ */
561
+ export interface AuthLoginByToken200Response {
562
+ /**
563
+ *
564
+ * @type {string}
565
+ * @memberof AuthLoginByToken200Response
566
+ */
567
+ 'token'?: string;
568
+ /**
569
+ *
570
+ * @type {string}
571
+ * @memberof AuthLoginByToken200Response
572
+ */
573
+ 'refresh_token'?: string;
574
+ /**
575
+ *
576
+ * @type {string}
577
+ * @memberof AuthLoginByToken200Response
578
+ */
579
+ 'token_type'?: string;
580
+ /**
581
+ *
582
+ * @type {string}
583
+ * @memberof AuthLoginByToken200Response
584
+ */
585
+ 'expires_in'?: string;
586
+ }
587
+ /**
588
+ *
589
+ * @export
590
+ * @interface AuthLoginByTokenRequest
591
+ */
592
+ export interface AuthLoginByTokenRequest {
593
+ /**
594
+ *
595
+ * @type {string}
596
+ * @memberof AuthLoginByTokenRequest
597
+ */
598
+ 'email'?: string;
599
+ /**
600
+ *
601
+ * @type {string}
602
+ * @memberof AuthLoginByTokenRequest
603
+ */
604
+ 'token'?: string;
605
+ }
606
+ /**
607
+ *
608
+ * @export
609
+ * @interface AuthRefreshTokenRequest
610
+ */
611
+ export interface AuthRefreshTokenRequest {
612
+ /**
613
+ *
614
+ * @type {string}
615
+ * @memberof AuthRefreshTokenRequest
616
+ */
617
+ 'refresh_token'?: string;
618
+ }
619
+ /**
620
+ *
621
+ * @export
622
+ * @interface AuthRequestToken200Response
623
+ */
624
+ export interface AuthRequestToken200Response {
625
+ /**
626
+ *
627
+ * @type {string}
628
+ * @memberof AuthRequestToken200Response
629
+ */
630
+ 'entity'?: string;
631
+ /**
632
+ *
633
+ * @type {string}
634
+ * @memberof AuthRequestToken200Response
635
+ */
636
+ 'action'?: string;
637
+ /**
638
+ *
639
+ * @type {string}
640
+ * @memberof AuthRequestToken200Response
641
+ */
642
+ 'message'?: string;
643
+ }
644
+ /**
645
+ *
646
+ * @export
647
+ * @interface AuthRequestTokenRequest
648
+ */
649
+ export interface AuthRequestTokenRequest {
650
+ /**
651
+ *
652
+ * @type {string}
653
+ * @memberof AuthRequestTokenRequest
654
+ */
655
+ 'email'?: string;
656
+ }
556
657
  /**
557
658
  *
558
659
  * @export
@@ -3945,6 +4046,93 @@ export interface FaqUpdate401Response {
3945
4046
  */
3946
4047
  'message'?: string;
3947
4048
  }
4049
+ /**
4050
+ *
4051
+ * @export
4052
+ * @interface FilesShow200Response
4053
+ */
4054
+ export interface FilesShow200Response {
4055
+ /**
4056
+ *
4057
+ * @type {string}
4058
+ * @memberof FilesShow200Response
4059
+ */
4060
+ 'entity'?: string;
4061
+ /**
4062
+ *
4063
+ * @type {string}
4064
+ * @memberof FilesShow200Response
4065
+ */
4066
+ 'action'?: string;
4067
+ /**
4068
+ *
4069
+ * @type {string}
4070
+ * @memberof FilesShow200Response
4071
+ */
4072
+ 'result'?: string;
4073
+ }
4074
+ /**
4075
+ *
4076
+ * @export
4077
+ * @interface FilesShow400Response
4078
+ */
4079
+ export interface FilesShow400Response {
4080
+ /**
4081
+ *
4082
+ * @type {string}
4083
+ * @memberof FilesShow400Response
4084
+ */
4085
+ 'entity'?: string;
4086
+ /**
4087
+ *
4088
+ * @type {string}
4089
+ * @memberof FilesShow400Response
4090
+ */
4091
+ 'action'?: string;
4092
+ /**
4093
+ *
4094
+ * @type {string}
4095
+ * @memberof FilesShow400Response
4096
+ */
4097
+ 'result'?: string;
4098
+ /**
4099
+ *
4100
+ * @type {string}
4101
+ * @memberof FilesShow400Response
4102
+ */
4103
+ 'message'?: string;
4104
+ }
4105
+ /**
4106
+ *
4107
+ * @export
4108
+ * @interface FilesShow401Response
4109
+ */
4110
+ export interface FilesShow401Response {
4111
+ /**
4112
+ *
4113
+ * @type {string}
4114
+ * @memberof FilesShow401Response
4115
+ */
4116
+ 'entity'?: string;
4117
+ /**
4118
+ *
4119
+ * @type {string}
4120
+ * @memberof FilesShow401Response
4121
+ */
4122
+ 'action'?: string;
4123
+ /**
4124
+ *
4125
+ * @type {string}
4126
+ * @memberof FilesShow401Response
4127
+ */
4128
+ 'result'?: string;
4129
+ /**
4130
+ *
4131
+ * @type {string}
4132
+ * @memberof FilesShow401Response
4133
+ */
4134
+ 'message'?: string;
4135
+ }
3948
4136
  /**
3949
4137
  *
3950
4138
  * @export
@@ -7191,25 +7379,25 @@ export interface User {
7191
7379
  * @type {string}
7192
7380
  * @memberof User
7193
7381
  */
7194
- 'name': string;
7382
+ 'name'?: string;
7195
7383
  /**
7196
7384
  *
7197
7385
  * @type {string}
7198
7386
  * @memberof User
7199
7387
  */
7200
- 'email': string;
7388
+ 'email'?: string;
7201
7389
  /**
7202
7390
  *
7203
7391
  * @type {string}
7204
7392
  * @memberof User
7205
7393
  */
7206
- 'cpf': string;
7394
+ 'cpf'?: string;
7207
7395
  /**
7208
7396
  *
7209
7397
  * @type {string}
7210
7398
  * @memberof User
7211
7399
  */
7212
- 'cnpj': string;
7400
+ 'cnpj'?: string;
7213
7401
  /**
7214
7402
  *
7215
7403
  * @type {string}
@@ -7221,43 +7409,43 @@ export interface User {
7221
7409
  * @type {string}
7222
7410
  * @memberof User
7223
7411
  */
7224
- 'birth': string;
7412
+ 'birth'?: string;
7225
7413
  /**
7226
7414
  *
7227
7415
  * @type {string}
7228
7416
  * @memberof User
7229
7417
  */
7230
- 'cep': string;
7418
+ 'cep'?: string;
7231
7419
  /**
7232
7420
  *
7233
7421
  * @type {string}
7234
7422
  * @memberof User
7235
7423
  */
7236
- 'address': string;
7424
+ 'address'?: string;
7237
7425
  /**
7238
7426
  *
7239
7427
  * @type {string}
7240
7428
  * @memberof User
7241
7429
  */
7242
- 'number': string;
7430
+ 'number'?: string;
7243
7431
  /**
7244
7432
  *
7245
7433
  * @type {string}
7246
7434
  * @memberof User
7247
7435
  */
7248
- 'neighborhood': string;
7436
+ 'neighborhood'?: string;
7249
7437
  /**
7250
7438
  *
7251
7439
  * @type {string}
7252
7440
  * @memberof User
7253
7441
  */
7254
- 'city': string;
7442
+ 'city'?: string;
7255
7443
  /**
7256
7444
  *
7257
7445
  * @type {string}
7258
7446
  * @memberof User
7259
7447
  */
7260
- 'state': string;
7448
+ 'state'?: string;
7261
7449
  /**
7262
7450
  *
7263
7451
  * @type {string}
@@ -7269,7 +7457,7 @@ export interface User {
7269
7457
  * @type {string}
7270
7458
  * @memberof User
7271
7459
  */
7272
- 'sex': string;
7460
+ 'sex'?: string;
7273
7461
  /**
7274
7462
  *
7275
7463
  * @type {boolean}
@@ -7290,35 +7478,10 @@ export interface User {
7290
7478
  'agree_terms'?: boolean;
7291
7479
  /**
7292
7480
  *
7293
- * @type {UserCustomData}
7481
+ * @type {{ [key: string]: string; }}
7294
7482
  * @memberof User
7295
7483
  */
7296
- 'custom_data'?: UserCustomData;
7297
- }
7298
- /**
7299
- *
7300
- * @export
7301
- * @interface UserCustomData
7302
- */
7303
- export interface UserCustomData {
7304
- /**
7305
- *
7306
- * @type {string}
7307
- * @memberof UserCustomData
7308
- */
7309
- 'external_id'?: string;
7310
- /**
7311
- *
7312
- * @type {string}
7313
- * @memberof UserCustomData
7314
- */
7315
- 'cover'?: string;
7316
- /**
7317
- *
7318
- * @type {string}
7319
- * @memberof UserCustomData
7320
- */
7321
- 'another'?: string;
7484
+ 'custom_data'?: { [key: string]: string; };
7322
7485
  }
7323
7486
  /**
7324
7487
  *
@@ -7368,25 +7531,25 @@ export interface UserWebhookErrorContent {
7368
7531
  * @type {string}
7369
7532
  * @memberof UserWebhookErrorContent
7370
7533
  */
7371
- 'name': string;
7534
+ 'name'?: string;
7372
7535
  /**
7373
7536
  *
7374
7537
  * @type {string}
7375
7538
  * @memberof UserWebhookErrorContent
7376
7539
  */
7377
- 'email': string;
7540
+ 'email'?: string;
7378
7541
  /**
7379
7542
  *
7380
7543
  * @type {string}
7381
7544
  * @memberof UserWebhookErrorContent
7382
7545
  */
7383
- 'cpf': string;
7546
+ 'cpf'?: string;
7384
7547
  /**
7385
7548
  *
7386
7549
  * @type {string}
7387
7550
  * @memberof UserWebhookErrorContent
7388
7551
  */
7389
- 'cnpj': string;
7552
+ 'cnpj'?: string;
7390
7553
  /**
7391
7554
  *
7392
7555
  * @type {string}
@@ -7398,43 +7561,43 @@ export interface UserWebhookErrorContent {
7398
7561
  * @type {string}
7399
7562
  * @memberof UserWebhookErrorContent
7400
7563
  */
7401
- 'birth': string;
7564
+ 'birth'?: string;
7402
7565
  /**
7403
7566
  *
7404
7567
  * @type {string}
7405
7568
  * @memberof UserWebhookErrorContent
7406
7569
  */
7407
- 'cep': string;
7570
+ 'cep'?: string;
7408
7571
  /**
7409
7572
  *
7410
7573
  * @type {string}
7411
7574
  * @memberof UserWebhookErrorContent
7412
7575
  */
7413
- 'address': string;
7576
+ 'address'?: string;
7414
7577
  /**
7415
7578
  *
7416
7579
  * @type {string}
7417
7580
  * @memberof UserWebhookErrorContent
7418
7581
  */
7419
- 'number': string;
7582
+ 'number'?: string;
7420
7583
  /**
7421
7584
  *
7422
7585
  * @type {string}
7423
7586
  * @memberof UserWebhookErrorContent
7424
7587
  */
7425
- 'neighborhood': string;
7588
+ 'neighborhood'?: string;
7426
7589
  /**
7427
7590
  *
7428
7591
  * @type {string}
7429
7592
  * @memberof UserWebhookErrorContent
7430
7593
  */
7431
- 'city': string;
7594
+ 'city'?: string;
7432
7595
  /**
7433
7596
  *
7434
7597
  * @type {string}
7435
7598
  * @memberof UserWebhookErrorContent
7436
7599
  */
7437
- 'state': string;
7600
+ 'state'?: string;
7438
7601
  /**
7439
7602
  *
7440
7603
  * @type {string}
@@ -7446,7 +7609,7 @@ export interface UserWebhookErrorContent {
7446
7609
  * @type {string}
7447
7610
  * @memberof UserWebhookErrorContent
7448
7611
  */
7449
- 'sex': string;
7612
+ 'sex'?: string;
7450
7613
  /**
7451
7614
  *
7452
7615
  * @type {boolean}
@@ -7467,10 +7630,10 @@ export interface UserWebhookErrorContent {
7467
7630
  'agree_terms'?: boolean;
7468
7631
  /**
7469
7632
  *
7470
- * @type {UserCustomData}
7633
+ * @type {{ [key: string]: string; }}
7471
7634
  * @memberof UserWebhookErrorContent
7472
7635
  */
7473
- 'custom_data'?: UserCustomData;
7636
+ 'custom_data'?: { [key: string]: string; };
7474
7637
  /**
7475
7638
  *
7476
7639
  * @type {UserWebhookErrorContentAllOfErrors}
@@ -8253,6 +8416,108 @@ export class ArticlesApi extends BaseAPI {
8253
8416
  */
8254
8417
  export const AuthApiAxiosParamCreator = function (configuration?: Configuration) {
8255
8418
  return {
8419
+ /**
8420
+ *
8421
+ * @summary Login na API via e-mail e token
8422
+ * @param {AuthLoginByTokenRequest} [authLoginByTokenRequest]
8423
+ * @param {*} [options] Override http request option.
8424
+ * @throws {RequiredError}
8425
+ */
8426
+ authLoginByToken: async (authLoginByTokenRequest?: AuthLoginByTokenRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8427
+ const localVarPath = `/v3/auth/login`;
8428
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8429
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8430
+ let baseOptions;
8431
+ if (configuration) {
8432
+ baseOptions = configuration.baseOptions;
8433
+ }
8434
+
8435
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
8436
+ const localVarHeaderParameter = {} as any;
8437
+ const localVarQueryParameter = {} as any;
8438
+
8439
+
8440
+
8441
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8442
+
8443
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8444
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8445
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8446
+ localVarRequestOptions.data = serializeDataIfNeeded(authLoginByTokenRequest, localVarRequestOptions, configuration)
8447
+
8448
+ return {
8449
+ url: toPathString(localVarUrlObj),
8450
+ options: localVarRequestOptions,
8451
+ };
8452
+ },
8453
+ /**
8454
+ *
8455
+ * @summary Renova o do token de autenticação
8456
+ * @param {AuthRefreshTokenRequest} [authRefreshTokenRequest]
8457
+ * @param {*} [options] Override http request option.
8458
+ * @throws {RequiredError}
8459
+ */
8460
+ authRefreshToken: async (authRefreshTokenRequest?: AuthRefreshTokenRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8461
+ const localVarPath = `/v3/auth/refresh`;
8462
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8463
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8464
+ let baseOptions;
8465
+ if (configuration) {
8466
+ baseOptions = configuration.baseOptions;
8467
+ }
8468
+
8469
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
8470
+ const localVarHeaderParameter = {} as any;
8471
+ const localVarQueryParameter = {} as any;
8472
+
8473
+
8474
+
8475
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8476
+
8477
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8478
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8479
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8480
+ localVarRequestOptions.data = serializeDataIfNeeded(authRefreshTokenRequest, localVarRequestOptions, configuration)
8481
+
8482
+ return {
8483
+ url: toPathString(localVarUrlObj),
8484
+ options: localVarRequestOptions,
8485
+ };
8486
+ },
8487
+ /**
8488
+ *
8489
+ * @summary Solicita envio de token de login por email
8490
+ * @param {AuthRequestTokenRequest} [authRequestTokenRequest]
8491
+ * @param {*} [options] Override http request option.
8492
+ * @throws {RequiredError}
8493
+ */
8494
+ authRequestToken: async (authRequestTokenRequest?: AuthRequestTokenRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8495
+ const localVarPath = `/v3/auth/request-token`;
8496
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8497
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8498
+ let baseOptions;
8499
+ if (configuration) {
8500
+ baseOptions = configuration.baseOptions;
8501
+ }
8502
+
8503
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
8504
+ const localVarHeaderParameter = {} as any;
8505
+ const localVarQueryParameter = {} as any;
8506
+
8507
+
8508
+
8509
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8510
+
8511
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8512
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8513
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8514
+ localVarRequestOptions.data = serializeDataIfNeeded(authRequestTokenRequest, localVarRequestOptions, configuration)
8515
+
8516
+ return {
8517
+ url: toPathString(localVarUrlObj),
8518
+ options: localVarRequestOptions,
8519
+ };
8520
+ },
8256
8521
  /**
8257
8522
  *
8258
8523
  * @summary Login na API
@@ -8331,6 +8596,45 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
8331
8596
  export const AuthApiFp = function(configuration?: Configuration) {
8332
8597
  const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration)
8333
8598
  return {
8599
+ /**
8600
+ *
8601
+ * @summary Login na API via e-mail e token
8602
+ * @param {AuthLoginByTokenRequest} [authLoginByTokenRequest]
8603
+ * @param {*} [options] Override http request option.
8604
+ * @throws {RequiredError}
8605
+ */
8606
+ async authLoginByToken(authLoginByTokenRequest?: AuthLoginByTokenRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthLoginByToken200Response>> {
8607
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authLoginByToken(authLoginByTokenRequest, options);
8608
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
8609
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.authLoginByToken']?.[localVarOperationServerIndex]?.url;
8610
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8611
+ },
8612
+ /**
8613
+ *
8614
+ * @summary Renova o do token de autenticação
8615
+ * @param {AuthRefreshTokenRequest} [authRefreshTokenRequest]
8616
+ * @param {*} [options] Override http request option.
8617
+ * @throws {RequiredError}
8618
+ */
8619
+ async authRefreshToken(authRefreshTokenRequest?: AuthRefreshTokenRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthLoginByToken200Response>> {
8620
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authRefreshToken(authRefreshTokenRequest, options);
8621
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
8622
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.authRefreshToken']?.[localVarOperationServerIndex]?.url;
8623
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8624
+ },
8625
+ /**
8626
+ *
8627
+ * @summary Solicita envio de token de login por email
8628
+ * @param {AuthRequestTokenRequest} [authRequestTokenRequest]
8629
+ * @param {*} [options] Override http request option.
8630
+ * @throws {RequiredError}
8631
+ */
8632
+ async authRequestToken(authRequestTokenRequest?: AuthRequestTokenRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthRequestToken200Response>> {
8633
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authRequestToken(authRequestTokenRequest, options);
8634
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
8635
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.authRequestToken']?.[localVarOperationServerIndex]?.url;
8636
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8637
+ },
8334
8638
  /**
8335
8639
  *
8336
8640
  * @summary Login na API
@@ -8366,6 +8670,36 @@ export const AuthApiFp = function(configuration?: Configuration) {
8366
8670
  export const AuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
8367
8671
  const localVarFp = AuthApiFp(configuration)
8368
8672
  return {
8673
+ /**
8674
+ *
8675
+ * @summary Login na API via e-mail e token
8676
+ * @param {AuthLoginByTokenRequest} [authLoginByTokenRequest]
8677
+ * @param {*} [options] Override http request option.
8678
+ * @throws {RequiredError}
8679
+ */
8680
+ authLoginByToken(authLoginByTokenRequest?: AuthLoginByTokenRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthLoginByToken200Response> {
8681
+ return localVarFp.authLoginByToken(authLoginByTokenRequest, options).then((request) => request(axios, basePath));
8682
+ },
8683
+ /**
8684
+ *
8685
+ * @summary Renova o do token de autenticação
8686
+ * @param {AuthRefreshTokenRequest} [authRefreshTokenRequest]
8687
+ * @param {*} [options] Override http request option.
8688
+ * @throws {RequiredError}
8689
+ */
8690
+ authRefreshToken(authRefreshTokenRequest?: AuthRefreshTokenRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthLoginByToken200Response> {
8691
+ return localVarFp.authRefreshToken(authRefreshTokenRequest, options).then((request) => request(axios, basePath));
8692
+ },
8693
+ /**
8694
+ *
8695
+ * @summary Solicita envio de token de login por email
8696
+ * @param {AuthRequestTokenRequest} [authRequestTokenRequest]
8697
+ * @param {*} [options] Override http request option.
8698
+ * @throws {RequiredError}
8699
+ */
8700
+ authRequestToken(authRequestTokenRequest?: AuthRequestTokenRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthRequestToken200Response> {
8701
+ return localVarFp.authRequestToken(authRequestTokenRequest, options).then((request) => request(axios, basePath));
8702
+ },
8369
8703
  /**
8370
8704
  *
8371
8705
  * @summary Login na API
@@ -8395,6 +8729,42 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath?
8395
8729
  * @extends {BaseAPI}
8396
8730
  */
8397
8731
  export class AuthApi extends BaseAPI {
8732
+ /**
8733
+ *
8734
+ * @summary Login na API via e-mail e token
8735
+ * @param {AuthLoginByTokenRequest} [authLoginByTokenRequest]
8736
+ * @param {*} [options] Override http request option.
8737
+ * @throws {RequiredError}
8738
+ * @memberof AuthApi
8739
+ */
8740
+ public authLoginByToken(authLoginByTokenRequest?: AuthLoginByTokenRequest, options?: RawAxiosRequestConfig) {
8741
+ return AuthApiFp(this.configuration).authLoginByToken(authLoginByTokenRequest, options).then((request) => request(this.axios, this.basePath));
8742
+ }
8743
+
8744
+ /**
8745
+ *
8746
+ * @summary Renova o do token de autenticação
8747
+ * @param {AuthRefreshTokenRequest} [authRefreshTokenRequest]
8748
+ * @param {*} [options] Override http request option.
8749
+ * @throws {RequiredError}
8750
+ * @memberof AuthApi
8751
+ */
8752
+ public authRefreshToken(authRefreshTokenRequest?: AuthRefreshTokenRequest, options?: RawAxiosRequestConfig) {
8753
+ return AuthApiFp(this.configuration).authRefreshToken(authRefreshTokenRequest, options).then((request) => request(this.axios, this.basePath));
8754
+ }
8755
+
8756
+ /**
8757
+ *
8758
+ * @summary Solicita envio de token de login por email
8759
+ * @param {AuthRequestTokenRequest} [authRequestTokenRequest]
8760
+ * @param {*} [options] Override http request option.
8761
+ * @throws {RequiredError}
8762
+ * @memberof AuthApi
8763
+ */
8764
+ public authRequestToken(authRequestTokenRequest?: AuthRequestTokenRequest, options?: RawAxiosRequestConfig) {
8765
+ return AuthApiFp(this.configuration).authRequestToken(authRequestTokenRequest, options).then((request) => request(this.axios, this.basePath));
8766
+ }
8767
+
8398
8768
  /**
8399
8769
  *
8400
8770
  * @summary Login na API
@@ -11029,7 +11399,7 @@ export const FilesApiFp = function(configuration?: Configuration) {
11029
11399
  * @param {*} [options] Override http request option.
11030
11400
  * @throws {RequiredError}
11031
11401
  */
11032
- async filesShow(promotionId: string, filename: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
11402
+ async filesShow(promotionId: string, filename: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FilesShow200Response>> {
11033
11403
  const localVarAxiosArgs = await localVarAxiosParamCreator.filesShow(promotionId, filename, options);
11034
11404
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11035
11405
  const localVarOperationServerBasePath = operationServerMap['FilesApi.filesShow']?.[localVarOperationServerIndex]?.url;
@@ -11053,7 +11423,7 @@ export const FilesApiFactory = function (configuration?: Configuration, basePath
11053
11423
  * @param {*} [options] Override http request option.
11054
11424
  * @throws {RequiredError}
11055
11425
  */
11056
- filesShow(promotionId: string, filename: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
11426
+ filesShow(promotionId: string, filename: string, options?: RawAxiosRequestConfig): AxiosPromise<FilesShow200Response> {
11057
11427
  return localVarFp.filesShow(promotionId, filename, options).then((request) => request(axios, basePath));
11058
11428
  },
11059
11429
  };