@cherryin/api-client 0.0.11 → 0.0.13

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @cherryin/api-client@0.0.11
1
+ ## @cherryin/api-client@0.0.13
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 @cherryin/api-client@0.0.11 --save
39
+ npm install @cherryin/api-client@0.0.13 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -99,7 +99,7 @@ Class | Method | HTTP request | Description
99
99
  *DiscountAdminServiceApi* | [**discountAdminServiceDiscountUpdate**](docs/DiscountAdminServiceApi.md#discountadminservicediscountupdate) | **POST** /admin/discount/update |
100
100
  *PassportAuthAdminServiceApi* | [**passportAuthAdminServicePassportAdminSendVerificationEmail**](docs/PassportAuthAdminServiceApi.md#passportauthadminservicepassportadminsendverificationemail) | **POST** /passport/admin/auth/v1/verification/send-email |
101
101
  *PassportAuthAdminServiceApi* | [**passportAuthAdminServicePassportAdminSignInEmail**](docs/PassportAuthAdminServiceApi.md#passportauthadminservicepassportadminsigninemail) | **POST** /passport/admin/auth/v1/sign-in/email |
102
- *PassportAuthAdminServiceApi* | [**passportAuthAdminServicePassportAuthAdminChangePassword**](docs/PassportAuthAdminServiceApi.md#passportauthadminservicepassportauthadminchangepassword) | **POST** /passport/admin/authed/v1/change-password |
102
+ *PassportAuthAdminServiceApi* | [**passportAuthAdminServicePassportAuthAdminChangePassword**](docs/PassportAuthAdminServiceApi.md#passportauthadminservicepassportauthadminchangepassword) | **POST** /passport/admin/authed/v1/password/change |
103
103
  *PassportAuthAdminServiceApi* | [**passportAuthAdminServicePassportAuthAdminEnterpriseMaterialList**](docs/PassportAuthAdminServiceApi.md#passportauthadminservicepassportauthadminenterprisemateriallist) | **GET** /passport/admin/authed/v1/enterprise/material/list |
104
104
  *PassportAuthAdminServiceApi* | [**passportAuthAdminServicePassportAuthAdminEnterpriseMaterialReview**](docs/PassportAuthAdminServiceApi.md#passportauthadminservicepassportauthadminenterprisematerialreview) | **POST** /passport/admin/authed/v1/enterprise/material/review |
105
105
  *PassportAuthAdminServiceApi* | [**passportAuthAdminServicePassportAuthAdminGetInfo**](docs/PassportAuthAdminServiceApi.md#passportauthadminservicepassportauthadmingetinfo) | **POST** /passport/admin/authed/v1/personal/info/get |
@@ -129,7 +129,7 @@ Class | Method | HTTP request | Description
129
129
  *PassportAuthEnterpriseServiceApi* | [**passportAuthEnterpriseServicePassportAuthEnterpriseResetPassword**](docs/PassportAuthEnterpriseServiceApi.md#passportauthenterpriseservicepassportauthenterpriseresetpassword) | **POST** /passport/enterprise/authed/v1/password/request-reset |
130
130
  *PassportAuthEnterpriseServiceApi* | [**passportAuthEnterpriseServicePassportAuthEnterpriseRevokeOtherSessions**](docs/PassportAuthEnterpriseServiceApi.md#passportauthenterpriseservicepassportauthenterpriserevokeothersessions) | **POST** /passport/enterprise/authed/v1/sessions/revoke-other |
131
131
  *PassportAuthEnterpriseServiceApi* | [**passportAuthEnterpriseServicePassportAuthEnterpriseRevokeSession**](docs/PassportAuthEnterpriseServiceApi.md#passportauthenterpriseservicepassportauthenterpriserevokesession) | **POST** /passport/enterprise/authed/v1/session/revoke |
132
- *PassportAuthEnterpriseServiceApi* | [**passportAuthEnterpriseServicePassportAuthEnterpriseRevokeSessions**](docs/PassportAuthEnterpriseServiceApi.md#passportauthenterpriseservicepassportauthenterpriserevokesessions) | **POST** /passport/enterprise/authed/v1/sessions/revoke |
132
+ *PassportAuthEnterpriseServiceApi* | [**passportAuthEnterpriseServicePassportAuthEnterpriseRevokeSessions**](docs/PassportAuthEnterpriseServiceApi.md#passportauthenterpriseservicepassportauthenterpriserevokesessions) | **POST** /passport/enterprise/authed/v1/sessions/revoke-all |
133
133
  *PassportAuthEnterpriseServiceApi* | [**passportAuthEnterpriseServicePassportAuthEnterpriseSignOut**](docs/PassportAuthEnterpriseServiceApi.md#passportauthenterpriseservicepassportauthenterprisesignout) | **POST** /passport/enterprise/authed/v1/sign-out |
134
134
  *PassportAuthEnterpriseServiceApi* | [**passportAuthEnterpriseServicePassportAuthEnterpriseUpdateInfo**](docs/PassportAuthEnterpriseServiceApi.md#passportauthenterpriseservicepassportauthenterpriseupdateinfo) | **POST** /passport/enterprise/authed/v1/user/update-info |
135
135
  *PassportAuthEnterpriseServiceApi* | [**passportAuthEnterpriseServicePassportAuthEnterpriseVerifyEmail**](docs/PassportAuthEnterpriseServiceApi.md#passportauthenterpriseservicepassportauthenterpriseverifyemail) | **POST** /passport/enterprise/auth/v1/password/request-reset |
package/api.ts CHANGED
@@ -1744,7 +1744,6 @@ export interface PassportAuthEnterpriseResetPasswordResponse {
1744
1744
  export interface PassportAuthEnterpriseRevokeOtherSessionsResponse {
1745
1745
  'code'?: string;
1746
1746
  'message'?: string;
1747
- 'success'?: boolean;
1748
1747
  }
1749
1748
  export interface PassportAuthEnterpriseRevokeSessionRequest {
1750
1749
  'token'?: string;
@@ -2081,7 +2080,7 @@ export interface PassportEnterpriseSendVerificationEmailRequest {
2081
2080
  'email'?: string;
2082
2081
  'callback_url'?: string;
2083
2082
  /**
2084
- * 验证目的,可选值:verify_email(验证邮箱),change_email(更换邮箱)
2083
+ * 验证目的,可选值:register(注册)、logincode(登录)、resetpassword(重置密码)、bindemail(绑定邮箱)
2085
2084
  */
2086
2085
  'purpose'?: string;
2087
2086
  }
@@ -2164,6 +2163,8 @@ export interface PassportEnterpriseSignUpEmailResponse {
2164
2163
  'message'?: string;
2165
2164
  'redirect'?: boolean;
2166
2165
  'url'?: string;
2166
+ 'session'?: AuthEnterpriseSession;
2167
+ 'user'?: AuthEnterpriseUser;
2167
2168
  }
2168
2169
  export interface PassportSendVerificationEmailRequest {
2169
2170
  /**
@@ -7362,7 +7363,7 @@ export const PassportAuthAdminServiceApiAxiosParamCreator = function (configurat
7362
7363
  passportAuthAdminServicePassportAuthAdminChangePassword: async (passportAuthAdminChangePasswordRequest: PassportAuthAdminChangePasswordRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7363
7364
  // verify required parameter 'passportAuthAdminChangePasswordRequest' is not null or undefined
7364
7365
  assertParamExists('passportAuthAdminServicePassportAuthAdminChangePassword', 'passportAuthAdminChangePasswordRequest', passportAuthAdminChangePasswordRequest)
7365
- const localVarPath = `/passport/admin/authed/v1/change-password`;
7366
+ const localVarPath = `/passport/admin/authed/v1/password/change`;
7366
7367
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7367
7368
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7368
7369
  let baseOptions;
@@ -9219,7 +9220,7 @@ export const PassportAuthEnterpriseServiceApiAxiosParamCreator = function (confi
9219
9220
  passportAuthEnterpriseServicePassportAuthEnterpriseRevokeSessions: async (body: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9220
9221
  // verify required parameter 'body' is not null or undefined
9221
9222
  assertParamExists('passportAuthEnterpriseServicePassportAuthEnterpriseRevokeSessions', 'body', body)
9222
- const localVarPath = `/passport/enterprise/authed/v1/sessions/revoke`;
9223
+ const localVarPath = `/passport/enterprise/authed/v1/sessions/revoke-all`;
9223
9224
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
9224
9225
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9225
9226
  let baseOptions;
package/dist/api.d.ts CHANGED
@@ -1747,7 +1747,6 @@ export interface PassportAuthEnterpriseResetPasswordResponse {
1747
1747
  export interface PassportAuthEnterpriseRevokeOtherSessionsResponse {
1748
1748
  'code'?: string;
1749
1749
  'message'?: string;
1750
- 'success'?: boolean;
1751
1750
  }
1752
1751
  export interface PassportAuthEnterpriseRevokeSessionRequest {
1753
1752
  'token'?: string;
@@ -2084,7 +2083,7 @@ export interface PassportEnterpriseSendVerificationEmailRequest {
2084
2083
  'email'?: string;
2085
2084
  'callback_url'?: string;
2086
2085
  /**
2087
- * 验证目的,可选值:verify_email(验证邮箱),change_email(更换邮箱)
2086
+ * 验证目的,可选值:register(注册)、logincode(登录)、resetpassword(重置密码)、bindemail(绑定邮箱)
2088
2087
  */
2089
2088
  'purpose'?: string;
2090
2089
  }
@@ -2167,6 +2166,8 @@ export interface PassportEnterpriseSignUpEmailResponse {
2167
2166
  'message'?: string;
2168
2167
  'redirect'?: boolean;
2169
2168
  'url'?: string;
2169
+ 'session'?: AuthEnterpriseSession;
2170
+ 'user'?: AuthEnterpriseUser;
2170
2171
  }
2171
2172
  export interface PassportSendVerificationEmailRequest {
2172
2173
  /**
package/dist/api.js CHANGED
@@ -3103,7 +3103,7 @@ const PassportAuthAdminServiceApiAxiosParamCreator = function (configuration) {
3103
3103
  passportAuthAdminServicePassportAuthAdminChangePassword: (passportAuthAdminChangePasswordRequest_1, ...args_1) => __awaiter(this, [passportAuthAdminChangePasswordRequest_1, ...args_1], void 0, function* (passportAuthAdminChangePasswordRequest, options = {}) {
3104
3104
  // verify required parameter 'passportAuthAdminChangePasswordRequest' is not null or undefined
3105
3105
  (0, common_1.assertParamExists)('passportAuthAdminServicePassportAuthAdminChangePassword', 'passportAuthAdminChangePasswordRequest', passportAuthAdminChangePasswordRequest);
3106
- const localVarPath = `/passport/admin/authed/v1/change-password`;
3106
+ const localVarPath = `/passport/admin/authed/v1/password/change`;
3107
3107
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3108
3108
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3109
3109
  let baseOptions;
@@ -4654,7 +4654,7 @@ const PassportAuthEnterpriseServiceApiAxiosParamCreator = function (configuratio
4654
4654
  passportAuthEnterpriseServicePassportAuthEnterpriseRevokeSessions: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
4655
4655
  // verify required parameter 'body' is not null or undefined
4656
4656
  (0, common_1.assertParamExists)('passportAuthEnterpriseServicePassportAuthEnterpriseRevokeSessions', 'body', body);
4657
- const localVarPath = `/passport/enterprise/authed/v1/sessions/revoke`;
4657
+ const localVarPath = `/passport/enterprise/authed/v1/sessions/revoke-all`;
4658
4658
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4659
4659
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4660
4660
  let baseOptions;
package/dist/esm/api.d.ts CHANGED
@@ -1747,7 +1747,6 @@ export interface PassportAuthEnterpriseResetPasswordResponse {
1747
1747
  export interface PassportAuthEnterpriseRevokeOtherSessionsResponse {
1748
1748
  'code'?: string;
1749
1749
  'message'?: string;
1750
- 'success'?: boolean;
1751
1750
  }
1752
1751
  export interface PassportAuthEnterpriseRevokeSessionRequest {
1753
1752
  'token'?: string;
@@ -2084,7 +2083,7 @@ export interface PassportEnterpriseSendVerificationEmailRequest {
2084
2083
  'email'?: string;
2085
2084
  'callback_url'?: string;
2086
2085
  /**
2087
- * 验证目的,可选值:verify_email(验证邮箱),change_email(更换邮箱)
2086
+ * 验证目的,可选值:register(注册)、logincode(登录)、resetpassword(重置密码)、bindemail(绑定邮箱)
2088
2087
  */
2089
2088
  'purpose'?: string;
2090
2089
  }
@@ -2167,6 +2166,8 @@ export interface PassportEnterpriseSignUpEmailResponse {
2167
2166
  'message'?: string;
2168
2167
  'redirect'?: boolean;
2169
2168
  'url'?: string;
2169
+ 'session'?: AuthEnterpriseSession;
2170
+ 'user'?: AuthEnterpriseUser;
2170
2171
  }
2171
2172
  export interface PassportSendVerificationEmailRequest {
2172
2173
  /**
package/dist/esm/api.js CHANGED
@@ -3083,7 +3083,7 @@ export const PassportAuthAdminServiceApiAxiosParamCreator = function (configurat
3083
3083
  passportAuthAdminServicePassportAuthAdminChangePassword: (passportAuthAdminChangePasswordRequest_1, ...args_1) => __awaiter(this, [passportAuthAdminChangePasswordRequest_1, ...args_1], void 0, function* (passportAuthAdminChangePasswordRequest, options = {}) {
3084
3084
  // verify required parameter 'passportAuthAdminChangePasswordRequest' is not null or undefined
3085
3085
  assertParamExists('passportAuthAdminServicePassportAuthAdminChangePassword', 'passportAuthAdminChangePasswordRequest', passportAuthAdminChangePasswordRequest);
3086
- const localVarPath = `/passport/admin/authed/v1/change-password`;
3086
+ const localVarPath = `/passport/admin/authed/v1/password/change`;
3087
3087
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3088
3088
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3089
3089
  let baseOptions;
@@ -4630,7 +4630,7 @@ export const PassportAuthEnterpriseServiceApiAxiosParamCreator = function (confi
4630
4630
  passportAuthEnterpriseServicePassportAuthEnterpriseRevokeSessions: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
4631
4631
  // verify required parameter 'body' is not null or undefined
4632
4632
  assertParamExists('passportAuthEnterpriseServicePassportAuthEnterpriseRevokeSessions', 'body', body);
4633
- const localVarPath = `/passport/enterprise/authed/v1/sessions/revoke`;
4633
+ const localVarPath = `/passport/enterprise/authed/v1/sessions/revoke-all`;
4634
4634
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4635
4635
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4636
4636
  let baseOptions;
@@ -6,7 +6,7 @@ All URIs are relative to *http://localhost*
6
6
  |------------- | ------------- | -------------|
7
7
  |[**passportAuthAdminServicePassportAdminSendVerificationEmail**](#passportauthadminservicepassportadminsendverificationemail) | **POST** /passport/admin/auth/v1/verification/send-email | |
8
8
  |[**passportAuthAdminServicePassportAdminSignInEmail**](#passportauthadminservicepassportadminsigninemail) | **POST** /passport/admin/auth/v1/sign-in/email | |
9
- |[**passportAuthAdminServicePassportAuthAdminChangePassword**](#passportauthadminservicepassportauthadminchangepassword) | **POST** /passport/admin/authed/v1/change-password | |
9
+ |[**passportAuthAdminServicePassportAuthAdminChangePassword**](#passportauthadminservicepassportauthadminchangepassword) | **POST** /passport/admin/authed/v1/password/change | |
10
10
  |[**passportAuthAdminServicePassportAuthAdminEnterpriseMaterialList**](#passportauthadminservicepassportauthadminenterprisemateriallist) | **GET** /passport/admin/authed/v1/enterprise/material/list | |
11
11
  |[**passportAuthAdminServicePassportAuthAdminEnterpriseMaterialReview**](#passportauthadminservicepassportauthadminenterprisematerialreview) | **POST** /passport/admin/authed/v1/enterprise/material/review | |
12
12
  |[**passportAuthAdminServicePassportAuthAdminGetInfo**](#passportauthadminservicepassportauthadmingetinfo) | **POST** /passport/admin/authed/v1/personal/info/get | |
@@ -7,7 +7,6 @@ Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **code** | **string** | | [optional] [default to undefined]
9
9
  **message** | **string** | | [optional] [default to undefined]
10
- **success** | **boolean** | | [optional] [default to undefined]
11
10
 
12
11
  ## Example
13
12
 
@@ -17,7 +16,6 @@ import { PassportAuthEnterpriseRevokeOtherSessionsResponse } from '@cherryin/api
17
16
  const instance: PassportAuthEnterpriseRevokeOtherSessionsResponse = {
18
17
  code,
19
18
  message,
20
- success,
21
19
  };
22
20
  ```
23
21
 
@@ -16,7 +16,7 @@ All URIs are relative to *http://localhost*
16
16
  |[**passportAuthEnterpriseServicePassportAuthEnterpriseResetPassword**](#passportauthenterpriseservicepassportauthenterpriseresetpassword) | **POST** /passport/enterprise/authed/v1/password/request-reset | |
17
17
  |[**passportAuthEnterpriseServicePassportAuthEnterpriseRevokeOtherSessions**](#passportauthenterpriseservicepassportauthenterpriserevokeothersessions) | **POST** /passport/enterprise/authed/v1/sessions/revoke-other | |
18
18
  |[**passportAuthEnterpriseServicePassportAuthEnterpriseRevokeSession**](#passportauthenterpriseservicepassportauthenterpriserevokesession) | **POST** /passport/enterprise/authed/v1/session/revoke | |
19
- |[**passportAuthEnterpriseServicePassportAuthEnterpriseRevokeSessions**](#passportauthenterpriseservicepassportauthenterpriserevokesessions) | **POST** /passport/enterprise/authed/v1/sessions/revoke | |
19
+ |[**passportAuthEnterpriseServicePassportAuthEnterpriseRevokeSessions**](#passportauthenterpriseservicepassportauthenterpriserevokesessions) | **POST** /passport/enterprise/authed/v1/sessions/revoke-all | |
20
20
  |[**passportAuthEnterpriseServicePassportAuthEnterpriseSignOut**](#passportauthenterpriseservicepassportauthenterprisesignout) | **POST** /passport/enterprise/authed/v1/sign-out | |
21
21
  |[**passportAuthEnterpriseServicePassportAuthEnterpriseUpdateInfo**](#passportauthenterpriseservicepassportauthenterpriseupdateinfo) | **POST** /passport/enterprise/authed/v1/user/update-info | |
22
22
  |[**passportAuthEnterpriseServicePassportAuthEnterpriseVerifyEmail**](#passportauthenterpriseservicepassportauthenterpriseverifyemail) | **POST** /passport/enterprise/auth/v1/password/request-reset | |
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **email** | **string** | | [optional] [default to undefined]
9
9
  **callback_url** | **string** | | [optional] [default to undefined]
10
- **purpose** | **string** | 验证目的,可选值:verify_email(验证邮箱),change_email(更换邮箱) | [optional] [default to undefined]
10
+ **purpose** | **string** | 验证目的,可选值:register(注册)、logincode(登录)、resetpassword(重置密码)、bindemail(绑定邮箱) | [optional] [default to undefined]
11
11
 
12
12
  ## Example
13
13
 
@@ -9,6 +9,8 @@ Name | Type | Description | Notes
9
9
  **message** | **string** | | [optional] [default to undefined]
10
10
  **redirect** | **boolean** | | [optional] [default to undefined]
11
11
  **url** | **string** | | [optional] [default to undefined]
12
+ **session** | [**AuthEnterpriseSession**](AuthEnterpriseSession.md) | | [optional] [default to undefined]
13
+ **user** | [**AuthEnterpriseUser**](AuthEnterpriseUser.md) | | [optional] [default to undefined]
12
14
 
13
15
  ## Example
14
16
 
@@ -20,6 +22,8 @@ const instance: PassportEnterpriseSignUpEmailResponse = {
20
22
  message,
21
23
  redirect,
22
24
  url,
25
+ session,
26
+ user,
23
27
  };
24
28
  ```
25
29
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cherryin/api-client",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
4
4
  "description": "OpenAPI client for @cherryin/api-client",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {