@alipay/faas-web-sdk 1.1.1 → 1.1.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.
@@ -1,4 +1,4 @@
1
- import { QueryChainCommand, SampleAggregateParam } from '@alipay/faas-db-builder';
1
+ import { LookupAggregateParam, QueryChainCommand, SampleAggregateParam } from '@alipay/faas-db-builder';
2
2
  import { CreateDatabaseOptions } from '../types';
3
3
  export declare class Aggregate {
4
4
  #private;
@@ -6,5 +6,6 @@ export declare class Aggregate {
6
6
  match(match: QueryChainCommand): Aggregate;
7
7
  group(group: object): Aggregate;
8
8
  sample(sample: SampleAggregateParam): Aggregate;
9
+ lookup(lookup: LookupAggregateParam): Aggregate;
9
10
  end<T = any>(): Promise<T[]>;
10
11
  }
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Aggregate=void 0;const faas_db_builder_1=require("@alipay/faas-db-builder"),utils_1=require("../utils");class Aggregate{#e;#s;#t;constructor(t,e){this.#s=t,this.#e=e,this.#t=new faas_db_builder_1.AggregateBuilder(t)}match(t){return this.#t.match(t),this}group(t){return this.#t.group(t),this}sample(t){return this.#t.sample(t),this}async end(){const{options:t}=this.#t.end(),e="POST",s=`${this.#r()}?aggregate`,r=await this.#e.httpclient.request({method:e,path:s,data:t,headers:{}});return utils_1.ResponseUtil.handleResponse(r)}#r(){return`/${this.#e.databaseName||"faas"}/${this.#s}`}}exports.Aggregate=Aggregate;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Aggregate=void 0;const faas_db_builder_1=require("@alipay/faas-db-builder"),utils_1=require("../utils");class Aggregate{#e;#s;#t;constructor(t,e){this.#s=t,this.#e=e,this.#t=new faas_db_builder_1.AggregateBuilder(t)}match(t){return this.#t.match(t),this}group(t){return this.#t.group(t),this}sample(t){return this.#t.sample(t),this}lookup(t){return this.#t.lookup(t),this}async end(){const{options:t}=this.#t.end(),e="POST",s=`${this.#r()}?aggregate`,r=await this.#e.httpclient.request({method:e,path:s,data:t,headers:{}});return utils_1.ResponseUtil.handleResponse(r)}#r(){return`/${this.#e.databaseName||"faas"}/${this.#s}`}}exports.Aggregate=Aggregate;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alipay/faas-web-sdk",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "云函数服务 SDK",
5
5
  "main": "lib/index.js",
6
6
  "files": [
@@ -25,7 +25,7 @@
25
25
  "typescript": "^5.0.4"
26
26
  },
27
27
  "dependencies": {
28
- "@alipay/faas-db-builder": "^1.1.1"
28
+ "@alipay/faas-db-builder": "^1.1.2"
29
29
  },
30
30
  "engines": {
31
31
  "node": ">= 16.0.0"