blixify-server 0.2.5 → 0.2.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mondayWrapper.d.ts","sourceRoot":"","sources":["../../src/apis/mondayWrapper.ts"],"names":[],"mappings":"AAEA,OAAO,cAAc,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AA0B5C,eAAO,MAAM,cAAc,UAClB,MAAM,SACN,GAAG,cACE,GAAG,qDAchB,CAAC;AAEF;;;;GAIG;AACH,qBAAa,aAAa;IACxB,WAAW,SAAM;IACjB,OAAO,SAAM;IACb,OAAO,SAAM;IACb,MAAM,EAAE,cAAc,CAQpB;IACF,GAAG,EAAE,UAAU,CAAC;IAEhB,YAAY,QAAS,GAAG,aAEtB;IACF,SAAS;cAAe,MAAM,EAAE;;;;MAK9B;gBAGA,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,cAAc,EACtB,YAAY,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,MAAM,CAAC,EAAE,OAAO,KAAK,OAAO,EACrD,SAAS,EAAE,MAAM;QAAE,IAAI,EAAE,MAAM,EAAE,CAAC;QAAC,KAAK,EAAE;YAAE,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;SAAE,CAAA;KAAE,EACpE,GAAG,EAAE,UAAU;IAWjB,UAAU,eAAgB;QACxB,EAAE,EAAE,MAAM,CAAC;QACX,MAAM,MAAM,CAAC;QACb,aAAa,EAAE;
|
|
1
|
+
{"version":3,"file":"mondayWrapper.d.ts","sourceRoot":"","sources":["../../src/apis/mondayWrapper.ts"],"names":[],"mappings":"AAEA,OAAO,cAAc,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AA0B5C,eAAO,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}
|
|
@@ -71,13 +71,20 @@ class MondayWrapper {
|
|
|
71
71
|
name: mondayData.name,
|
|
72
72
|
};
|
|
73
73
|
mondayData.column_values.map((eachColumn) => {
|
|
74
|
+
var _a;
|
|
74
75
|
if (eachColumn.id === "subitems")
|
|
75
76
|
return;
|
|
76
77
|
let retrieveText = true;
|
|
78
|
+
let resultValue = eachColumn.value;
|
|
77
79
|
const modelType = this.modelType().read;
|
|
78
80
|
if (modelType.includes(eachColumn.id))
|
|
79
81
|
retrieveText = false;
|
|
80
|
-
|
|
82
|
+
if (eachColumn.type === "mirror") {
|
|
83
|
+
resultValue = (_a = eachColumn.display_value) !== null && _a !== void 0 ? _a : eachColumn.value;
|
|
84
|
+
}
|
|
85
|
+
else if (retrieveText)
|
|
86
|
+
resultValue = eachColumn.text;
|
|
87
|
+
data[eachColumn.id] = resultValue;
|
|
81
88
|
});
|
|
82
89
|
return data;
|
|
83
90
|
};
|
|
@@ -142,10 +149,12 @@ class MondayWrapper {
|
|
|
142
149
|
id
|
|
143
150
|
name
|
|
144
151
|
column_values {
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
152
|
+
id text value type
|
|
153
|
+
... on MirrorValue {
|
|
154
|
+
display_value
|
|
155
|
+
id
|
|
156
|
+
}
|
|
157
|
+
}
|
|
149
158
|
}
|
|
150
159
|
}
|
|
151
160
|
}
|
|
@@ -206,9 +215,11 @@ class MondayWrapper {
|
|
|
206
215
|
id
|
|
207
216
|
name
|
|
208
217
|
column_values {
|
|
209
|
-
id
|
|
210
|
-
|
|
211
|
-
|
|
218
|
+
id text value type
|
|
219
|
+
... on MirrorValue {
|
|
220
|
+
display_value
|
|
221
|
+
id
|
|
222
|
+
}
|
|
212
223
|
}
|
|
213
224
|
}
|
|
214
225
|
}
|
|
@@ -324,9 +335,11 @@ class MondayWrapper {
|
|
|
324
335
|
id
|
|
325
336
|
name
|
|
326
337
|
column_values {
|
|
327
|
-
id
|
|
328
|
-
|
|
329
|
-
|
|
338
|
+
id text value type
|
|
339
|
+
... on MirrorValue {
|
|
340
|
+
display_value
|
|
341
|
+
id
|
|
342
|
+
}
|
|
330
343
|
}
|
|
331
344
|
}
|
|
332
345
|
}
|
|
@@ -342,9 +355,11 @@ class MondayWrapper {
|
|
|
342
355
|
id
|
|
343
356
|
name
|
|
344
357
|
column_values {
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
358
|
+
id text value type
|
|
359
|
+
... on MirrorValue {
|
|
360
|
+
display_value
|
|
361
|
+
id
|
|
362
|
+
}
|
|
348
363
|
}
|
|
349
364
|
}
|
|
350
365
|
}
|