icms-api 0.0.3 → 0.0.5

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.
@@ -1,4 +1,8 @@
1
1
  export declare class ICMSClient {
2
2
  constructor();
3
3
  submitComment(): Promise<void>;
4
+ login({ username, password }: Readonly<{
5
+ username: string;
6
+ password: string;
7
+ }>): Promise<void>;
4
8
  }
@@ -1,4 +1,4 @@
1
- import { ICookies, IStorage } from '@rock.chen/icms-http-client';
1
+ import { ICookies } from '@rock.chen/icms-http-client';
2
2
  import { I18NWebsite, Webchannel, WebsiteInfo } from './types/site';
3
3
  import { ProductContent } from './types/cms-product';
4
4
  import { PageInfo, PageParams } from './types/cms-base';
@@ -7,10 +7,8 @@ import { Reviews } from './types/cms-message';
7
7
  export declare const helloURL: string;
8
8
  export declare class ICMSServer {
9
9
  private readonly http;
10
- constructor(opts: Readonly<{
11
- headerStorage: IStorage;
12
- }>);
13
- helloWebsite(h: IStorage, c: ICookies): Promise<void>;
10
+ constructor(cookies: Readonly<ICookies>);
11
+ helloWebsite(c: ICookies): Promise<void>;
14
12
  /**
15
13
  * 获取言语网站列表
16
14
  * @returns I18NWebsite[]
@@ -1,3 +1,4 @@
1
+ import { User } from '@rock.chen/icms-http-client';
1
2
  /**
2
3
  * (国际化)语言站点,用于语言站点切换
3
4
  */
@@ -291,3 +292,6 @@ export interface MemberSrv extends WebsiteOwner {
291
292
  feeType: MemberFeeType;
292
293
  fee?: number;
293
294
  }
295
+ export interface Member extends User {
296
+ [key: string]: any;
297
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "icms-api",
3
3
  "private": false,
4
- "version": "0.0.3",
4
+ "version": "0.0.5",
5
5
  "description": "对iCMS内容管理系统API的封装,使用该API能快速使用iCMS搭建您的WebApp!",
6
6
  "type": "module",
7
7
  "main": "./dist/icms-api.cjs.js",
@@ -55,6 +55,6 @@
55
55
  "vitest": "^1.0.0"
56
56
  },
57
57
  "dependencies": {
58
- "@rock.chen/icms-http-client": "^1.0.4"
58
+ "@rock.chen/icms-http-client": "^1.0.6"
59
59
  }
60
60
  }