@ptkl/sdk 1.3.2 → 1.3.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.
@@ -114,6 +114,7 @@ var ProtokolSDK010 = (function (exports, axios) {
114
114
  * )
115
115
  **/
116
116
  async find(filters, opts) {
117
+ var _a;
117
118
  let payload = {
118
119
  context: filters,
119
120
  ref: this.ref,
@@ -145,6 +146,12 @@ var ProtokolSDK010 = (function (exports, axios) {
145
146
  dateTo: ctx.dateTo,
146
147
  dateField: ctx.dateField,
147
148
  };
149
+ if (Object.keys(ctx.$adv || []).length > 0) {
150
+ params.$adv = [(_a = ctx.$adv) !== null && _a !== void 0 ? _a : {}];
151
+ }
152
+ if (ctx.$aggregate && ctx.$aggregate.length > 0) {
153
+ params.$aggregate = ctx.$aggregate;
154
+ }
148
155
  return await this.client.post(`/v4/system/component/${this.ref}/models`, {
149
156
  ...params,
150
157
  options: opts
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ptkl/sdk",
3
- "version": "1.3.2",
3
+ "version": "1.3.4",
4
4
  "scripts": {
5
5
  "build": "rollup -c",
6
6
  "build:monaco": "npm run build && node scripts/generate-monaco-types.cjs",
@@ -19080,6 +19080,7 @@ class Component extends PlatformBaseClient {
19080
19080
  * )
19081
19081
  **/
19082
19082
  async find(filters, opts) {
19083
+ var _a;
19083
19084
  let payload = {
19084
19085
  context: filters,
19085
19086
  ref: this.ref,
@@ -19111,6 +19112,12 @@ class Component extends PlatformBaseClient {
19111
19112
  dateTo: ctx.dateTo,
19112
19113
  dateField: ctx.dateField,
19113
19114
  };
19115
+ if (Object.keys(ctx.$adv || []).length > 0) {
19116
+ params.$adv = [(_a = ctx.$adv) !== null && _a !== void 0 ? _a : {}];
19117
+ }
19118
+ if (ctx.$aggregate && ctx.$aggregate.length > 0) {
19119
+ params.$aggregate = ctx.$aggregate;
19120
+ }
19114
19121
  return await this.client.post(`/v4/system/component/${this.ref}/models`, {
19115
19122
  ...params,
19116
19123
  options: opts
@@ -113,6 +113,7 @@ class Component extends PlatformBaseClient {
113
113
  * )
114
114
  **/
115
115
  async find(filters, opts) {
116
+ var _a;
116
117
  let payload = {
117
118
  context: filters,
118
119
  ref: this.ref,
@@ -144,6 +145,12 @@ class Component extends PlatformBaseClient {
144
145
  dateTo: ctx.dateTo,
145
146
  dateField: ctx.dateField,
146
147
  };
148
+ if (Object.keys(ctx.$adv || []).length > 0) {
149
+ params.$adv = [(_a = ctx.$adv) !== null && _a !== void 0 ? _a : {}];
150
+ }
151
+ if (ctx.$aggregate && ctx.$aggregate.length > 0) {
152
+ params.$aggregate = ctx.$aggregate;
153
+ }
147
154
  return await this.client.post(`/v4/system/component/${this.ref}/models`, {
148
155
  ...params,
149
156
  options: opts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ptkl/sdk",
3
- "version": "1.3.2",
3
+ "version": "1.3.4",
4
4
  "scripts": {
5
5
  "build": "rollup -c",
6
6
  "build:monaco": "npm run build && node scripts/generate-monaco-types.cjs",