@connectreport/connectreport-js 2.81.0-beta.4 → 2.81.0-beta.6

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/api.ts CHANGED
@@ -34,17 +34,29 @@ export interface CycleConfig {
34
34
  */
35
35
  configType: CycleConfigConfigTypeEnum;
36
36
  /**
37
- * Data connector name (case-insensitive)
37
+ * Data source type - \'connector\' for external data connector, \'parameterSheet\' for worksheet in the template
38
38
  * @type {string}
39
39
  * @memberof CycleConfig
40
40
  */
41
- connector: string;
41
+ cycleSource?: CycleConfigCycleSourceEnum;
42
42
  /**
43
- * Data source document ID
43
+ * Name of the worksheet to read parameter rows from (required when cycleSource is \'parameterSheet\')
44
44
  * @type {string}
45
45
  * @memberof CycleConfig
46
46
  */
47
- docId: string;
47
+ parameterSheetName?: string;
48
+ /**
49
+ * Data connector name (case-insensitive, required when cycleSource is \'connector\')
50
+ * @type {string}
51
+ * @memberof CycleConfig
52
+ */
53
+ connector?: string;
54
+ /**
55
+ * Data source document ID (required when cycleSource is \'connector\')
56
+ * @type {string}
57
+ * @memberof CycleConfig
58
+ */
59
+ docId?: string;
48
60
  /**
49
61
  * Columns to query - defines what data to fetch (each row creates a child task)
50
62
  * @type {Array<FieldInfo>}
@@ -133,6 +145,14 @@ export enum CycleConfigConfigTypeEnum {
133
145
  Filters = 'filters',
134
146
  Recipients = 'recipients'
135
147
  }
148
+ /**
149
+ * @export
150
+ * @enum {string}
151
+ */
152
+ export enum CycleConfigCycleSourceEnum {
153
+ Connector = 'connector',
154
+ ParameterSheet = 'parameterSheet'
155
+ }
136
156
 
137
157
  /**
138
158
  * Field metadata from data source
package/dist/index.cjs CHANGED
@@ -79,6 +79,7 @@ __export(index_exports, {
79
79
  BaseTemplatesApiFp: () => BaseTemplatesApiFp,
80
80
  ConnectReport: () => ConnectReport,
81
81
  CycleConfigConfigTypeEnum: () => CycleConfigConfigTypeEnum,
82
+ CycleConfigCycleSourceEnum: () => CycleConfigCycleSourceEnum,
82
83
  DocumentsApi: () => DocumentsApi,
83
84
  DocumentsApiAxiosParamCreator: () => DocumentsApiAxiosParamCreator,
84
85
  DocumentsApiFactory: () => DocumentsApiFactory,
@@ -204,6 +205,11 @@ var CycleConfigConfigTypeEnum = /* @__PURE__ */ ((CycleConfigConfigTypeEnum2) =>
204
205
  CycleConfigConfigTypeEnum2["Recipients"] = "recipients";
205
206
  return CycleConfigConfigTypeEnum2;
206
207
  })(CycleConfigConfigTypeEnum || {});
208
+ var CycleConfigCycleSourceEnum = /* @__PURE__ */ ((CycleConfigCycleSourceEnum2) => {
209
+ CycleConfigCycleSourceEnum2["Connector"] = "connector";
210
+ CycleConfigCycleSourceEnum2["ParameterSheet"] = "parameterSheet";
211
+ return CycleConfigCycleSourceEnum2;
212
+ })(CycleConfigCycleSourceEnum || {});
207
213
  var FilterCycleFrequencyEnum = /* @__PURE__ */ ((FilterCycleFrequencyEnum2) => {
208
214
  FilterCycleFrequencyEnum2["Monthly"] = "Monthly";
209
215
  FilterCycleFrequencyEnum2["OnceNow"] = "Once - now";
@@ -3134,6 +3140,7 @@ globalThis.ConnectReport = ConnectReport;
3134
3140
  BaseTemplatesApiFp,
3135
3141
  ConnectReport,
3136
3142
  CycleConfigConfigTypeEnum,
3143
+ CycleConfigCycleSourceEnum,
3137
3144
  DocumentsApi,
3138
3145
  DocumentsApiAxiosParamCreator,
3139
3146
  DocumentsApiFactory,