@ptkl/sdk 1.3.1 → 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.
- package/dist/index.0.10.js +37 -0
- package/dist/package.json +1 -1
- package/dist/v0.10/api/component.d.ts +26 -0
- package/dist/v0.10/index.cjs.js +37 -0
- package/dist/v0.10/index.esm.js +37 -0
- package/package.json +1 -1
- package/dist/v0.10/api/integrations/serbiaUtil.d.ts +0 -12
- package/dist/v0.10/api/integrations/vpfr.d.ts +0 -4
- package/dist/v0.10/apiUser.d.ts +0 -9
- package/dist/v0.10/apps.d.ts +0 -8
- package/dist/v0.10/baseClient.d.ts +0 -6
- package/dist/v0.10/component.d.ts +0 -128
- package/dist/v0.10/componentUtils.d.ts +0 -7
- package/dist/v0.10/config.d.ts +0 -14
- package/dist/v0.10/forge.d.ts +0 -7
- package/dist/v0.10/functions.d.ts +0 -23
- package/dist/v0.10/index.d.ts +0 -21
- package/dist/v0.10/integrations/dms.d.ts +0 -469
- package/dist/v0.10/integrations/invoicing.d.ts +0 -6
- package/dist/v0.10/integrations/minimax.d.ts +0 -289
- package/dist/v0.10/integrations/payments.d.ts +0 -40
- package/dist/v0.10/integrations/serbiaUtil.d.ts +0 -10
- package/dist/v0.10/integrations/vpfr.d.ts +0 -4
- package/dist/v0.10/integrations.d.ts +0 -22
- package/dist/v0.10/integrationsBaseClient.d.ts +0 -11
- package/dist/v0.10/platform.d.ts +0 -34
- package/dist/v0.10/platformBaseClient.d.ts +0 -27
- package/dist/v0.10/project.d.ts +0 -146
- package/dist/v0.10/ratchet.d.ts +0 -196
- package/dist/v0.10/sandbox.d.ts +0 -14
- package/dist/v0.10/system.d.ts +0 -4
- package/dist/v0.10/thunder.d.ts +0 -13
- package/dist/v0.10/types/integrations/serbiaUtits.d.ts +0 -37
- package/dist/v0.10/users.d.ts +0 -69
- package/dist/v0.10/workflow.d.ts +0 -5
- package/dist/v0.9/apiUser.d.ts +0 -9
- package/dist/v0.9/apps.d.ts +0 -8
- package/dist/v0.9/baseClient.d.ts +0 -6
- package/dist/v0.9/component.d.ts +0 -128
- package/dist/v0.9/componentUtils.d.ts +0 -7
- package/dist/v0.9/config.d.ts +0 -14
- package/dist/v0.9/forge.d.ts +0 -7
- package/dist/v0.9/functions.d.ts +0 -23
- package/dist/v0.9/index.d.ts +0 -21
- package/dist/v0.9/integrations/dms.d.ts +0 -469
- package/dist/v0.9/integrations/invoicing.d.ts +0 -6
- package/dist/v0.9/integrations/minimax.d.ts +0 -289
- package/dist/v0.9/integrations/payments.d.ts +0 -40
- package/dist/v0.9/integrations/serbiaUtil.d.ts +0 -10
- package/dist/v0.9/integrations/vpfr.d.ts +0 -4
- package/dist/v0.9/integrations.d.ts +0 -22
- package/dist/v0.9/integrationsBaseClient.d.ts +0 -11
- package/dist/v0.9/platform.d.ts +0 -34
- package/dist/v0.9/platformBaseClient.d.ts +0 -27
- package/dist/v0.9/project.d.ts +0 -146
- package/dist/v0.9/ratchet.d.ts +0 -196
- package/dist/v0.9/sandbox.d.ts +0 -14
- package/dist/v0.9/system.d.ts +0 -4
- package/dist/v0.9/thunder.d.ts +0 -13
- package/dist/v0.9/users.d.ts +0 -69
- package/dist/v0.9/workflow.d.ts +0 -5
package/dist/index.0.10.js
CHANGED
|
@@ -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
|
|
@@ -405,6 +412,21 @@ var ProtokolSDK010 = (function (exports, axios) {
|
|
|
405
412
|
async revisions(uuid) {
|
|
406
413
|
return await this.client.get(`/v3/system/component/${this.ref}/model/${uuid}/revisions`);
|
|
407
414
|
}
|
|
415
|
+
/**
|
|
416
|
+
* Get a single extension by name from the component
|
|
417
|
+
*
|
|
418
|
+
* @param name - The name of the extension to retrieve
|
|
419
|
+
* @param version - The component version
|
|
420
|
+
* @returns The extension object
|
|
421
|
+
*
|
|
422
|
+
* @example
|
|
423
|
+
* ```typescript
|
|
424
|
+
* const extension = await component.getExtension('shipping_tracker', '0.1.0')
|
|
425
|
+
* ```
|
|
426
|
+
*/
|
|
427
|
+
async getExtension(name, version) {
|
|
428
|
+
return await this.client.get(`/v4/system/component/${this.ref}/${version}/extensions/${name}`);
|
|
429
|
+
}
|
|
408
430
|
/**
|
|
409
431
|
* Install a new extension on the component
|
|
410
432
|
*
|
|
@@ -459,6 +481,21 @@ var ProtokolSDK010 = (function (exports, axios) {
|
|
|
459
481
|
async deleteExtension(name, version) {
|
|
460
482
|
return await this.client.delete(`/v4/system/component/${this.ref}/${version}/extensions/${name}`);
|
|
461
483
|
}
|
|
484
|
+
/**
|
|
485
|
+
* Get a single policy by name from the component
|
|
486
|
+
*
|
|
487
|
+
* @param name - The name of the policy to retrieve
|
|
488
|
+
* @param version - The component version
|
|
489
|
+
* @returns The policy object
|
|
490
|
+
*
|
|
491
|
+
* @example
|
|
492
|
+
* ```typescript
|
|
493
|
+
* const policy = await component.getPolicy('restrict_email', '0.1.0')
|
|
494
|
+
* ```
|
|
495
|
+
*/
|
|
496
|
+
async getPolicy(name, version) {
|
|
497
|
+
return await this.client.get(`/v4/system/component/${this.ref}/${version}/policies/${name}`);
|
|
498
|
+
}
|
|
462
499
|
/**
|
|
463
500
|
* Install a new policy on the component
|
|
464
501
|
*
|
package/dist/package.json
CHANGED
|
@@ -161,6 +161,19 @@ export default class Component extends PlatformBaseClient {
|
|
|
161
161
|
workflow(event: string, input: any): Promise<AxiosResponse<any, any>>;
|
|
162
162
|
function(name: string, input: any): Promise<AxiosResponse<any, any>>;
|
|
163
163
|
revisions(uuid: string): Promise<AxiosResponse<any, any>>;
|
|
164
|
+
/**
|
|
165
|
+
* Get a single extension by name from the component
|
|
166
|
+
*
|
|
167
|
+
* @param name - The name of the extension to retrieve
|
|
168
|
+
* @param version - The component version
|
|
169
|
+
* @returns The extension object
|
|
170
|
+
*
|
|
171
|
+
* @example
|
|
172
|
+
* ```typescript
|
|
173
|
+
* const extension = await component.getExtension('shipping_tracker', '0.1.0')
|
|
174
|
+
* ```
|
|
175
|
+
*/
|
|
176
|
+
getExtension(name: string, version: string): Promise<AxiosResponse<any, any>>;
|
|
164
177
|
/**
|
|
165
178
|
* Install a new extension on the component
|
|
166
179
|
*
|
|
@@ -209,6 +222,19 @@ export default class Component extends PlatformBaseClient {
|
|
|
209
222
|
* ```
|
|
210
223
|
*/
|
|
211
224
|
deleteExtension(name: string, version: string): Promise<AxiosResponse<any, any>>;
|
|
225
|
+
/**
|
|
226
|
+
* Get a single policy by name from the component
|
|
227
|
+
*
|
|
228
|
+
* @param name - The name of the policy to retrieve
|
|
229
|
+
* @param version - The component version
|
|
230
|
+
* @returns The policy object
|
|
231
|
+
*
|
|
232
|
+
* @example
|
|
233
|
+
* ```typescript
|
|
234
|
+
* const policy = await component.getPolicy('restrict_email', '0.1.0')
|
|
235
|
+
* ```
|
|
236
|
+
*/
|
|
237
|
+
getPolicy(name: string, version: string): Promise<AxiosResponse<any, any>>;
|
|
212
238
|
/**
|
|
213
239
|
* Install a new policy on the component
|
|
214
240
|
*
|
package/dist/v0.10/index.cjs.js
CHANGED
|
@@ -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
|
|
@@ -19371,6 +19378,21 @@ class Component extends PlatformBaseClient {
|
|
|
19371
19378
|
async revisions(uuid) {
|
|
19372
19379
|
return await this.client.get(`/v3/system/component/${this.ref}/model/${uuid}/revisions`);
|
|
19373
19380
|
}
|
|
19381
|
+
/**
|
|
19382
|
+
* Get a single extension by name from the component
|
|
19383
|
+
*
|
|
19384
|
+
* @param name - The name of the extension to retrieve
|
|
19385
|
+
* @param version - The component version
|
|
19386
|
+
* @returns The extension object
|
|
19387
|
+
*
|
|
19388
|
+
* @example
|
|
19389
|
+
* ```typescript
|
|
19390
|
+
* const extension = await component.getExtension('shipping_tracker', '0.1.0')
|
|
19391
|
+
* ```
|
|
19392
|
+
*/
|
|
19393
|
+
async getExtension(name, version) {
|
|
19394
|
+
return await this.client.get(`/v4/system/component/${this.ref}/${version}/extensions/${name}`);
|
|
19395
|
+
}
|
|
19374
19396
|
/**
|
|
19375
19397
|
* Install a new extension on the component
|
|
19376
19398
|
*
|
|
@@ -19425,6 +19447,21 @@ class Component extends PlatformBaseClient {
|
|
|
19425
19447
|
async deleteExtension(name, version) {
|
|
19426
19448
|
return await this.client.delete(`/v4/system/component/${this.ref}/${version}/extensions/${name}`);
|
|
19427
19449
|
}
|
|
19450
|
+
/**
|
|
19451
|
+
* Get a single policy by name from the component
|
|
19452
|
+
*
|
|
19453
|
+
* @param name - The name of the policy to retrieve
|
|
19454
|
+
* @param version - The component version
|
|
19455
|
+
* @returns The policy object
|
|
19456
|
+
*
|
|
19457
|
+
* @example
|
|
19458
|
+
* ```typescript
|
|
19459
|
+
* const policy = await component.getPolicy('restrict_email', '0.1.0')
|
|
19460
|
+
* ```
|
|
19461
|
+
*/
|
|
19462
|
+
async getPolicy(name, version) {
|
|
19463
|
+
return await this.client.get(`/v4/system/component/${this.ref}/${version}/policies/${name}`);
|
|
19464
|
+
}
|
|
19428
19465
|
/**
|
|
19429
19466
|
* Install a new policy on the component
|
|
19430
19467
|
*
|
package/dist/v0.10/index.esm.js
CHANGED
|
@@ -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
|
|
@@ -404,6 +411,21 @@ class Component extends PlatformBaseClient {
|
|
|
404
411
|
async revisions(uuid) {
|
|
405
412
|
return await this.client.get(`/v3/system/component/${this.ref}/model/${uuid}/revisions`);
|
|
406
413
|
}
|
|
414
|
+
/**
|
|
415
|
+
* Get a single extension by name from the component
|
|
416
|
+
*
|
|
417
|
+
* @param name - The name of the extension to retrieve
|
|
418
|
+
* @param version - The component version
|
|
419
|
+
* @returns The extension object
|
|
420
|
+
*
|
|
421
|
+
* @example
|
|
422
|
+
* ```typescript
|
|
423
|
+
* const extension = await component.getExtension('shipping_tracker', '0.1.0')
|
|
424
|
+
* ```
|
|
425
|
+
*/
|
|
426
|
+
async getExtension(name, version) {
|
|
427
|
+
return await this.client.get(`/v4/system/component/${this.ref}/${version}/extensions/${name}`);
|
|
428
|
+
}
|
|
407
429
|
/**
|
|
408
430
|
* Install a new extension on the component
|
|
409
431
|
*
|
|
@@ -458,6 +480,21 @@ class Component extends PlatformBaseClient {
|
|
|
458
480
|
async deleteExtension(name, version) {
|
|
459
481
|
return await this.client.delete(`/v4/system/component/${this.ref}/${version}/extensions/${name}`);
|
|
460
482
|
}
|
|
483
|
+
/**
|
|
484
|
+
* Get a single policy by name from the component
|
|
485
|
+
*
|
|
486
|
+
* @param name - The name of the policy to retrieve
|
|
487
|
+
* @param version - The component version
|
|
488
|
+
* @returns The policy object
|
|
489
|
+
*
|
|
490
|
+
* @example
|
|
491
|
+
* ```typescript
|
|
492
|
+
* const policy = await component.getPolicy('restrict_email', '0.1.0')
|
|
493
|
+
* ```
|
|
494
|
+
*/
|
|
495
|
+
async getPolicy(name, version) {
|
|
496
|
+
return await this.client.get(`/v4/system/component/${this.ref}/${version}/policies/${name}`);
|
|
497
|
+
}
|
|
461
498
|
/**
|
|
462
499
|
* Install a new policy on the component
|
|
463
500
|
*
|
package/package.json
CHANGED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import IntegrationsBaseClient from "../integrationsBaseClient";
|
|
2
|
-
import { AxiosResponse } from "axios";
|
|
3
|
-
import { GenerateIPSQrCodeRequest, IPSQrCodeResponse } from "../../types/integrations/serbiaUtits";
|
|
4
|
-
export default class SerbiaUtil extends IntegrationsBaseClient {
|
|
5
|
-
nbsSearch(params: any): Promise<AxiosResponse<any, any>>;
|
|
6
|
-
getNbsIpsQrCode(code: GenerateIPSQrCodeRequest, size: number, lang?: string): Promise<AxiosResponse<IPSQrCodeResponse>>;
|
|
7
|
-
validateNbsIpsQrCode(qrCodeString: string, lang?: string): Promise<AxiosResponse<IPSQrCodeResponse>>;
|
|
8
|
-
getReceiptFromUrl(url: string, source: string): Promise<AxiosResponse<any, any>>;
|
|
9
|
-
getContoList(): Promise<AxiosResponse<any, any>>;
|
|
10
|
-
services(method: string, endpoint: string, params?: any): Promise<AxiosResponse<any, any>>;
|
|
11
|
-
request(method: string, endpoint: string, params: any): Promise<AxiosResponse<any, any>>;
|
|
12
|
-
}
|
package/dist/v0.10/apiUser.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import PlatformBaseClient from "./platformBaseClient";
|
|
2
|
-
export default class APIUser extends PlatformBaseClient {
|
|
3
|
-
auth(username: string, password: string, project: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
4
|
-
newSecret(uuid: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
5
|
-
revokeSecret(uuid: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
6
|
-
edit(uuid: string, roles: string[]): Promise<import("axios").AxiosResponse<any, any>>;
|
|
7
|
-
list(): Promise<any>;
|
|
8
|
-
get(uuid: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
9
|
-
}
|
package/dist/v0.10/apps.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import PlatformBaseClient from "./platformBaseClient";
|
|
2
|
-
export default class Apps extends PlatformBaseClient {
|
|
3
|
-
private appType;
|
|
4
|
-
constructor(appType?: string);
|
|
5
|
-
updateSettings(updateValues: any, ref: string): Promise<any>;
|
|
6
|
-
download(ref: string, version: string): Promise<any>;
|
|
7
|
-
upload(formData: FormData): Promise<any>;
|
|
8
|
-
}
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { FindParams, FindOptions, FindResponse, FindAdvancedParams, FindAggregateParams, Model, UpdateOptions, ModifyOptions, StreamHandler, AggregateChainable, ComponentOptions } from "./types/component";
|
|
2
|
-
import PlatformBaseClient from "./platformBaseClient";
|
|
3
|
-
import { AxiosResponse } from "axios";
|
|
4
|
-
export default class Component extends PlatformBaseClient {
|
|
5
|
-
private ref;
|
|
6
|
-
private version;
|
|
7
|
-
constructor(ref?: string | null, options?: ComponentOptions);
|
|
8
|
-
/**
|
|
9
|
-
* Get the base path for component API calls
|
|
10
|
-
* @private
|
|
11
|
-
*/
|
|
12
|
-
private getComponentPath;
|
|
13
|
-
/**
|
|
14
|
-
* Find method to search for models
|
|
15
|
-
*
|
|
16
|
-
* @param {FindParams} filters - The filters to apply to the search
|
|
17
|
-
* @param {FindOptions} opts - The options to apply to the search
|
|
18
|
-
*
|
|
19
|
-
* @returns {Promise<FindResponse>} - The result of the search
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* platform.component(name).find({
|
|
23
|
-
* currentPage: 1,
|
|
24
|
-
* perPage: 10,
|
|
25
|
-
* })
|
|
26
|
-
*
|
|
27
|
-
* // advanced search
|
|
28
|
-
* platform.component(name).find({
|
|
29
|
-
* $adv: {
|
|
30
|
-
* name: "John Doe",
|
|
31
|
-
* }
|
|
32
|
-
* )
|
|
33
|
-
**/
|
|
34
|
-
find(filters: FindParams, opts?: FindOptions): Promise<AxiosResponse<FindResponse>>;
|
|
35
|
-
/**
|
|
36
|
-
* FindOne method to search for a single model
|
|
37
|
-
*
|
|
38
|
-
* @param {FindAdvancedParams} filter - The filters to apply to the search
|
|
39
|
-
* @param {FindOptions} opts - The options to apply to the search
|
|
40
|
-
*
|
|
41
|
-
* @returns {Promise<?Model>} - The result of the search
|
|
42
|
-
*
|
|
43
|
-
* @example
|
|
44
|
-
* platform.component(name).findOne({
|
|
45
|
-
* name: "John Doe",
|
|
46
|
-
* })
|
|
47
|
-
**/
|
|
48
|
-
findOne(filter: FindAdvancedParams, opts: FindOptions): Promise<Model | null>;
|
|
49
|
-
/**
|
|
50
|
-
* Get model by uuid
|
|
51
|
-
*
|
|
52
|
-
* @param uuid string - The uuid of the model
|
|
53
|
-
* @returns (Promise<Model>)
|
|
54
|
-
*/
|
|
55
|
-
get(uuid: string): Promise<AxiosResponse<Model>>;
|
|
56
|
-
/**
|
|
57
|
-
* Update model by uuid
|
|
58
|
-
*
|
|
59
|
-
* @param uuid string - The uuid of the model
|
|
60
|
-
* @param data
|
|
61
|
-
* @returns
|
|
62
|
-
*/
|
|
63
|
-
update(uuid: string, data: Record<string, any>, options: UpdateOptions): Promise<AxiosResponse<any, any>>;
|
|
64
|
-
/**
|
|
65
|
-
* Update many models
|
|
66
|
-
*
|
|
67
|
-
* @param data
|
|
68
|
-
* @param options
|
|
69
|
-
* @returns
|
|
70
|
-
*/
|
|
71
|
-
updateMany(data: Record<string, any>[], options: UpdateOptions): Promise<AxiosResponse<any, any>>;
|
|
72
|
-
/**
|
|
73
|
-
* Modify models by filters
|
|
74
|
-
*
|
|
75
|
-
* @param data
|
|
76
|
-
* @param options
|
|
77
|
-
* @returns
|
|
78
|
-
*/
|
|
79
|
-
modify(filters: Record<string, any>, data: Record<string, any>, options: ModifyOptions): Promise<AxiosResponse<any, any>>;
|
|
80
|
-
/**
|
|
81
|
-
* Concurrent update model by uuid
|
|
82
|
-
*
|
|
83
|
-
* @param uuid string - The uuid of the model
|
|
84
|
-
* @param version number - The version of the model
|
|
85
|
-
* @param data
|
|
86
|
-
* @returns
|
|
87
|
-
*/
|
|
88
|
-
concurrentUpdate(uuid: string, version: number, data: Record<string, any>, options: UpdateOptions): Promise<AxiosResponse<any, any>>;
|
|
89
|
-
create(model: Record<string, any>): Promise<AxiosResponse<any, any>>;
|
|
90
|
-
delete(uuid: string): Promise<AxiosResponse<any, any>>;
|
|
91
|
-
/**
|
|
92
|
-
* Execute aggregate pipeline with optional streaming support
|
|
93
|
-
*
|
|
94
|
-
* Returns a chainable object that allows both buffered and streaming modes.
|
|
95
|
-
* Call .onData() to enable streaming mode, or await directly for buffered mode.
|
|
96
|
-
*
|
|
97
|
-
* @param {FindAggregateParams} pipeline - MongoDB aggregation pipeline
|
|
98
|
-
*
|
|
99
|
-
* @returns {AggregateChainable} Chainable object with streaming methods and Promise interface
|
|
100
|
-
*
|
|
101
|
-
* @example
|
|
102
|
-
* ```typescript
|
|
103
|
-
* // Buffered response (default, up to 5K documents)
|
|
104
|
-
* const result = await component.aggregate([{ $match: { status: 'active' } }]);
|
|
105
|
-
* console.log(result.data); // All results at once
|
|
106
|
-
*
|
|
107
|
-
* // Streaming response (up to 25K documents)
|
|
108
|
-
* await component.aggregate([{ $match: { status: 'active' } }])
|
|
109
|
-
* .onData((doc) => console.log('Received:', doc))
|
|
110
|
-
* .onError((err) => console.error('Error:', err))
|
|
111
|
-
* .onEnd(() => console.log('Stream complete'));
|
|
112
|
-
* ```
|
|
113
|
-
*/
|
|
114
|
-
aggregate(pipeline: FindAggregateParams): AggregateChainable;
|
|
115
|
-
settings(): Promise<AxiosResponse<any, any>>;
|
|
116
|
-
saveSettings(settings: any, version: string): Promise<AxiosResponse<any, any>>;
|
|
117
|
-
saveTemplatesDist(version: string, sdkVersion: string, engine: string, dist: Record<string, string>): Promise<any>;
|
|
118
|
-
workflow(event: string, input: any): Promise<AxiosResponse<any, any>>;
|
|
119
|
-
function(name: string, input: any): Promise<AxiosResponse<any, any>>;
|
|
120
|
-
revisions(uuid: string): Promise<AxiosResponse<any, any>>;
|
|
121
|
-
/**
|
|
122
|
-
* Internal method to handle NDJSON streaming responses
|
|
123
|
-
*
|
|
124
|
-
* @private
|
|
125
|
-
*/
|
|
126
|
-
private _streamNDJSON;
|
|
127
|
-
}
|
|
128
|
-
export { FindParams, FindOptions, FindResponse, FindAdvancedParams, FindAggregateParams, Model, UpdateOptions, StreamHandler, AggregateChainable, ComponentOptions, };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { AxiosResponse } from "axios";
|
|
2
|
-
import { ComponentListResponse } from "./types/component";
|
|
3
|
-
import PlatformBaseClient from "./platformBaseClient";
|
|
4
|
-
export default class ComponentUtils extends PlatformBaseClient {
|
|
5
|
-
list(): Promise<AxiosResponse<ComponentListResponse>>;
|
|
6
|
-
create(data: any): Promise<AxiosResponse<any, any>>;
|
|
7
|
-
}
|
package/dist/v0.10/config.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import PlatformBaseClient from "./platformBaseClient";
|
|
2
|
-
import { AxiosResponse } from "axios";
|
|
3
|
-
import { ConfigUpdateRequest, UserConfig } from './types/config';
|
|
4
|
-
export default class Config extends PlatformBaseClient {
|
|
5
|
-
/**
|
|
6
|
-
* Get user configuration
|
|
7
|
-
*/
|
|
8
|
-
getUserConfig(): Promise<AxiosResponse<UserConfig>>;
|
|
9
|
-
/**
|
|
10
|
-
* Update user configuration
|
|
11
|
-
* @param config Configuration data
|
|
12
|
-
*/
|
|
13
|
-
updateUserConfig(config: ConfigUpdateRequest): Promise<AxiosResponse<any>>;
|
|
14
|
-
}
|
package/dist/v0.10/forge.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import PlatformBaseClient from "./platformBaseClient";
|
|
2
|
-
export default class Forge extends PlatformBaseClient {
|
|
3
|
-
bundleUpload(buffer: Buffer): Promise<any>;
|
|
4
|
-
getWorkspaceApps(): Promise<any>;
|
|
5
|
-
removeVersion(ref: string, version: string): Promise<any>;
|
|
6
|
-
list(): Promise<any>;
|
|
7
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import PlatformBaseClient from "./platformBaseClient";
|
|
2
|
-
export default class Functions extends PlatformBaseClient {
|
|
3
|
-
list(): Promise<any>;
|
|
4
|
-
get(ref: string): Promise<any>;
|
|
5
|
-
update(uuid: string, update: any): Promise<any>;
|
|
6
|
-
/**
|
|
7
|
-
* Run platform function
|
|
8
|
-
*
|
|
9
|
-
* @param id - Function ID
|
|
10
|
-
* @param input - Input data
|
|
11
|
-
* @param query - Query parameters
|
|
12
|
-
* @returns - Function result
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* const result = await platform.function().run("myFunction", {input: { foo: "bar" }})
|
|
16
|
-
*/
|
|
17
|
-
run(id: string, d: {
|
|
18
|
-
input?: Record<string, any>;
|
|
19
|
-
query?: Record<string, string>;
|
|
20
|
-
headers?: Record<string, string>;
|
|
21
|
-
}): Promise<any>;
|
|
22
|
-
generateSignature(ref: string, env: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
23
|
-
}
|
package/dist/v0.10/index.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export { default as Component } from './component';
|
|
2
|
-
export { default as Platform } from './platform';
|
|
3
|
-
export { default as Functions } from './functions';
|
|
4
|
-
export { default as APIUser } from './apiUser';
|
|
5
|
-
export { default as Users } from './users';
|
|
6
|
-
export { default as Apps } from './apps';
|
|
7
|
-
export { default as ComponentUtils } from './componentUtils';
|
|
8
|
-
export { default as Thunder } from './thunder';
|
|
9
|
-
export { default as Ratchet } from './ratchet';
|
|
10
|
-
export { default as Sandbox } from './sandbox';
|
|
11
|
-
export { default as System } from './system';
|
|
12
|
-
export { default as Workflow } from './workflow';
|
|
13
|
-
export { default as Forge } from './forge';
|
|
14
|
-
export { default as Project } from './project';
|
|
15
|
-
export { default as Config } from './config';
|
|
16
|
-
export { default as Integrations } from './integrations';
|
|
17
|
-
export { default as Payments } from './integrations/payments';
|
|
18
|
-
export { default as Invoicing } from './integrations/invoicing';
|
|
19
|
-
export { default as DMS } from './integrations/dms';
|
|
20
|
-
export { default as SerbiaUtil } from './integrations/serbiaUtil';
|
|
21
|
-
export { default as VPFR } from './integrations/vpfr';
|