@platforma-sdk/workflow-tengo 1.2.11 → 1.4.0

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.
@@ -15,7 +15,9 @@ oop := import("@platforma-sdk/workflow-tengo:oop")
15
15
  validation := import("@platforma-sdk/workflow-tengo:validation")
16
16
  constants := import("@platforma-sdk/workflow-tengo:constants")
17
17
 
18
- _HEAVY_QUEUE := "heavy"
18
+ _HEAVY_QUEUE := "heavy"
19
+ _MEDIUM_QUEUE := "medium"
20
+ _LIGHT_QUEUE := "light"
19
21
  _UI_TASKS_QUEUE := "ui-tasks"
20
22
 
21
23
  /**
@@ -144,7 +146,7 @@ builder := func() {
144
146
  },
145
147
 
146
148
  /**
147
- * Sets the execution queue to the heavy queue.
149
+ * Execute command in the 'heavy' queue.
148
150
  */
149
151
  inHeavyQueue: func() {
150
152
  queue = _HEAVY_QUEUE
@@ -152,7 +154,23 @@ builder := func() {
152
154
  },
153
155
 
154
156
  /**
155
- * Sets the execution queue to the UI tasks queue.
157
+ * Execute command in the 'medium' queue.
158
+ */
159
+ inMediumQueue: func() {
160
+ queue = _MEDIUM_QUEUE
161
+ return self
162
+ },
163
+
164
+ /**
165
+ * Execute command in the 'light' queue.
166
+ */
167
+ inLightQueue: func() {
168
+ queue = _LIGHT_QUEUE
169
+ return self
170
+ },
171
+
172
+ /**
173
+ * Execute command in the 'ui-tasks' queue.
156
174
  */
157
175
  inUiQueue: func() {
158
176
  queue = _UI_TASKS_QUEUE
@@ -80,6 +80,7 @@ importFile := func(xsvFile, xsvType, spec, ...ops) {
80
80
  pfconv := exec.builder().
81
81
  software(pfconvSw).
82
82
  printErrStreamToStdout().
83
+ inLightQueue().
83
84
  arg("importCsv").
84
85
  arg(xsvFileName).
85
86
  arg("-p").arg("spec.json").
@@ -348,7 +348,7 @@ resource = func(r) {
348
348
  },
349
349
 
350
350
  /**
351
- * Whether ressource has input field with specified name
351
+ * Whether resource has input field with specified name
352
352
  *
353
353
  * @param name field name
354
354
  */
@@ -357,7 +357,7 @@ resource = func(r) {
357
357
  },
358
358
 
359
359
  /**
360
- * Whether ressource has output field with specified name
360
+ * Whether resource has output field with specified name
361
361
  *
362
362
  * @param name field name
363
363
  */
@@ -366,7 +366,7 @@ resource = func(r) {
366
366
  },
367
367
 
368
368
  /**
369
- * Whether ressource has any field with specified name
369
+ * Whether resource has any field with specified name
370
370
  *
371
371
  * @param name field name
372
372
  */
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platforma-sdk/workflow-tengo",
3
- "version": "1.2.11",
3
+ "version": "1.4.0",
4
4
  "description": "Tengo SDK library",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",
@@ -16,7 +16,7 @@
16
16
  "./dist/**/*"
17
17
  ],
18
18
  "dependencies": {
19
- "@milaboratories/software-pframes-conv": "^1.5.9"
19
+ "@milaboratories/software-pframes-conv": "^1.5.10"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@platforma-sdk/tengo-builder": "^1.14.13"