@feedmepos/mf-report 5.32.1-beta.0 → 5.32.2
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/{App-CjrRU11g.js → App-CbDEdVR2.js} +81 -81
- package/dist/{DateRangeSelect-DWuJKk38.js → DateRangeSelect-PE9H0GCA.js} +1 -1
- package/dist/{Default.vue_vue_type_script_setup_true_lang-pxeEGv9f.js → Default.vue_vue_type_script_setup_true_lang-Cfu4CYAi.js} +1 -1
- package/dist/{DigestListView-dLVRD-kY.js → DigestListView-Da8l1BCq.js} +3 -3
- package/dist/{DigestReaderView-jU_ukFZK.js → DigestReaderView-FBXcXxUr.js} +4 -4
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-8tad4MW2.js → DynamicWidget.vue_vue_type_script_setup_true_lang-ldmbZtLO.js} +173 -173
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-K7CvZban.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-ud-55uWq.js} +5 -5
- package/dist/{InsightView-djCqNyn3.js → InsightView-B8ulTYh7.js} +5 -5
- package/dist/{Integration-D9FMWr9Z.js → Integration-DgYDFNeI.js} +3 -3
- package/dist/{Integrations-DUTetJXV.js → Integrations-CKJ6D7qd.js} +2 -2
- package/dist/{Layout-C1GSViy5.js → Layout-DUIZFKm9.js} +1 -1
- package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-DC2WdCE-.js → LocationSelect.vue_vue_type_script_setup_true_lang-DM0WlrQc.js} +2 -2
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-spQgZxjH.js → MenuTab.vue_vue_type_script_setup_true_lang-UynluHLf.js} +5 -5
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DyfcyW_a.js → NavigationTab.vue_vue_type_script_setup_true_lang-E3heC6je.js} +5 -5
- package/dist/{OverviewView-DVPyBvIy.js → OverviewView-DYZOb_qv.js} +5 -5
- package/dist/{Report-Buemqzxr.js → Report-DCd6g-uK.js} +3 -3
- package/dist/{ReportCanvasView-B3cX-r6H.js → ReportCanvasView-DY0rJ32y.js} +5 -5
- package/dist/{ReportEditor-DpzAjKjU.js → ReportEditor-CTKsXpB-.js} +7 -7
- package/dist/{ReportView-Usm2F05o.js → ReportView-gNNAAc_q.js} +6 -6
- package/dist/{ReportViewRoute-BuxPA_WO.js → ReportViewRoute-DoC6hYww.js} +2 -2
- package/dist/{Setting-cThrrYa1.js → Setting-BiCgtjoi.js} +3 -3
- package/dist/{Template-B9pnUMgc.js → Template-nHOQ1GMY.js} +3 -3
- package/dist/{TileEditor-ta3jcfD9.js → TileEditor-z9Wso4D0.js} +6 -6
- package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-B5tgugcg.js → TilePageStack.vue_vue_type_script_setup_true_lang-f5uCjyR1.js} +2 -2
- package/dist/{TransitionFade-qS1hS_wS.js → TransitionFade-DUOfJMio.js} +5 -5
- package/dist/{app-CMF_9rbJ.js → app-zXupeysX.js} +17 -17
- package/dist/app.js +1 -1
- package/dist/assets/{formatChartData.worker-BprlZnJs.js → formatChartData.worker-McooHFG-.js} +23 -23
- package/dist/assets/{processTableData.worker-D5GSFMnH.js → processTableData.worker-B6m0dNAb.js} +23 -23
- package/dist/{currency-D5JvORk7.js → currency-BuoNDIHl.js} +1 -1
- package/dist/{index-BjEEjEBa.js → index-qcO4JKVu.js} +167 -149
- package/dist/{report-CBkz_f_9.js → report-C3jQF-wm.js} +1 -1
- package/dist/{useDigestFont-DQ0uozM-.js → useDigestFont-B6du0dOB.js} +1 -1
- package/dist/{useReportCanvasPanel-BSJyXKS3.js → useReportCanvasPanel-DC-0p5rk.js} +4 -9
- package/dist/{useRestaurantPermission-BsmsrHlc.js → useRestaurantPermission-C1QfXed8.js} +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ak as br, ah as dr } from "./app-
|
|
1
|
+
import { ak as br, ah as dr } from "./app-zXupeysX.js";
|
|
2
2
|
function bt(c) {
|
|
3
3
|
throw new Error('Could not dynamically require "' + c + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
4
4
|
}
|
|
@@ -2907,7 +2907,7 @@ select
|
|
|
2907
2907
|
},
|
|
2908
2908
|
Canonical_fromJson(r) {
|
|
2909
2909
|
var e, n = d.String, a = o.cast$1$0$ax(d.List_dynamic._as(r.$index(0, "measures")), n), i = d.nullable_List_dynamic._as(r.$index(0, "predicates"));
|
|
2910
|
-
return i = i == null ? null : o.cast$1$0$ax(i, n), i == null && (i = u.
|
|
2910
|
+
return i = i == null ? null : o.cast$1$0$ax(i, n), i == null && (i = u.List_empty), e = d.nullable_Map_dynamic_dynamic._as(r.$index(0, "measurePredicates")), n = e == null ? null : e.map$2$1(0, new t.Canonical_fromJson_closure(), n, d.List_String), new t.Canonical(a, i, n ?? u.Map_empty);
|
|
2911
2911
|
},
|
|
2912
2912
|
Hierarchy$(r, e, n, a) {
|
|
2913
2913
|
return new t.Hierarchy(r, n, e, a);
|
|
@@ -2987,8 +2987,8 @@ select
|
|
|
2987
2987
|
return t.Schema$(r, e, n, a, i, s, l, W0, _, M, b, O ?? 300, D, $, E, g, h, R, Z, W, B, I, x, w, v, X, j, s0, u0, z0, y0, g0, h0, I0);
|
|
2988
2988
|
},
|
|
2989
2989
|
Schema_fromJson(r) {
|
|
2990
|
-
var e, n, a, i, s, l, p, _, M, b, O, D, $, E, g, h, R, C, W, B, I, x, w, v, X, j, s0, u0 = null, z0 = "canonical", y0 = "hierarchy", g0 = "readPiece", h0 = d.List_dynamic, I0 = o.map$1$1$ax(h0._as(r.$index(0, "fields")), new t.Schema_fromJson_closure(), d.Field).toList$0(0), W0 = r.$index(0, "label"), Z = t.EnumByName_byName(u.
|
|
2991
|
-
return O1 = O1 == null ? u0 : o.cast$1$0$ax(O1, d.String), e = S0.$index(0, "timeColumn"), S0 = B0._as(S0.$index(0, "dateColumns")), S0 = S0 == null ? u0 : o.cast$1$0$ax(S0, d.String), n = r.$index(0, "rawTableName"), a = r.$index(0, "rawTopicName"), i = r.$index(0, "postgresqlDynamicRawTable"), s = r.$index(0, "sqliteDynamicRawTable"), l = r.$index(0, "materializedTableName"), p = r.$index(0, "materializedPostgresqlTableName"), _ = r.$index(0, "isJoinOnly"), M = r.$index(0, "isMaterializeOnly"), b = r.$index(0, "isContinuousUpdate"), O = r.$index(0, "interval"), D = r.$index(0, "partition"), $ = r.$index(0, "requirePartitionFilter"), $ == null && ($ = !0), E = B0._as(r.$index(0, "clusters")), E = E == null ? u0 : o.cast$1$0$ax(E, d.String), E == null && (E = t._setArrayType([], d.JSArray_String)), g = B0._as(r.$index(0, "indexes")), g = g == null ? u0 : o.map$1$1$ax(g, new t.Schema_fromJson_closure1(), d.Index).toList$0(0), g == null && (g = t._setArrayType([], d.JSArray_Index)), h = B0._as(r.$index(0, "filters")), h = h == null ? u0 : o.map$1$1$ax(h, new t.Schema_fromJson_closure2(), d.QueryRequestFilter).toList$0(0), h == null && (h = t._setArrayType([], d.JSArray_QueryRequestFilter)), R = r.$index(0, "isGlobal"), R == null && (R = !1), C = r.$index(0, "isAiHidden"), C == null && (C = !1), B0 = B0._as(r.$index(0, "aiKeywords")), B0 = B0 == null ? u0 : o.cast$1$0$ax(B0, d.String), B0 == null && (B0 = t._setArrayType([], d.JSArray_String)), W = r.$index(0, "aiCategory"), B = r.$index(0, "aiPriority"), B == null && (B = 3), I = r.$index(0, "mergeFilterType"), I = t.EnumByName_byName(u.List_EfK, I ?? "dates"), x = r.$index(0, "description"), w = r.$index(0, z0) == null ? u0 : t.Canonical_fromJson(r.$index(0, z0)), r.$index(0, y0) == null ? v = u0 : (v = r.$index(0, y0), v = new t.Hierarchy(t._asString(v.$index(0, "depth")), o.toString$0$(v.$index(0, "root")), t._asStringQ(v.$index(0, "parent")), t._asStringQ(v.$index(0, "rootKey")))), h0 = r.$index(0, "splits") == null ? u.
|
|
2990
|
+
var e, n, a, i, s, l, p, _, M, b, O, D, $, E, g, h, R, C, W, B, I, x, w, v, X, j, s0, u0 = null, z0 = "canonical", y0 = "hierarchy", g0 = "readPiece", h0 = d.List_dynamic, I0 = o.map$1$1$ax(h0._as(r.$index(0, "fields")), new t.Schema_fromJson_closure(), d.Field).toList$0(0), W0 = r.$index(0, "label"), Z = t.EnumByName_byName(u.List_8aB, r.$index(0, "name")), H0 = o.map$1$1$ax(h0._as(r.$index(0, "joins")), new t.Schema_fromJson_closure0(), d.Join).toList$0(0), v0 = t.TopLevelFilters_fromJson(r.$index(0, "topLevelFilters")), S0 = r.$index(0, "source"), H1 = t.EnumByName_byName(u.List_ytA, S0.$index(0, "type")), X1 = S0.$index(0, "table"), k1 = S0.$index(0, "field"), U1 = S0.$index(0, "dataset"), B0 = d.nullable_List_dynamic, O1 = B0._as(S0.$index(0, "uniqueKey"));
|
|
2991
|
+
return O1 = O1 == null ? u0 : o.cast$1$0$ax(O1, d.String), e = S0.$index(0, "timeColumn"), S0 = B0._as(S0.$index(0, "dateColumns")), S0 = S0 == null ? u0 : o.cast$1$0$ax(S0, d.String), n = r.$index(0, "rawTableName"), a = r.$index(0, "rawTopicName"), i = r.$index(0, "postgresqlDynamicRawTable"), s = r.$index(0, "sqliteDynamicRawTable"), l = r.$index(0, "materializedTableName"), p = r.$index(0, "materializedPostgresqlTableName"), _ = r.$index(0, "isJoinOnly"), M = r.$index(0, "isMaterializeOnly"), b = r.$index(0, "isContinuousUpdate"), O = r.$index(0, "interval"), D = r.$index(0, "partition"), $ = r.$index(0, "requirePartitionFilter"), $ == null && ($ = !0), E = B0._as(r.$index(0, "clusters")), E = E == null ? u0 : o.cast$1$0$ax(E, d.String), E == null && (E = t._setArrayType([], d.JSArray_String)), g = B0._as(r.$index(0, "indexes")), g = g == null ? u0 : o.map$1$1$ax(g, new t.Schema_fromJson_closure1(), d.Index).toList$0(0), g == null && (g = t._setArrayType([], d.JSArray_Index)), h = B0._as(r.$index(0, "filters")), h = h == null ? u0 : o.map$1$1$ax(h, new t.Schema_fromJson_closure2(), d.QueryRequestFilter).toList$0(0), h == null && (h = t._setArrayType([], d.JSArray_QueryRequestFilter)), R = r.$index(0, "isGlobal"), R == null && (R = !1), C = r.$index(0, "isAiHidden"), C == null && (C = !1), B0 = B0._as(r.$index(0, "aiKeywords")), B0 = B0 == null ? u0 : o.cast$1$0$ax(B0, d.String), B0 == null && (B0 = t._setArrayType([], d.JSArray_String)), W = r.$index(0, "aiCategory"), B = r.$index(0, "aiPriority"), B == null && (B = 3), I = r.$index(0, "mergeFilterType"), I = t.EnumByName_byName(u.List_EfK, I ?? "dates"), x = r.$index(0, "description"), w = r.$index(0, z0) == null ? u0 : t.Canonical_fromJson(r.$index(0, z0)), r.$index(0, y0) == null ? v = u0 : (v = r.$index(0, y0), v = new t.Hierarchy(t._asString(v.$index(0, "depth")), o.toString$0$(v.$index(0, "root")), t._asStringQ(v.$index(0, "parent")), t._asStringQ(v.$index(0, "rootKey")))), h0 = r.$index(0, "splits") == null ? u.List_empty1 : o.map$1$1$ax(h0._as(r.$index(0, "splits")), new t.Schema_fromJson_closure3(), d.Split).toList$0(0), X = r.$index(0, "activityAnchor"), X == null && (X = !1), j = r.$index(0, "isDeprecated"), j == null && (j = !1), r.$index(0, g0) == null ? s0 = u0 : (s0 = r.$index(0, g0), s0 = new t.ReadPiece(t._asInt(s0.$index(0, "outlets")), t._asInt(s0.$index(0, "days")))), t.Schema$(X, W, B0, B, w, E, x, I0, h, v, g, O, C, b, j, R, _, M, H0, W0, p, l, I, Z, D, i, n, a, s0, $, new t.Source(H1, X1, k1, U1, O1, e, S0), h0, s, v0);
|
|
2992
2992
|
},
|
|
2993
2993
|
Field_Field$numeric(r, e, n, a, i, s, l, p, _, M, b) {
|
|
2994
2994
|
return new t._NumericField(l, p, u.DATA_TYPE_3, e, s, _, n, b, i, !1, r, M, a);
|
|
@@ -3006,17 +3006,17 @@ select
|
|
|
3006
3006
|
var e, n, a, i, s, l, p, _, M, b, O = "name", D = "schemaName", $ = "pointTo", E = "formula", g = "label", h = "hidden", R = "isAiHidden", C = null, W = "description", B = "role", I = "identityOf";
|
|
3007
3007
|
switch (t.EnumByName_byName(u.List_k6a, r.$index(0, "type")).index) {
|
|
3008
3008
|
case 0:
|
|
3009
|
-
return e = r.$index(0, O), n = t.EnumByName_byName(u.
|
|
3009
|
+
return e = r.$index(0, O), n = t.EnumByName_byName(u.List_8aB, r.$index(0, D)), a = r.$index(0, $), i = r.$index(0, E), s = r.$index(0, g), l = r.$index(0, h), p = r.$index(0, R), _ = r.$index(0, "isCompareIgnoreSpaces"), _ == null && (_ = !1), M = r.$index(0, W), b = r.$index(0, B) == null ? C : t.EnumByName_byName(u.List_Moq, r.$index(0, B)), t.Field_Field$string(M, i, l, r.$index(0, I), p, _, s, e, a, C, b, n);
|
|
3010
3010
|
case 2:
|
|
3011
|
-
return e = r.$index(0, O), n = t.EnumByName_byName(u.
|
|
3011
|
+
return e = r.$index(0, O), n = t.EnumByName_byName(u.List_8aB, r.$index(0, D)), a = r.$index(0, $), i = r.$index(0, E), s = r.$index(0, g), l = r.$index(0, h), p = r.$index(0, R), _ = r.$index(0, W), M = r.$index(0, B) == null ? C : t.EnumByName_byName(u.List_Moq, r.$index(0, B)), t.Field_Field$bool(_, i, l, r.$index(0, I), p, s, e, a, C, M, n);
|
|
3012
3012
|
case 3:
|
|
3013
|
-
return e = r.$index(0, O), n = t.EnumByName_byName(u.
|
|
3013
|
+
return e = r.$index(0, O), n = t.EnumByName_byName(u.List_8aB, r.$index(0, D)), a = r.$index(0, $), i = r.$index(0, E), s = r.$index(0, g), l = r.$index(0, h), p = r.$index(0, R), _ = r.$index(0, W), M = r.$index(0, B) == null ? C : t.EnumByName_byName(u.List_Moq, r.$index(0, B)), t.Field_Field$numeric(_, i, l, r.$index(0, I), p, s, e, a, C, M, n);
|
|
3014
3014
|
case 1:
|
|
3015
|
-
return e = r.$index(0, O), n = t.EnumByName_byName(u.
|
|
3015
|
+
return e = r.$index(0, O), n = t.EnumByName_byName(u.List_8aB, r.$index(0, D)), a = r.$index(0, $), i = r.$index(0, E), s = r.$index(0, g), l = r.$index(0, h), p = r.$index(0, R), _ = r.$index(0, W), M = r.$index(0, B) == null ? C : t.EnumByName_byName(u.List_Moq, r.$index(0, B)), t.Field_Field$timestamp(_, i, l, r.$index(0, I), p, s, e, a, C, M, n);
|
|
3016
3016
|
}
|
|
3017
3017
|
},
|
|
3018
3018
|
Join_fromJson(r) {
|
|
3019
|
-
var e, n = t.EnumByName_byName(u.
|
|
3019
|
+
var e, n = t.EnumByName_byName(u.List_8aB, r.$index(0, "joinSchemaName")), a = o.map$1$1$ax(d.List_dynamic._as(r.$index(0, "conditions")), new t.Join_fromJson_closure(), d.JoinCondition).toList$0(0), i = r.$index(0, "topLevelTimeControl"), s = t.EnumByName_byName(u.List_8aB, r.$index(0, "mainSchemaName"));
|
|
3020
3020
|
return r.$index(0, "lateral") != null ? (e = r.$index(0, "lateral"), e = new t.JoinLateral(e.$index(0, "distinctFields"), e.$index(0, "sorts"))) : e = null, new t.Join(n, a, i, s, e);
|
|
3021
3021
|
},
|
|
3022
3022
|
getAggregationTypes(r) {
|
|
@@ -3234,29 +3234,29 @@ select
|
|
|
3234
3234
|
return i = new t._Sha1Sink(a, i, n, new Uint32Array(16), s), a[0] = 1732584193, a[1] = 4023233417, a[2] = 2562383102, a[3] = 271733878, a[4] = 3285377520, i._lengthInBytes = e.length, s.addAll$1(0, e), i._iterate$0(), i.close$0(0), u.JSString_methods.substring$2(t.stringReplaceAllFuncUnchecked(t._hexEncode(n._value.bytes), t.RegExp_RegExp("[0-9]", !1), new t.uniqueAlias_closure(), null), 0, 20);
|
|
3235
3235
|
},
|
|
3236
3236
|
QueryRequestDimension_fromJson(r) {
|
|
3237
|
-
var e, n, a, i = "timeFormatter", s = "formatter", l = t.EnumByName_byName(u.
|
|
3237
|
+
var e, n, a, i = "timeFormatter", s = "formatter", l = t.EnumByName_byName(u.List_8aB, r.$index(0, "schemaName")), p = r.$index(0, "name"), _ = r.$index(0, "decimal"), M = r.$index(0, i) != null ? t.EnumByName_byName(u.List_cWd, r.$index(0, i)) : null, b = r.$index(0, s) != null ? t.EnumByName_byName(u.List_IoM, r.$index(0, s)) : null, O = r.$index(0, "label");
|
|
3238
3238
|
return O == null && (O = r.$index(0, "name")), e = r.$index(0, "option") != null ? t.EnumByName_byName(u.List_yRY, r.$index(0, "option")) : null, n = r.$index(0, "fillGap"), n == null && (n = !1), a = r.$index(0, "hide"), a == null && (a = !1), new t.QueryRequestDimension(e, O, _, M, b, n, r.$index(0, "dataFormula"), r.$index(0, "displayFormula"), a, r.$index(0, "dateComparison"), l, p);
|
|
3239
3239
|
},
|
|
3240
3240
|
QueryRequestMetric_fromJson(r) {
|
|
3241
|
-
var e, n, a, i, s, l, p = "timeFormatter", _ = "formatter", M = t.EnumByName_byName(u.
|
|
3241
|
+
var e, n, a, i, s, l, p = "timeFormatter", _ = "formatter", M = t.EnumByName_byName(u.List_8aB, r.$index(0, "schemaName")), b = r.$index(0, "name"), O = r.$index(0, "decimal"), D = r.$index(0, "label");
|
|
3242
3242
|
return D == null && (D = r.$index(0, "name")), e = t.EnumByName_byName(u.List_iAW, r.$index(0, "aggregation")), n = r.$index(0, "nullable"), n == null && (n = !1), a = r.$index(0, "hide"), a == null && (a = !1), i = r.$index(0, "dataFormula"), s = r.$index(0, "displayFormula"), l = r.$index(0, p) != null ? t.EnumByName_byName(u.List_cWd, r.$index(0, p)) : null, new t.QueryRequestMetric(e, D, n, O, l, r.$index(0, _) != null ? t.EnumByName_byName(u.List_IoM, r.$index(0, _)) : null, i, s, a, M, b);
|
|
3243
3243
|
},
|
|
3244
3244
|
QueryRequestFilter$(r, e, n, a, i, s, l) {
|
|
3245
3245
|
return new t.QueryRequestFilter(a, i, r, e, l, s, n);
|
|
3246
3246
|
},
|
|
3247
3247
|
QueryRequestFilter_fromJson(r) {
|
|
3248
|
-
var e = t.EnumByName_byName(u.
|
|
3248
|
+
var e = t.EnumByName_byName(u.List_8aB, r.$index(0, "schemaName")), n = r.$index(0, "name"), a = t.EnumByName_byName(u.List_LO4, r.$index(0, "operator")), i = r.$index(0, "option") != null ? t.EnumByName_byName(u.List_yRY, r.$index(0, "option")) : null, s = r.$index(0, "values");
|
|
3249
3249
|
return new t.QueryRequestFilter(a, i, r.$index(0, "dataFormula"), r.$index(0, "isGlobalFilter"), s, e, n);
|
|
3250
3250
|
},
|
|
3251
3251
|
QueryRequest$(r, e, n, a, i, s, l, p, _, M, b, O, D, $, E) {
|
|
3252
3252
|
return new t.QueryRequest(b, o.fold$2$ax(n, t._setArrayType([], d.JSArray_QueryRequestDimension), new t.QueryRequest_closure()), o.fold$2$ax(l, t._setArrayType([], d.JSArray_QueryRequestMetric), new t.QueryRequest_closure0()), i, D, p, E, e, a, O, s, $, _, M, r);
|
|
3253
3253
|
},
|
|
3254
3254
|
QueryRequest_fromJson(r) {
|
|
3255
|
-
var e, n, a, i, s, l, p = "timeDimension", _ = t.EnumByName_byName(u.
|
|
3255
|
+
var e, n, a, i, s, l, p = "timeDimension", _ = t.EnumByName_byName(u.List_8aB, r.$index(0, "schemaName")), M = o.map$1$1$ax(r.$index(0, "dimensions"), new t.QueryRequest_fromJson_closure(), d.QueryRequestDimension).toList$0(0), b = o.map$1$1$ax(r.$index(0, "metrics"), new t.QueryRequest_fromJson_closure0(), d.QueryRequestMetric).toList$0(0), O = o.map$1$1$ax(r.$index(0, "joins"), new t.QueryRequest_fromJson_closure1(), d.SCHEMA_NAME).toList$0(0), D = o.map$1$1$ax(r.$index(0, "filters"), new t.QueryRequest_fromJson_closure2(), d.QueryRequestFilter).toList$0(0);
|
|
3256
3256
|
return r.$index(0, p) != null ? (e = r.$index(0, p), e = new t.QueryRequestTimeDimension(e.$index(0, "start"), e.$index(0, "end"), e.$index(0, "timeStart"), e.$index(0, "timeEnd"))) : e = null, n = r.$index(0, "restaurantIds"), a = r.$index(0, "warehouseIds"), i = r.$index(0, "businessIds"), s = o.map$1$1$ax(r.$index(0, "sorts"), new t.QueryRequest_fromJson_closure3(), d.QueryRequestSort).toList$0(0), l = r.$index(0, "blendConditions"), l == null && (l = []), t.QueryRequest$(o.map$1$1$ax(l, new t.QueryRequest_fromJson_closure4(), d.JoinDatasourceCondition).toList$0(0), i, M, D, O, r.$index(0, "limit"), b, n, r.$index(0, "rollup"), r.$index(0, "rollupPosition"), _, s, e, r.$index(0, "timezone"), a);
|
|
3257
3257
|
},
|
|
3258
3258
|
QueryRequestSort_fromJson(r) {
|
|
3259
|
-
var e = "aggregation", n = "dimensionOption", a = t.EnumByName_byName(u.
|
|
3259
|
+
var e = "aggregation", n = "dimensionOption", a = t.EnumByName_byName(u.List_8aB, r.$index(0, "schemaName")), i = r.$index(0, "name"), s = r.$index(0, e) != null ? t.EnumByName_byName(u.List_iAW, r.$index(0, e)) : null, l = r.$index(0, n) != null ? t.EnumByName_byName(u.List_yRY, r.$index(0, n)) : null;
|
|
3260
3260
|
return new t.QueryRequestSort(t.EnumByName_byName(u.List_SORT_TYPE_0_SORT_TYPE_1, r.$index(0, "type")), s, l, r.$index(0, "dataFormula"), a, i);
|
|
3261
3261
|
},
|
|
3262
3262
|
QueryRequestComparisonTarget: function() {
|
|
@@ -3786,6 +3786,10 @@ select
|
|
|
3786
3786
|
},
|
|
3787
3787
|
kitchenStationSchema_closure0: function() {
|
|
3788
3788
|
},
|
|
3789
|
+
masterUserSchema_closure: function() {
|
|
3790
|
+
},
|
|
3791
|
+
masterUserSchema_closure0: function() {
|
|
3792
|
+
},
|
|
3789
3793
|
memberSchema_closure: function() {
|
|
3790
3794
|
},
|
|
3791
3795
|
memberSchema_closure0: function() {
|
|
@@ -4028,7 +4032,7 @@ select
|
|
|
4028
4032
|
},
|
|
4029
4033
|
_tplOrderSource(r, e, n, a, i, s) {
|
|
4030
4034
|
var l, p = null, _ = "createdAt", M = t._setArrayType([new t.Permission(u.PermissionType_0, "restaurantId")], d.JSArray_Permission);
|
|
4031
|
-
return a ? (l = d.JSArray_String, l = t._setArrayType([new t.Index(t._setArrayType(["id"], l), p, p, p), new t.Index(t._setArrayType(["doc_id"], l), p, p, p), new t.Index(t._setArrayType(["restaurant_id", "created_at"], l), "idx_tpl_orders_select_index", p, p), new t.Index(t._setArrayType(["type", "link_id"], l), p, p, p), new t.Index(t._setArrayType(["published_at"], l), p, p, p)], d.JSArray_Index)) : l = p, t.Schema_Schema$build(!1, p, u.
|
|
4035
|
+
return a ? (l = d.JSArray_String, l = t._setArrayType([new t.Index(t._setArrayType(["id"], l), p, p, p), new t.Index(t._setArrayType(["doc_id"], l), p, p, p), new t.Index(t._setArrayType(["restaurant_id", "created_at"], l), "idx_tpl_orders_select_index", p, p), new t.Index(t._setArrayType(["type", "link_id"], l), p, p, p), new t.Index(t._setArrayType(["published_at"], l), p, p, p)], d.JSArray_Index)) : l = p, t.Schema_Schema$build(!1, p, u.List_empty, 3, p, t._setArrayType(["restaurantId"], d.JSArray_String), e, t.tpl_order___tplOrderFields$closure(), u.List_empty0, p, l, p, !1, !0, !1, !1, !1, !0, new t._tplOrderSource_closure(), "TPL Order", "tpl_orders", "tpl_order", u.MERGE_FILTER_TYPE_0, n, _, p, i, s, p, !0, new t.Source(u.SOURCE_TYPE_0, r, p, p, p, p, p), u.List_empty1, p, new t.TopLevelFilters(_, M));
|
|
4032
4036
|
},
|
|
4033
4037
|
_tplOrderSource_closure: function() {
|
|
4034
4038
|
},
|
|
@@ -4042,7 +4046,7 @@ select
|
|
|
4042
4046
|
},
|
|
4043
4047
|
_tplSettingSource(r, e, n, a, i, s) {
|
|
4044
4048
|
var l, p = null, _ = t._setArrayType([new t.Permission(u.PermissionType_0, "id")], d.JSArray_Permission);
|
|
4045
|
-
return a ? (l = d.JSArray_String, l = t._setArrayType([new t.Index(t._setArrayType(["id"], l), p, p, p), new t.Index(t._setArrayType(["doc_id"], l), p, p, p), new t.Index(t._setArrayType(["type", "link_id"], l), p, p, p)], d.JSArray_Index)) : l = p, t.Schema_Schema$build(!1, p, u.
|
|
4049
|
+
return a ? (l = d.JSArray_String, l = t._setArrayType([new t.Index(t._setArrayType(["id"], l), p, p, p), new t.Index(t._setArrayType(["doc_id"], l), p, p, p), new t.Index(t._setArrayType(["type", "link_id"], l), p, p, p)], d.JSArray_Index)) : l = p, t.Schema_Schema$build(!1, p, u.List_empty, 3, p, t._setArrayType(["id"], d.JSArray_String), e, t.tpl_setting___tplSettingFields$closure(), u.List_empty0, p, l, p, !1, !0, !1, !1, !1, !0, new t._tplSettingSource_closure(), "TPL Setting", "tpl_settings", "tpl_setting", u.MERGE_FILTER_TYPE_0, n, p, p, i, s, p, !1, new t.Source(u.SOURCE_TYPE_0, r, p, p, p, p, p), u.List_empty1, p, new t.TopLevelFilters(p, _));
|
|
4046
4050
|
},
|
|
4047
4051
|
_tplSettingSource_closure: function() {
|
|
4048
4052
|
},
|
|
@@ -7659,7 +7663,7 @@ Arguments: [` + _ + "]";
|
|
|
7659
7663
|
}, t.BufferModule.prototype = {}, t.BufferConstants.prototype = {}, t.Buffer.prototype = {}, t.ConsoleModule.prototype = {}, t.Console.prototype = {}, t.EventEmitter.prototype = {}, t.Promise.prototype = {}, t.Date.prototype = {}, t.JsError.prototype = {}, t.Atomics.prototype = {}, t.Modules.prototype = {}, t.Module.prototype = {}, t.Net.prototype = {}, t.Socket.prototype = {}, t.NetAddress.prototype = {}, t.NetServer.prototype = {}, t.NodeJsError.prototype = {}, t.JsAssertionError.prototype = {}, t.JsRangeError.prototype = {}, t.JsReferenceError.prototype = {}, t.JsSyntaxError.prototype = {}, t.JsTypeError.prototype = {}, t.JsSystemError.prototype = {}, t.Process.prototype = {}, t.CPUUsage.prototype = {}, t.Release.prototype = {}, t.StreamModule.prototype = {}, t.Readable.prototype = {}, t.Writable.prototype = {}, t.Duplex.prototype = {}, t.Transform.prototype = {}, t.WritableOptions.prototype = {}, t.ReadableOptions.prototype = {}, t.Immediate.prototype = {}, t.Timeout.prototype = {}, t.TTY.prototype = {}, t.TTYReadStream.prototype = {}, t.TTYWriteStream.prototype = {}, t.Util.prototype = {}, t.Connection.prototype = {}, t.SchemaLibrary.prototype = {
|
|
7660
7664
|
SchemaLibrary$2$connection$schemas(r, e) {
|
|
7661
7665
|
var n, a, i, s, l;
|
|
7662
|
-
for (n = this._schemas, a = r.sourceDatasetId, i = r.targetDatasetId, s = 0; s <
|
|
7666
|
+
for (n = this._schemas, a = r.sourceDatasetId, i = r.targetDatasetId, s = 0; s < 116; ++s)
|
|
7663
7667
|
l = n[s], l._rawTablePrefix = a, l._materializeTablePrefix = i;
|
|
7664
7668
|
},
|
|
7665
7669
|
getSchema$1(r) {
|
|
@@ -8487,7 +8491,7 @@ Arguments: [` + _ + "]";
|
|
|
8487
8491
|
$signature: 28
|
|
8488
8492
|
}, t.QueryRequest_fromJson_closure1.prototype = {
|
|
8489
8493
|
call$1(r) {
|
|
8490
|
-
return t.EnumByName_byName(u.
|
|
8494
|
+
return t.EnumByName_byName(u.List_8aB, r);
|
|
8491
8495
|
},
|
|
8492
8496
|
$signature: 29
|
|
8493
8497
|
}, t.QueryRequest_fromJson_closure2.prototype = {
|
|
@@ -9073,7 +9077,7 @@ Arguments: [` + _ + "]";
|
|
|
9073
9077
|
}, t.billSchema_closure.prototype = {
|
|
9074
9078
|
call$1(r) {
|
|
9075
9079
|
var e = null, n = "seqNumber", a = "deliveryName", i = "isRefund", s = "isPickup", l = "isInHouseDelivery", p = "isDelivery", _ = "completedAt", M = "integratedOrderId", b = "itemCount", O = "taxTotal", D = "discountTotal", $ = "grossTotal", E = "rounding", g = "takeawayPrice", h = "thirdPartyExtraCharge", R = "deliveryFee", C = "nettTotal", W = "deliveryFeeWithTax", B = "deliveryFeeWithoutTax", I = "otherChargeWithTax", x = "otherChargeWithoutTax", w = "discountInclusiveTaxTotal", v = "customerName", X = "customerPhone", j = "customerAddress", s0 = "customerRemark", u0 = "fulfillmentAt", z0 = "(CASE WHEN @refund_from IS NULL THEN NULL ELSE (SELECT ", y0 = " FROM bills ob WHERE ob.id=@refund_from AND ob.restaurant_id=@restaurant_id)-COALESCE((SELECT SUM(", g0 = "statutoryChargeTotal";
|
|
9076
|
-
return t._setArrayType([t.Field_Field$string(e, e, !1, e, !1, !1, "ID", "id", "_id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "docId", "_docId", e, e, r), t.Field_Field$timestamp(e, e, !0, e, !1, e, "publishedAt", "_publishedAt", e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Time", "createdAt", "_createdAt", e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, u.FIELD_ROLE_5, r), t.Field_Field$string("Values: COMPLETED (a sale, or a refund bill: see is_refund), REFUNDED (a sale later refunded in full; the refund is a separate COMPLETED bill), VOIDED (cancelled: not a sale, its figures 0), DRAFT (still open: not a sale).", e, !1, e, !1, !1, "Status", "status", "status", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "No.", n, n, e, e, r), t.Field_Field$string("Dine-in table name/identifier", e, !1, e, !1, !1, "Table", "slot", "slot", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Delivery", a, a, e, e, r), t.Field_Field$string("On a refund bill, the id of the bill it refunds.", e, !1, e, !1, !1, "Refund ID", "refundFrom", "refundedFrom", e, e, r), t.Field_Field$bool("A refund bill: a row of its own with status COMPLETED, its figures negated, refund_from naming the bill it refunds. A full refund also turns that bill REFUNDED; a partial one leaves it COMPLETED.", e, !1, e, !1, "Refund", i, i, e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "refundApprovedById", "refund.approvedBy.id", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Refund approver", "refundApprovedByName", "refund.approvedBy.name", e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "refundedById", "refund.by.id", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Refund user", "refundedByName", "refund.by.name", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Refund reason", "refundReason", "refund.reason", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Member ID", "memberId", "membership.id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Member user ID", "memberUserId", "membership.userId", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Member name", "memberUserName", "membership.name", e, u.FIELD_ROLE_4, r), t.Field_Field$string(e, e, !0, e, !1, !1, "Member phone", "memberPhoneNumber", "membership.phoneNumber", e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Member birthday", "memberBirthday", "membership.birthday", e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Remark", "remark", "remark", e, e, r), t.Field_Field$string("Sales channel. FEEDME is FeedMe's own POS and online ordering (raw ''/POS normalize to it) and is never a delivery platform; a third-party delivery platform passes through under its own name and shows in the sampled values only when the business uses one — no such value sampled means no delivery-platform rows.", e, !1, e, !1, !1, "Source", "source", "source", T.x28case_x28, e, r), t.Field_Field$string("Order type. PICKUP/DELIVERY/DRIVE THRU/KIOSK/TAKEAWAY are normalized; any other POS-configured value passes through raw — filter with the sampled values, never a guessed label. COUNTER is a dine-in order taken at the counter: a 'Dine-in' choice maps to it.", e, !1, e, !1, !1, "Type", "type", "type", "(case when upper(@type) in ('PICKUP','DELIVERY','DRIVE THRU','KIOSK') then upper(@type) when @is_takeaway is true then 'TAKEAWAY' else upper(@type) end)", e, r), t.Field_Field$bool(e, e, !0, e, !1, "Pickup", s, s, e, e, r), t.Field_Field$bool(e, e, !0, e, !1, "Is in house delivery", l, l, e, e, r), t.Field_Field$bool(e, e, !0, e, !1, "Is other delivery", p, p, e, e, r), t.Field_Field$bool(e, e, !0, e, !1, "Is takeaway", "isTakeaway", "is.takeaway", e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Closed at", _, _, e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !0, e, !1, !1, "Inclusive SST", "sstInclusive", "nettTaxes.SST.inclusive", e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, "SST before discount", "sstBeforeDiscount", "nettTaxes.SST.beforeDiscount", e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, "Inclusive SC", "serviceChargeInclusive", "nettTaxes.SERVICE_CHARGE.inclusive", e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, "SC before discount", "serviceChargeBeforeDiscount", "nettTaxes.SERVICE_CHARGE.beforeDiscount", e, e, r), t.Field_Field$numeric("Number of guests. Negated for refund, 0 for voided", "IF(@status = 'VOIDED', 0, IFNULL(@pax,0)*IF(@isRefund, -1, 1))", !1, e, !1, "Pax", "pax", "person", "(CASE WHEN @status = 'VOIDED' THEN 0 ELSE (COALESCE(@pax,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END) END)", u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Integrated order ID", M, M, e, u.FIELD_ROLE_5, r), t.Field_Field$numeric(e, T.IFNULLi, !0, e, !1, "Item count", b, b, T.COALESi, e, r), t.Field_Field$numeric(e, T.IFNULLtax, !1, e, !1, "Tax", O, O, T.COALEStax_, u.FIELD_ROLE_1, r), t.Field_Field$numeric("Discount given on the bill, refund sign applied — the discount measure. adjustment is a different grain: it holds a row per discount, bill-level (target = 'BILL') and item-level alike, so summing those per bill counts a bill's discount twice.", T.IFNULLdiT, !1, e, !1, "Discount", D, D, T.COALESdit, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.IFNULLg, !1, e, !1, "Item gross", $, $, T.COALESg, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "(IFNULL(@nettTotal,0)-IFNULL(@rounding,0)-IFNULL(@discountTotal,0)-IFNULL(@thirdPartyExtraCharge,0)-IFNULL(@deliveryFee,0)-IFNULL(@taxTotal,IFNULL(@sstTotal, 0))-IFNULL(@serviceChargeTotal,0)-IFNULL(@statutoryChargeTotal,0))*IF(@isRefund, -1, 1)", !1, e, !1, "Bill gross", "billGrossTotal", e, "(COALESCE(@nett_total,0)-COALESCE(@rounding,0)-COALESCE(@discount_total,0)-COALESCE(@third_party_extra_charge,0)-COALESCE(@delivery_fee,0)-COALESCE(@tax_total,@sst_total,0)-COALESCE(@service_charge_total,0)-COALESCE(@statutory_charge_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, e, !1, "Rounding", E, E, T.COALESr, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !0, e, !1, "SST", "sstTotal", "nettTaxes.SST.total", T.COALESss, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, "SST %", "sstPercentage", "nettTaxes.SST.percentage", e, e, r), t.Field_Field$numeric(e, T.IFNULLse, !1, e, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", T.COALESse, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !0, e, !1, !1, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", e, e, r), t.Field_Field$numeric(e, T.x28IFNULo, !1, e, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", T.x28COALEo, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.x28IFNULgx2d, !1, e, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, T.x28COALEgx2d, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.IFNULLtak, !1, e, !1, "Takeaway", g, g, T.COALEStak, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.IFNULLth, !1, e, !1, "Extra charge", h, h, T.COALESth, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.IFNULLde_, !1, e, !1, "Delivery fee", R, R, T.COALESdex2c, u.FIELD_ROLE_1, r), t.Field_Field$numeric("Revenue after discounts and before taxes — the default sales measure.", T.IFNULLn, !1, e, !1, "Nett", C, C, T.COALESn, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "(IFNULL(@grossTotal,0)+(case when @deliveryFeeWithTax>0 then IFNULL(@deliveryFee,0) else 0 end)+IFNULL(case when @otherChargeWithTax>0 then IFNULL(@thirdPartyExtraCharge,0) else 0 end)+IFNULL(@discountTotal,0))*IF(@isRefund, -1, 1)", !1, e, !1, "Item gross before charges", "grossBeforeCharges", e, "(COALESCE(@gross_total,0)+(case when @delivery_fee_with_tax>0 then COALESCE(@delivery_fee,0) else 0 end)+(case when @other_charge_with_tax>0 then COALESCE(@third_party_extra_charge,0) else 0 end)+COALESCE(@discount_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "(IFNULL(@nettTotal,0)-IFNULL(@rounding,0)-(case when @otherChargeWithTax>0 then 0 else IFNULL(@thirdPartyExtraCharge,0) end)-(case when @deliveryFeeWithTax>0 then 0 else IFNULL(@deliveryFee,0) end)-IFNULL(@taxTotal,IFNULL(@sstTotal,0))-IFNULL(@serviceChargeTotal,0)-IFNULL(@statutoryChargeTotal,0))*IF(@isRefund, -1, 1)", !1, e, !1, "Bill gross before charges", "billGrossBeforeCharges", e, "(COALESCE(@nett_total,0)-COALESCE(@rounding,0)-(case when @other_charge_with_tax>0 then 0 else COALESCE(@third_party_extra_charge,0) end)-(case when @delivery_fee_with_tax>0 then 0 else COALESCE(@delivery_fee,0) end)-COALESCE(@tax_total,@sst_total,0)-COALESCE(@service_charge_total,0)-COALESCE(@statutory_charge_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Member Recency", "recency", e, T.MIN_EX, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Member frequency", "frequency", e, T.COUNT_, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Member monetary", "monetary", e, T.SUM__n, e, r), t.Field_Field$numeric(e, T.IFNULLdeWT, !1, e, !1, "Delivery fee with tax", W, W, T.COALESdex5f_, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.IFNULLdeWo, !1, e, !1, "Delivery fee without tax", B, B, T.COALESdex5fo, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.IFNULLoT, !1, e, !1, "Other charge with tax", I, I, T.COALESo_, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.IFNULLoo, !1, e, !1, "Other charge without tax", x, x, T.COALESoo, u.FIELD_ROLE_1, r), t.Field_Field$numeric("Bill duration in seconds from creation to completion", e, !1, e, !1, "Duration", "duration", e, T.EXTRAC, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant", "restaurantName", e, T.x28selecn, u.FIELD_ROLE_4, r), t.Field_Field$numeric(e, e, !1, e, !1, "Labour hour", "labourHour", e, T.x28selecS, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Payments", "payments", e, T.x28selecstn, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Items", "items", e, "(select string_agg(CONCAT(flatten_items.quantity,'x ',ARRAY_TO_STRING(ARRAY[CASE WHEN flatten_items.code='' THEN NULL ELSE flatten_items.code END, flatten_items.name], ' ')), ',') from flatten_items where flatten_items.bill_id=@id and flatten_items.restaurant_id=@restaurant_id and flatten_items.layer=0 and flatten_items.status!='VOIDED')", e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Discount reasons", "discountReasons", e, T.x28selecsta, e, r), t.Field_Field$numeric(e, T.IFNULLdiI, !1, e, !1, "Discount inc tax", w, w, T.COALESdii, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Payment Summaries", "paymentSummaries", e, "(select string_agg(distinct CONCAT(name, CASE WHEN card_type is not null THEN CONCAT(' (',UPPER(card_type), ')') WHEN payment_gateway_issuer is not null THEN CONCAT(' (',payment_gateway_issuer, ')') ELSE '' END), ',') from payments where payments.bill_id=@id and payments.restaurant_id=@restaurant_id)", e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Is new member", "isNewMember", e, "(CASE WHEN EXISTS (SELECT 1 FROM members WHERE members.id=@member_id AND members.created_at::date = @created_at::date) THEN 1 ELSE 0 END)", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Is 30 days recency", "is30DaysRecency", e, "(CASE WHEN EXISTS (SELECT 1 FROM bills WHERE bills.member_id = @member_id AND bills.status != 'VOIDED' AND bills.restaurant_id = @restaurant_id AND bills.created_at >= @created_at - INTERVAL '30 days' AND bills.created_at < @created_at) THEN 1 ELSE 0 END)", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Is 60 days recency", "is60DaysRecency", e, "(CASE WHEN EXISTS (SELECT 1 FROM bills WHERE bills.member_id = @member_id AND bills.status != 'VOIDED' AND bills.restaurant_id = @restaurant_id AND bills.created_at >= @created_at - INTERVAL '60 days' AND bills.created_at < @created_at) THEN 1 ELSE 0 END)", u.FIELD_ROLE_1, r), t.Field_Field$numeric("Bill count flag: 1 normal, -1 refund, 0 voided. Its SUM over the sold bills (COMPLETED and REFUNDED) is the net count, in which a refund cancels its sale. FeedMe's standard reports (Close up, Summary) count rows instead, over every bill that is not DRAFT or VOIDED, so a refunded sale and its refund count as two.", "IF(@status = 'VOIDED', 0, IF(@isRefund, -1, 1))", !1, e, !1, "Table count", "tableCount", e, "(CASE WHEN @status = 'VOIDED' THEN 0 ELSE (CASE WHEN @is_refund THEN -1 ELSE 1 END) END)", u.FIELD_ROLE_1, r), t.Field_Field$numeric("Member count flag: 1 normal, -1 refund, 0 voided. Use SUM to count members", "IF((@status = 'VOIDED' OR @memberId is null), 0, IF(@isRefund, -1, 1))", !1, e, !1, "Member count", "memberCount", e, "(CASE WHEN (@status = 'VOIDED' OR @member_id is null) THEN 0 ELSE (CASE WHEN @is_refund THEN -1 ELSE 1 END) END)", u.FIELD_ROLE_1, r), t.Field_Field$string("Customer name from pickup / in-house delivery / delivery channel", e, !1, e, !1, !1, "Customer", v, v, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Customer phone", X, X, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Customer address", j, j, e, e, r), t.Field_Field$string("Remark on the pickup / delivery order", e, !1, e, !1, !1, "Customer remark", s0, s0, e, e, r), t.Field_Field$timestamp("Scheduled pickup / delivery time", e, !1, e, !1, "Fulfillment time", u0, u0, e, u.FIELD_ROLE_0, r), t.Field_Field$string("Pax count by type (e.g. ADULTS, CHILDREN)", e, !1, e, !1, !1, "Pax breakdown", "paxBreakdown", "personMetaBreakdown", e, e, r), t.Field_Field$numeric("Refund rows only: original bill nett less every earlier refund of it. NULL elsewhere; per-row, do not sum", e, !1, e, !0, "Nett balance before refund", "refundNettBalanceBefore", e, "(CASE WHEN @refund_from IS NULL THEN NULL ELSE (SELECT COALESCE(ob.nett_total,0) FROM bills ob WHERE ob.id=@refund_from AND ob.restaurant_id=@restaurant_id)-COALESCE((SELECT SUM(COALESCE(pr.nett_total,0)) FROM bills pr WHERE pr.refund_from=@refund_from AND pr.restaurant_id=@restaurant_id AND pr.status<>'VOIDED' AND (pr.created_at<@created_at OR (pr.created_at=@created_at AND pr.id<@id))),0) END)", u.FIELD_ROLE_1, r), t.Field_Field$numeric("Refund rows only: nett balance before refund less this refund nett. NULL elsewhere; per-row, do not sum", e, !1, e, !0, "Nett balance after refund", "refundNettBalanceAfter", e, "(CASE WHEN @refund_from IS NULL THEN NULL ELSE (SELECT COALESCE(ob.nett_total,0) FROM bills ob WHERE ob.id=@refund_from AND ob.restaurant_id=@restaurant_id)-COALESCE((SELECT SUM(COALESCE(pr.nett_total,0)) FROM bills pr WHERE pr.refund_from=@refund_from AND pr.restaurant_id=@restaurant_id AND pr.status<>'VOIDED' AND (pr.created_at<@created_at OR (pr.created_at=@created_at AND pr.id<@id))),0)-CASE WHEN @status='VOIDED' THEN 0 ELSE COALESCE(@nett_total,0) END END)", u.FIELD_ROLE_1, r), t.Field_Field$numeric("Refund rows only: original bill gross less every earlier refund of it. NULL elsewhere; per-row, do not sum", e, !1, e, !0, "Gross balance before refund", "refundGrossBalanceBefore", e, z0 + t._billGross("ob.") + y0 + t._billGross("pr.") + ") FROM bills pr WHERE pr.refund_from=@refund_from AND pr.restaurant_id=@restaurant_id AND pr.status<>'VOIDED' AND (pr.created_at<@created_at OR (pr.created_at=@created_at AND pr.id<@id))),0) END)", u.FIELD_ROLE_1, r), t.Field_Field$numeric("Refund rows only: gross balance before refund less this refund gross. NULL elsewhere; per-row, do not sum", e, !1, e, !0, "Gross balance after refund", "refundGrossBalanceAfter", e, z0 + t._billGross("ob.") + y0 + t._billGross("pr.") + ") FROM bills pr WHERE pr.refund_from=@refund_from AND pr.restaurant_id=@restaurant_id AND pr.status<>'VOIDED' AND (pr.created_at<@created_at OR (pr.created_at=@created_at AND pr.id<@id))),0)-CASE WHEN @status='VOIDED' THEN 0 ELSE " + t._billGross("@") + " END END)", u.FIELD_ROLE_1, r), t.Field_Field$numeric(T.BCRS_c, T.IFNULLst, !1, e, !1, "Statutory charges", g0, g0, T.COALESst, u.FIELD_ROLE_1, r)], d.JSArray_Field);
|
|
9080
|
+
return t._setArrayType([t.Field_Field$string(e, e, !1, e, !1, !1, "ID", "id", "_id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "docId", "_docId", e, e, r), t.Field_Field$timestamp(e, e, !0, e, !1, e, "publishedAt", "_publishedAt", e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Time", "createdAt", "_createdAt", e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, u.FIELD_ROLE_5, r), t.Field_Field$string("Values: COMPLETED (a sale, or a refund bill: see is_refund), REFUNDED (a sale later refunded in full; the refund is a separate COMPLETED bill), VOIDED (cancelled: not a sale, its figures 0), DRAFT (still open: not a sale).", e, !1, e, !1, !1, "Status", "status", "status", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "No.", n, n, e, e, r), t.Field_Field$string("Dine-in table name/identifier", e, !1, e, !1, !1, "Table", "slot", "slot", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Delivery", a, a, e, e, r), t.Field_Field$string("On a refund bill, the id of the bill it refunds.", e, !1, e, !1, !1, "Refund ID", "refundFrom", "refundedFrom", e, e, r), t.Field_Field$bool("A refund bill: a row of its own with status COMPLETED, its figures negated, refund_from naming the bill it refunds. A full refund also turns that bill REFUNDED; a partial one leaves it COMPLETED.", e, !1, e, !1, "Refund", i, i, e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "refundApprovedById", "refund.approvedBy.id", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Refund approver", "refundApprovedByName", "refund.approvedBy.name", e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "refundedById", "refund.by.id", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Refund user", "refundedByName", "refund.by.name", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Refund reason", "refundReason", "refund.reason", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Member ID", "memberId", "membership.id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Member user ID", "memberUserId", "membership.userId", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Member name", "memberUserName", "membership.name", e, u.FIELD_ROLE_4, r), t.Field_Field$string(e, e, !0, e, !1, !1, "Member phone", "memberPhoneNumber", "membership.phoneNumber", e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Member birthday", "memberBirthday", "membership.birthday", e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Remark", "remark", "remark", e, e, r), t.Field_Field$string("Sales channel. FEEDME is FeedMe's own POS and online ordering (raw ''/POS normalize to it) and is never a delivery platform; a third-party delivery platform passes through under its own name and shows in the sampled values only when the business uses one — no such value sampled means no delivery-platform rows.", e, !1, e, !1, !1, "Source", "source", "source", T.x28case_x28, e, r), t.Field_Field$string("Order type. PICKUP/DELIVERY/DRIVE THRU/KIOSK/TAKEAWAY are normalized; any other POS-configured value passes through raw — filter with the sampled values, never a guessed label. COUNTER is a dine-in order taken at the counter: a 'Dine-in' choice maps to it.", e, !1, e, !1, !1, "Type", "type", "type", "(case when upper(@type) in ('PICKUP','DELIVERY','DRIVE THRU','KIOSK') then upper(@type) when @is_takeaway is true then 'TAKEAWAY' else upper(@type) end)", e, r), t.Field_Field$bool(e, e, !0, e, !1, "Pickup", s, s, e, e, r), t.Field_Field$bool(e, e, !0, e, !1, "Is in house delivery", l, l, e, e, r), t.Field_Field$bool(e, e, !0, e, !1, "Is other delivery", p, p, e, e, r), t.Field_Field$bool(e, e, !0, e, !1, "Is takeaway", "isTakeaway", "is.takeaway", e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Closed at", _, _, e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !0, e, !1, !1, "Inclusive SST", "sstInclusive", "nettTaxes.SST.inclusive", e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, "SST before discount", "sstBeforeDiscount", "nettTaxes.SST.beforeDiscount", e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, "Inclusive SC", "serviceChargeInclusive", "nettTaxes.SERVICE_CHARGE.inclusive", e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, "SC before discount", "serviceChargeBeforeDiscount", "nettTaxes.SERVICE_CHARGE.beforeDiscount", e, e, r), t.Field_Field$numeric("Number of guests. Negated for refund, 0 for voided", "IF(@status = 'VOIDED', 0, IFNULL(@pax,0)*IF(@isRefund, -1, 1))", !1, e, !1, "Pax", "pax", "person", "(CASE WHEN @status = 'VOIDED' THEN 0 ELSE (COALESCE(@pax,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END) END)", u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Integrated order ID", M, M, e, u.FIELD_ROLE_5, r), t.Field_Field$numeric(e, T.IFNULLi, !0, e, !1, "Item count", b, b, T.COALESi, e, r), t.Field_Field$numeric(e, T.IFNULLtax, !1, e, !1, "Tax", O, O, T.COALEStax_, u.FIELD_ROLE_1, r), t.Field_Field$numeric("Discount given on the bill, refund sign applied — the discount measure. adjustment is a different grain: it holds a row per discount, bill-level (target = 'BILL') and item-level alike, so summing those per bill counts a bill's discount twice.", T.IFNULLdiT, !1, e, !1, "Discount", D, D, T.COALESdit, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.IFNULLg, !1, e, !1, "Item gross", $, $, T.COALESg, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "(IFNULL(@nettTotal,0)-IFNULL(@rounding,0)-IFNULL(@discountTotal,0)-IFNULL(@thirdPartyExtraCharge,0)-IFNULL(@deliveryFee,0)-IFNULL(@taxTotal,IFNULL(@sstTotal, 0))-IFNULL(@serviceChargeTotal,0)-IFNULL(@statutoryChargeTotal,0))*IF(@isRefund, -1, 1)", !1, e, !1, "Bill gross", "billGrossTotal", e, "(COALESCE(@nett_total,0)-COALESCE(@rounding,0)-COALESCE(@discount_total,0)-COALESCE(@third_party_extra_charge,0)-COALESCE(@delivery_fee,0)-COALESCE(@tax_total,@sst_total,0)-COALESCE(@service_charge_total,0)-COALESCE(@statutory_charge_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, e, !1, "Rounding", E, E, T.COALESr, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !0, e, !1, "SST", "sstTotal", "nettTaxes.SST.total", T.COALESss, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, "SST %", "sstPercentage", "nettTaxes.SST.percentage", e, e, r), t.Field_Field$numeric(e, T.IFNULLse, !1, e, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", T.COALESse, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !0, e, !1, !1, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", e, e, r), t.Field_Field$numeric(e, T.x28IFNULo, !1, e, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", T.x28COALEo, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.x28IFNULgx2d, !1, e, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, T.x28COALEgx2d, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.IFNULLtak, !1, e, !1, "Takeaway", g, g, T.COALEStak, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.IFNULLth, !1, e, !1, "Extra charge", h, h, T.COALESth, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.IFNULLde_, !1, e, !1, "Delivery fee", R, R, T.COALESdex2c, u.FIELD_ROLE_1, r), t.Field_Field$numeric("Revenue after discounts and before taxes — the default sales measure.", T.IFNULLn, !1, e, !1, "Nett", C, C, T.COALESn, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "(IFNULL(@grossTotal,0)+(case when @deliveryFeeWithTax>0 then IFNULL(@deliveryFee,0) else 0 end)+IFNULL(case when @otherChargeWithTax>0 then IFNULL(@thirdPartyExtraCharge,0) else 0 end)+IFNULL(@discountTotal,0))*IF(@isRefund, -1, 1)", !1, e, !1, "Item gross before charges", "grossBeforeCharges", e, "(COALESCE(@gross_total,0)+(case when @delivery_fee_with_tax>0 then COALESCE(@delivery_fee,0) else 0 end)+(case when @other_charge_with_tax>0 then COALESCE(@third_party_extra_charge,0) else 0 end)+COALESCE(@discount_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "(IFNULL(@nettTotal,0)-IFNULL(@rounding,0)-(case when @otherChargeWithTax>0 then 0 else IFNULL(@thirdPartyExtraCharge,0) end)-(case when @deliveryFeeWithTax>0 then 0 else IFNULL(@deliveryFee,0) end)-IFNULL(@taxTotal,IFNULL(@sstTotal,0))-IFNULL(@serviceChargeTotal,0)-IFNULL(@statutoryChargeTotal,0))*IF(@isRefund, -1, 1)", !1, e, !1, "Bill gross before charges", "billGrossBeforeCharges", e, "(COALESCE(@nett_total,0)-COALESCE(@rounding,0)-(case when @other_charge_with_tax>0 then 0 else COALESCE(@third_party_extra_charge,0) end)-(case when @delivery_fee_with_tax>0 then 0 else COALESCE(@delivery_fee,0) end)-COALESCE(@tax_total,@sst_total,0)-COALESCE(@service_charge_total,0)-COALESCE(@statutory_charge_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Member Recency", "recency", e, T.MIN_EX, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Member frequency", "frequency", e, T.COUNT_, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Member monetary", "monetary", e, T.SUM__n, e, r), t.Field_Field$numeric(e, T.IFNULLdeWT, !1, e, !1, "Delivery fee with tax", W, W, T.COALESdex5f_, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.IFNULLdeWo, !1, e, !1, "Delivery fee without tax", B, B, T.COALESdex5fo, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.IFNULLoT, !1, e, !1, "Other charge with tax", I, I, T.COALESo_, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.IFNULLoo, !1, e, !1, "Other charge without tax", x, x, T.COALESoo, u.FIELD_ROLE_1, r), t.Field_Field$numeric("Bill duration in seconds from creation to completion", e, !1, e, !1, "Duration", "duration", e, T.EXTRAC, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant", "restaurantName", e, T.x28selecn, u.FIELD_ROLE_4, r), t.Field_Field$numeric(e, e, !1, e, !1, "Labour hour", "labourHour", e, T.x28selecS, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Payments", "payments", e, T.x28selecstn, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Items", "items", e, "(select string_agg(CONCAT(flatten_items.quantity,'x ',ARRAY_TO_STRING(ARRAY[CASE WHEN flatten_items.code='' THEN NULL ELSE flatten_items.code END, flatten_items.name], ' ')), ',') from flatten_items where flatten_items.bill_id=@id and flatten_items.restaurant_id=@restaurant_id and flatten_items.layer=0 and flatten_items.status!='VOIDED')", e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Discount reasons", "discountReasons", e, T.x28selecsta, e, r), t.Field_Field$numeric(e, T.IFNULLdiI, !1, e, !1, "Discount inc tax", w, w, T.COALESdii, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Payment Summaries", "paymentSummaries", e, "(select string_agg(distinct CONCAT(name, CASE WHEN card_type is not null THEN CONCAT(' (',UPPER(card_type), ')') WHEN payment_gateway_issuer is not null THEN CONCAT(' (',payment_gateway_issuer, ')') ELSE '' END), ',') from payments where payments.bill_id=@id and payments.restaurant_id=@restaurant_id)", e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Is new member", "isNewMember", e, "(CASE WHEN EXISTS (SELECT 1 FROM members WHERE members.id=@member_id AND members.created_at::date = @created_at::date) THEN 1 ELSE 0 END)", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Is 30 days recency", "is30DaysRecency", e, "(CASE WHEN EXISTS (SELECT 1 FROM bills WHERE bills.member_id = @member_id AND bills.status != 'VOIDED' AND bills.restaurant_id = @restaurant_id AND bills.created_at >= @created_at - INTERVAL '30 days' AND bills.created_at < @created_at) THEN 1 ELSE 0 END)", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Is 60 days recency", "is60DaysRecency", e, "(CASE WHEN EXISTS (SELECT 1 FROM bills WHERE bills.member_id = @member_id AND bills.status != 'VOIDED' AND bills.restaurant_id = @restaurant_id AND bills.created_at >= @created_at - INTERVAL '60 days' AND bills.created_at < @created_at) THEN 1 ELSE 0 END)", u.FIELD_ROLE_1, r), t.Field_Field$numeric("Bill count flag: 1 normal, -1 refund, 0 voided. Its SUM over the sold bills (COMPLETED and REFUNDED) is the net count, in which a refund cancels its sale. FeedMe's standard reports (Close up, Summary) count rows instead, over every bill that is not DRAFT or VOIDED, so a refunded sale and its refund count as two.", "IF(@status = 'VOIDED', 0, IF(@isRefund, -1, 1))", !1, e, !1, "Table count", "tableCount", e, "(CASE WHEN @status = 'VOIDED' THEN 0 ELSE (CASE WHEN @is_refund THEN -1 ELSE 1 END) END)", u.FIELD_ROLE_1, r), t.Field_Field$numeric("Member count flag: 1 normal, -1 refund, 0 voided. Use SUM to count members", "IF((@status = 'VOIDED' OR @memberId is null), 0, IF(@isRefund, -1, 1))", !1, e, !1, "Member count", "memberCount", e, "(CASE WHEN (@status = 'VOIDED' OR @member_id is null) THEN 0 ELSE (CASE WHEN @is_refund THEN -1 ELSE 1 END) END)", u.FIELD_ROLE_1, r), t.Field_Field$string("Customer name from pickup / in-house delivery / delivery channel", e, !1, e, !1, !1, "Customer", v, v, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Customer phone", X, X, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Customer address", j, j, e, e, r), t.Field_Field$string("Remark on the pickup / delivery order", e, !1, e, !1, !1, "Customer remark", s0, s0, e, e, r), t.Field_Field$timestamp("Scheduled pickup / delivery time", e, !1, e, !1, "Fulfillment time", u0, u0, e, u.FIELD_ROLE_0, r), t.Field_Field$string("Pax count by type (e.g. ADULTS, CHILDREN)", e, !1, e, !1, !1, "Pax breakdown", "paxBreakdown", "personMetaBreakdown", e, e, r), t.Field_Field$numeric("Refund rows only: original bill nett less every earlier refund of it. NULL elsewhere; per-row, do not sum", e, !1, e, !0, "Nett balance before refund", "refundNettBalanceBefore", e, "(CASE WHEN @refund_from IS NULL THEN NULL ELSE (SELECT COALESCE(ob.nett_total,0) FROM bills ob WHERE ob.id=@refund_from AND ob.restaurant_id=@restaurant_id)-COALESCE((SELECT SUM(COALESCE(pr.nett_total,0)) FROM bills pr WHERE pr.refund_from=@refund_from AND pr.restaurant_id=@restaurant_id AND pr.status<>'VOIDED' AND (pr.created_at<@created_at OR (pr.created_at=@created_at AND pr.id<@id))),0) END)", u.FIELD_ROLE_1, r), t.Field_Field$numeric("Refund rows only: nett balance before refund less this refund nett. NULL elsewhere; per-row, do not sum", e, !1, e, !0, "Nett balance after refund", "refundNettBalanceAfter", e, "(CASE WHEN @refund_from IS NULL THEN NULL ELSE (SELECT COALESCE(ob.nett_total,0) FROM bills ob WHERE ob.id=@refund_from AND ob.restaurant_id=@restaurant_id)-COALESCE((SELECT SUM(COALESCE(pr.nett_total,0)) FROM bills pr WHERE pr.refund_from=@refund_from AND pr.restaurant_id=@restaurant_id AND pr.status<>'VOIDED' AND (pr.created_at<@created_at OR (pr.created_at=@created_at AND pr.id<@id))),0)-CASE WHEN @status='VOIDED' THEN 0 ELSE COALESCE(@nett_total,0) END END)", u.FIELD_ROLE_1, r), t.Field_Field$numeric("Refund rows only: original bill gross less every earlier refund of it. NULL elsewhere; per-row, do not sum", e, !1, e, !0, "Gross balance before refund", "refundGrossBalanceBefore", e, z0 + t._billGross("ob.") + y0 + t._billGross("pr.") + ") FROM bills pr WHERE pr.refund_from=@refund_from AND pr.restaurant_id=@restaurant_id AND pr.status<>'VOIDED' AND (pr.created_at<@created_at OR (pr.created_at=@created_at AND pr.id<@id))),0) END)", u.FIELD_ROLE_1, r), t.Field_Field$numeric("Refund rows only: gross balance before refund less this refund gross. NULL elsewhere; per-row, do not sum", e, !1, e, !0, "Gross balance after refund", "refundGrossBalanceAfter", e, z0 + t._billGross("ob.") + y0 + t._billGross("pr.") + ") FROM bills pr WHERE pr.refund_from=@refund_from AND pr.restaurant_id=@restaurant_id AND pr.status<>'VOIDED' AND (pr.created_at<@created_at OR (pr.created_at=@created_at AND pr.id<@id))),0)-CASE WHEN @status='VOIDED' THEN 0 ELSE " + t._billGross("@") + " END END)", u.FIELD_ROLE_1, r), t.Field_Field$numeric(T.BCRS_c, T.IFNULLst, !1, e, !1, "Statutory charges", g0, g0, T.COALESst, u.FIELD_ROLE_1, r), t.Field_Field$string("Comma-joined distinct categories of the bill top-level, non-voided item lines (add-ons excluded), named as item Category is (Other for open items). A text list: filter with LIKE / NOT LIKE, not equality", e, !1, e, !1, !1, "Categories", "categories", e, "(select string_agg(distinct CASE WHEN flatten_items.category_name IS NULL OR flatten_items.product_id IS NULL OR flatten_items.product_id ~ '^\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d+([+-][0-2]\\d:[0-5]\\d|Z)$' THEN 'Other' ELSE flatten_items.category_name END, ',') from flatten_items where flatten_items.bill_id=@id and flatten_items.restaurant_id=@restaurant_id and flatten_items.layer=0 and flatten_items.status!='VOIDED')", e, r)], d.JSArray_Field);
|
|
9077
9081
|
},
|
|
9078
9082
|
$signature: 0
|
|
9079
9083
|
}, t.billSchema_closure0.prototype = {
|
|
@@ -9327,7 +9331,7 @@ Arguments: [` + _ + "]";
|
|
|
9327
9331
|
}, t.flattenItemSchema_closure0.prototype = {
|
|
9328
9332
|
call$1(r) {
|
|
9329
9333
|
var e = "id", n = null, a = "restaurantId", i = "parentId", s = "locationId", l = d.JSArray_String, p = d.JSArray_JoinCondition;
|
|
9330
|
-
return t._setArrayType([new t.Join(u.SCHEMA_NAME_0, t._setArrayType([new t.JoinCondition(e, t._setArrayType(["billId"], l), u.COMPARISON_OPERATOR_0, n), new t.JoinCondition(a, t._setArrayType(["restaurantId"], l), u.COMPARISON_OPERATOR_0, n)], p), !1, r, n), new t.Join(u.SCHEMA_NAME_21, t._setArrayType([new t.JoinCondition("itemId", t._setArrayType(["id"], l), u.COMPARISON_OPERATOR_0, n), new t.JoinCondition(a, t._setArrayType(["restaurantId"], l), u.COMPARISON_OPERATOR_0, n)], p), !1, r, n), new t.Join(u.SCHEMA_NAME_12, t._setArrayType([new t.JoinCondition(a, t._setArrayType(["restaurantId"], l), u.COMPARISON_OPERATOR_0, n), new t.JoinCondition("billId", t._setArrayType(["billId"], l), u.COMPARISON_OPERATOR_0, n), new t.JoinCondition(i, t._setArrayType(["id"], l), u.COMPARISON_OPERATOR_0, n)], p), !1, r, n), new t.Join(u.SCHEMA_NAME_7, t._setArrayType([new t.JoinCondition(i, t._setArrayType(["id"], l), u.COMPARISON_OPERATOR_0, n), new t.JoinCondition(a, t._setArrayType(["restaurantId"], l), u.COMPARISON_OPERATOR_0, n)], p), !1, r, n), new t.Join(u.SCHEMA_NAME_6, t._setArrayType([new t.JoinCondition(e, t._setArrayType(["parentId"], l), u.COMPARISON_OPERATOR_0, n), new t.JoinCondition(a, t._setArrayType(["restaurantId"], l), u.COMPARISON_OPERATOR_0, n)], p), !0, r, n), new t.Join(u.SCHEMA_NAME_55, t._setArrayType([new t.JoinCondition(e, t._setArrayType(["groupId"], l), u.COMPARISON_OPERATOR_0, n), new t.JoinCondition(a, t._setArrayType(["restaurantId"], l), u.COMPARISON_OPERATOR_0, n)], p), !1, r, n), new t.Join(u.SCHEMA_NAME_14, t._setArrayType([new t.JoinCondition(e, t._setArrayType(["restaurantId"], l), u.COMPARISON_OPERATOR_0, n)], p), !1, r, n), new t.Join(u.SCHEMA_NAME_10, t._setArrayType([new t.JoinCondition("billId", t._setArrayType(["billId"], l), u.COMPARISON_OPERATOR_0, n), new t.JoinCondition(a, t._setArrayType(["restaurantId"], l), u.COMPARISON_OPERATOR_0, n)], p), !1, r, n), new t.Join(u.SCHEMA_NAME_23, t._setArrayType([new t.JoinCondition("ref", t._setArrayType(["id"], l), u.COMPARISON_OPERATOR_0, n), new t.JoinCondition(s, t._setArrayType(["restaurantId"], l), u.COMPARISON_OPERATOR_0, n)], p), !1, r, n), new t.Join(u.SCHEMA_NAME_59, t._setArrayType([new t.JoinCondition(e, t._setArrayType(["menuItemId"], l), u.COMPARISON_OPERATOR_0, n), new t.JoinCondition(s, t._setArrayType(["restaurantId"], l), u.COMPARISON_OPERATOR_0, n)], p), !1, r, n)], d.JSArray_Join);
|
|
9334
|
+
return t._setArrayType([new t.Join(u.SCHEMA_NAME_0, t._setArrayType([new t.JoinCondition(e, t._setArrayType(["billId"], l), u.COMPARISON_OPERATOR_0, n), new t.JoinCondition(a, t._setArrayType(["restaurantId"], l), u.COMPARISON_OPERATOR_0, n)], p), !1, r, n), new t.Join(u.SCHEMA_NAME_21, t._setArrayType([new t.JoinCondition("itemId", t._setArrayType(["id"], l), u.COMPARISON_OPERATOR_0, n), new t.JoinCondition(a, t._setArrayType(["restaurantId"], l), u.COMPARISON_OPERATOR_0, n)], p), !1, r, n), new t.Join(u.SCHEMA_NAME_12, t._setArrayType([new t.JoinCondition(a, t._setArrayType(["restaurantId"], l), u.COMPARISON_OPERATOR_0, n), new t.JoinCondition("billId", t._setArrayType(["billId"], l), u.COMPARISON_OPERATOR_0, n), new t.JoinCondition(i, t._setArrayType(["id"], l), u.COMPARISON_OPERATOR_0, n)], p), !1, r, n), new t.Join(u.SCHEMA_NAME_7, t._setArrayType([new t.JoinCondition(i, t._setArrayType(["id"], l), u.COMPARISON_OPERATOR_0, n), new t.JoinCondition(a, t._setArrayType(["restaurantId"], l), u.COMPARISON_OPERATOR_0, n)], p), !1, r, n), new t.Join(u.SCHEMA_NAME_6, t._setArrayType([new t.JoinCondition(e, t._setArrayType(["parentId"], l), u.COMPARISON_OPERATOR_0, n), new t.JoinCondition(a, t._setArrayType(["restaurantId"], l), u.COMPARISON_OPERATOR_0, n)], p), !0, r, n), new t.Join(u.SCHEMA_NAME_55, t._setArrayType([new t.JoinCondition(e, t._setArrayType(["groupId"], l), u.COMPARISON_OPERATOR_0, n), new t.JoinCondition(a, t._setArrayType(["restaurantId"], l), u.COMPARISON_OPERATOR_0, n)], p), !1, r, n), new t.Join(u.SCHEMA_NAME_14, t._setArrayType([new t.JoinCondition(e, t._setArrayType(["restaurantId"], l), u.COMPARISON_OPERATOR_0, n)], p), !1, r, n), new t.Join(u.SCHEMA_NAME_10, t._setArrayType([new t.JoinCondition("billId", t._setArrayType(["billId"], l), u.COMPARISON_OPERATOR_0, n), new t.JoinCondition(a, t._setArrayType(["restaurantId"], l), u.COMPARISON_OPERATOR_0, n)], p), !1, r, n), new t.Join(u.SCHEMA_NAME_23, t._setArrayType([new t.JoinCondition("ref", t._setArrayType(["id"], l), u.COMPARISON_OPERATOR_0, n), new t.JoinCondition(s, t._setArrayType(["restaurantId"], l), u.COMPARISON_OPERATOR_0, n)], p), !1, r, n), new t.Join(u.SCHEMA_NAME_59, t._setArrayType([new t.JoinCondition(e, t._setArrayType(["menuItemId"], l), u.COMPARISON_OPERATOR_0, n), new t.JoinCondition(s, t._setArrayType(["restaurantId"], l), u.COMPARISON_OPERATOR_0, n)], p), !1, r, n), new t.Join(u.SCHEMA_NAME_17, t._setArrayType([new t.JoinCondition(e, t._setArrayType(["createdById"], l), u.COMPARISON_OPERATOR_0, n), new t.JoinCondition(a, t._setArrayType(["restaurantId"], l), u.COMPARISON_OPERATOR_0, n)], p), !1, r, n)], d.JSArray_Join);
|
|
9331
9335
|
},
|
|
9332
9336
|
$signature: 1
|
|
9333
9337
|
}, t.hourlyForecastSalesSchema_closure.prototype = {
|
|
@@ -9543,6 +9547,17 @@ Arguments: [` + _ + "]";
|
|
|
9543
9547
|
return t._setArrayType([new t.Join(u.SCHEMA_NAME_0, t._setArrayType([new t.JoinCondition("id", t._setArrayType(["billId"], a), u.COMPARISON_OPERATOR_0, e), new t.JoinCondition(n, t._setArrayType(["restaurantId"], a), u.COMPARISON_OPERATOR_0, e)], i), !0, r, e), new t.Join(u.SCHEMA_NAME_5, t._setArrayType([new t.JoinCondition("id", t._setArrayType(["itemId"], a), u.COMPARISON_OPERATOR_0, e), new t.JoinCondition("billId", t._setArrayType(["billId"], a), u.COMPARISON_OPERATOR_0, e), new t.JoinCondition(n, t._setArrayType(["restaurantId"], a), u.COMPARISON_OPERATOR_0, e)], i), !0, r, e), new t.Join(u.SCHEMA_NAME_14, t._setArrayType([new t.JoinCondition("id", t._setArrayType(["restaurantId"], a), u.COMPARISON_OPERATOR_0, e)], i), !1, r, e)], d.JSArray_Join);
|
|
9544
9548
|
},
|
|
9545
9549
|
$signature: 1
|
|
9550
|
+
}, t.masterUserSchema_closure.prototype = {
|
|
9551
|
+
call$1(r) {
|
|
9552
|
+
var e = null;
|
|
9553
|
+
return t._setArrayType([t.Field_Field$string(e, e, !1, e, !1, !1, "ID", "id", "_id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "docId", "_docId", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, u.FIELD_ROLE_5, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Created at", "createdAt", "_createdAt", e, u.FIELD_ROLE_0, r), t.Field_Field$timestamp(e, e, !0, e, !1, e, "publishedAt", "_publishedAt", e, e, r), t.Field_Field$string(e, e, !1, "id", !1, !1, "Name", "name", "name", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "User code", "code", "code", e, e, r)], d.JSArray_Field);
|
|
9554
|
+
},
|
|
9555
|
+
$signature: 0
|
|
9556
|
+
}, t.masterUserSchema_closure0.prototype = {
|
|
9557
|
+
call$1(r) {
|
|
9558
|
+
return t._setArrayType([], d.JSArray_Join);
|
|
9559
|
+
},
|
|
9560
|
+
$signature: 1
|
|
9546
9561
|
}, t.memberSchema_closure.prototype = {
|
|
9547
9562
|
call$1(r) {
|
|
9548
9563
|
var e = null, n = "experience", a = "normalBalance", i = "freeBalance", s = "phoneNumber";
|
|
@@ -10151,7 +10166,7 @@ join restaurants r on r.id = t.rid) end)`, e, r)], d.JSArray_Field);
|
|
|
10151
10166
|
}, t.staffSchema_closure.prototype = {
|
|
10152
10167
|
call$1(r) {
|
|
10153
10168
|
var e = null;
|
|
10154
|
-
return t._setArrayType([t.Field_Field$string(e, e, !1, e, !1, !1, "ID", "id", "_id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "docId", "_docId", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, u.FIELD_ROLE_5, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Created at", "createdAt", "_createdAt", e, u.FIELD_ROLE_0, r), t.Field_Field$timestamp(e, e, !0, e, !1, e, "publishedAt", "_publishedAt", e, e, r), t.Field_Field$string(e, e, !1, "id", !1, !1, "Name", "name", "name", e, e, r)], d.JSArray_Field);
|
|
10169
|
+
return t._setArrayType([t.Field_Field$string(e, e, !1, e, !1, !1, "ID", "id", "_id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "docId", "_docId", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, u.FIELD_ROLE_5, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Created at", "createdAt", "_createdAt", e, u.FIELD_ROLE_0, r), t.Field_Field$timestamp(e, e, !0, e, !1, e, "publishedAt", "_publishedAt", e, e, r), t.Field_Field$string(e, e, !1, "id", !1, !1, "Name", "name", "name", e, e, r), t.Field_Field$string("Staff code set in the back office, e.g. ZUS29560. Only masterUser_ staff have one.", e, !1, e, !1, !1, "User code", "code", "code", e, e, r)], d.JSArray_Field);
|
|
10155
10170
|
},
|
|
10156
10171
|
$signature: 0
|
|
10157
10172
|
}, t.staffSchema_closure0.prototype = {
|
|
@@ -10449,7 +10464,7 @@ join restaurants r on r.id = t.rid) end)`, e, r)], d.JSArray_Field);
|
|
|
10449
10464
|
$signature: 33
|
|
10450
10465
|
}, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure.prototype = {
|
|
10451
10466
|
call$1(r) {
|
|
10452
|
-
return t.EnumByName_byName(u.
|
|
10467
|
+
return t.EnumByName_byName(u.List_8aB, r);
|
|
10453
10468
|
},
|
|
10454
10469
|
$signature: 29
|
|
10455
10470
|
}, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure0.prototype = {
|
|
@@ -11126,7 +11141,7 @@ join restaurants r on r.id = t.rid) end)`, e, r)], d.JSArray_Field);
|
|
|
11126
11141
|
a(s = t.DateBuilder.prototype, "get$setYear", "setYear$1", 7), a(s, "get$setMonth", "setMonth$1", 7), a(s, "get$setDay", "setDay$1", 7), a(s, "get$setDayOfYear", "setDayOfYear$1", 7), a(s, "get$setHour", "setHour$1", 7), a(s, "get$setMinute", "setMinute$1", 7), a(s, "get$setSecond", "setSecond$1", 7), a(s, "get$setFractionalSecond", "setFractionalSecond$1", 7), n(t, "date_format_DateFormat_localeExists$closure", "DateFormat_localeExists", 81), i(t.DateFormat.prototype, "get$_initDigitMatcher", "_initDigitMatcher$0", 104), n(t, "tpl_order___tplOrderFields$closure", "_tplOrderFields", 0), n(t, "tpl_setting___tplSettingFields$closure", "_tplSettingFields", 0), a(t.ReCase.prototype, "get$_upperCaseFirstLetter", "_upperCaseFirstLetter$1", 3), n(t, "js_compiler__getMergeInfoSql$closure", "getMergeInfoSql", 4), n(t, "js_compiler__getClearTableSql$closure", "getClearTableSql", 4), n(t, "js_compiler__getMergeSql$closure", "getMergeSql", 4), n(t, "js_compiler__getSchemas$closure", "getSchemas", 4), n(t, "js_compiler__getVisualizationSchemas$closure", "getVisualizationSchemas", 4), n(t, "js_compiler__requestJsonToSql$closure", "requestJsonToSql", 4), n(t, "js_compiler__sqlResponsesToQueryResponses$closure", "sqlResponsesToQueryResponses", 4), n(t, "js_compiler__getQueryRequests$closure", "getQueryRequests", 4), n(t, "js_compiler__getCreateMaterializedTableSql$closure", "getCreateMaterializedTableSql", 4);
|
|
11127
11142
|
}(), function() {
|
|
11128
11143
|
var e = a0.mixin, n = a0.inherit, a = a0.inheritMany;
|
|
11129
|
-
n(t.Object, null), a(t.Object, [t.JS_CONST, o.Interceptor, o.ArrayIterator, t.Iterable, t.CastIterator, t.Error, t._ListBase_Object_ListMixin, t.ListIterator, t.Iterator, t.EmptyIterator, t.FixedLengthListMixin, t.UnmodifiableListMixin, t.Symbol, t.MapView, t.ConstantMap, t.Closure, t.JSInvocationMirror, t.TypeErrorDecoder, t.NullThrownFromJavaScriptException, t._Required, t.MapMixin, t.LinkedHashMapCell, t.LinkedHashMapKeyIterator, t.JSSyntaxRegExp, t._MatchImplementation, t._AllMatchesIterator, t.StringMatch, t._StringAllMatchesIterator, t._Cell, t.Rti, t._FunctionParameters, t._Type, t._IterationMarker, t._SyncStarIterator, t.StreamTransformerBase, t.__SetBase_Object_SetMixin, t._LinkedHashSetCell, t._LinkedHashSetIterator, t.ListMixin, t._UnmodifiableMapMixin, t.SetMixin, t.Codec, t._JsonStringifier, t._Utf8Encoder, t.DateTime, t.Duration, t._Enum, t.OutOfMemoryError, t.StackOverflowError, t._Exception, t.FormatException, t.MapEntry, t.Null, t.Sink, t.StringBuffer, t.Endian, t.Digest, t.HashSink, t.DateSymbols, t.DateBuilder, t.DateFormat, t._DateFormatField, t.StringStack, t.UninitializedLocaleData, t.LocaleDataException, t.Jiffy, t.Locale, t.JiffyException, t.Connection, t.SchemaLibrary, t.QueryEngineContext, t.Canonical, t.Hierarchy, t.Split, t.ReadPiece, t.Permission, t.TopLevelFilters, t.Source, t.Index, t.Schema, t.Field, t.Join, t.JoinLateralSort, t.JoinLateral, t.JoinCondition, t.QueryRequestComparisonTarget, t.QueryRequestComparison, t.QueryRequestCommonField, t._GetSourceTableResponse, t._PlainSqlColumn, t.QueryRequest, t.QueryRequestTimeDimension, t.QueryResponseColumn, t.DateTimeRange, t.QueryResponse, t.QueryResponseRow, t.VisualizationSchema, t.VisualizationField, t.QueryEngine, t.BaseDatasourceConfigModel, t.DataSourceDrillConfig, t.DataSourceRowColumnConfig, t.JoinDatasourceCondition, t.GlobalFilterModel, t.ReportWidgetModel, t.ReCase, t.TZDateTime, t.TimeZoneInitException, t.LocationNotFoundException, t.Location, t.TimeZone, t.TzInstant, t.LocationDatabase]), a(o.Interceptor, [o.JSBool, o.JSNull, o.JavaScriptObject, o.JSArray, o.JSNumber, o.JSString, t.NativeTypedData]), n(o.LegacyJavaScriptObject, o.JavaScriptObject), a(o.LegacyJavaScriptObject, [o.PlainJavaScriptObject, o.UnknownJavaScriptObject, o.JavaScriptFunction, t.BufferModule, t.BufferConstants, t.Buffer, t.ConsoleModule, t.Console, t.EventEmitter, t.Promise, t.Date, t.JsError, t.Atomics, t.Modules, t.Module, t.Net, t.Socket, t.NetAddress, t.NetServer, t.NodeJsError, t.Process, t.CPUUsage, t.Release, t.StreamModule, t.Readable, t.Writable, t.Duplex, t.Transform, t.WritableOptions, t.ReadableOptions, t.Immediate, t.Timeout, t.TTY, t.Util, t.Exports, t._Exports]), n(o.JSUnmodifiableArray, o.JSArray), a(o.JSNumber, [o.JSInt, o.JSNumNotInt]), a(t.Iterable, [t._CastIterableBase, t.EfficientLengthIterable, t.MappedIterable, t.WhereIterable, t.SkipIterable, t._ConstantMapKeyIterable, t.IterableBase, t._StringAllMatchesIterable]), a(t._CastIterableBase, [t.CastIterable, t.__CastListBase__CastIterableBase_ListMixin]), n(t._EfficientLengthCastIterable, t.CastIterable), n(t._CastListBase, t.__CastListBase__CastIterableBase_ListMixin), n(t.CastList, t._CastListBase), a(t.Error, [t.LateError, t.TypeError, t.JsNoSuchMethodError, t.UnknownJsTypeError, t.RuntimeError, t._Error, t.JsonUnsupportedObjectError, t.AssertionError, t.NullThrownError, t.ArgumentError, t.NoSuchMethodError, t.UnsupportedError, t.UnimplementedError, t.StateError, t.ConcurrentModificationError, t.CyclicInitializationError]), n(t.ListBase, t._ListBase_Object_ListMixin), a(t.ListBase, [t.UnmodifiableListBase, t.TypedDataBuffer]), n(t.CodeUnits, t.UnmodifiableListBase), a(t.EfficientLengthIterable, [t.ListIterable, t.EmptyIterable, t.LinkedHashMapKeyIterable]), a(t.ListIterable, [t.SubListIterable, t.MappedListIterable, t.ReversedListIterable, t._JsonMapKeyIterable, t._GeneratorIterable]), n(t.EfficientLengthMappedIterable, t.MappedIterable), a(t.Iterator, [t.MappedIterator, t.WhereIterator, t.SkipIterator]), n(t.EfficientLengthSkipIterable, t.SkipIterable), n(t._UnmodifiableMapView_MapView__UnmodifiableMapMixin, t.MapView), n(t.UnmodifiableMapView, t._UnmodifiableMapView_MapView__UnmodifiableMapMixin), n(t.ConstantMapView, t.UnmodifiableMapView), a(t.Closure, [t.Closure2Args, t.Closure0Args, t.TearOffClosure, t.initHooks_closure, t.initHooks_closure1, t._LinkedCustomHashMap_closure, t.MapMixin_entries_closure, t.DateTime_parse_parseIntOrZero, t.DateTime_parse_parseMilliAndMicroseconds, t.DateFormat_dateTimeConstructor_closure, t.DateFormat__checkDateOnly_closure, t.DateFormat__initDigitMatcher_closure, t.DateFormat__initDigitMatcher_closure0, t._DateFormatPatternField_parseStandaloneDay_closure, t.Jiffy__parseString_closure, t.SchemaLibrary_getSchema_closure, t.SchemaLibrary_visualizationSchemas_closure, t.SchemaLibrary_visualizationSchemas_closure0, t.Materialize_get_createMaterializedTableSql_closure, t.Materialize_get_createMaterializedTableSql_closure0, t.Materialize_get_createMaterializedTableSql_closure1, t.Materialize_get_createMaterializedTableSql_closure2, t.Materialize_getMergeSql_closure, t.Materialize_getMergeSql_closure0, t.Materialize_getMergeSql_closure1, t.Materialize_getMergeSql_closure2, t.Materialize_getMergeSql_closure3, t.Materialize_getMergeSql_closure4, t.Materialize_getMergeSql_closure5, t.Materialize_getMaterializeInfoSql_closure, t.Materialize_getMaterializeInfoSql_closure0, t.Split_fromJson_closure, t.TopLevelFilters_fromJson_closure, t.TopLevelFilters_toJson_closure, t.Schema_visualizationSchema_closure, t.Schema_visualizationSchema_closure0, t.Schema_visualizationSchema_closure1, t.Schema_fromJson_closure, t.Schema_fromJson_closure0, t.Schema_fromJson_closure1, t.Schema_fromJson_closure2, t.Schema_fromJson_closure3, t.Schema_toJson_closure, t.Schema_toJson_closure0, t.Schema_toJson_closure1, t.Schema_toJson_closure2, t.Schema_toJson_closure3, t.Field_getQueryPlainSql_closure, t.Join_fromJson_closure, t.Join_toJson_closure, t.JoinLateral_toJson_closure, t.QueryRequestComparison_QueryRequestComparison$nested_closure, t.QueryRequestComparison_getToValues_closure, t.QueryRequestComparison_getToValues__closure0, t.QueryRequestComparison_getToValues_closure0, t.QueryRequestComparison_getToValues__closure, t.QueryRequestComparison_getFromValue_closure, t.QueryRequestComparison_getSql_closure, t.QueryRequestComparison_getSql_closure0, t.uniqueAlias_closure, t.QueryRequestCommonField_getAggregatedSql_closure, t.QueryRequestDimension_getPlainSql_closure, t.QueryRequestDimension_getColumn_closure, t.QueryRequestMetric_getColumn_closure, t.QueryRequestMetric_getPlainSql_closure, t.QueryRequest__closure0, t.QueryRequest__closure, t.QueryRequest__getJoins_closure, t.QueryRequest__getJoins__closure, t.QueryRequest_fromJson_closure, t.QueryRequest_fromJson_closure0, t.QueryRequest_fromJson_closure1, t.QueryRequest_fromJson_closure2, t.QueryRequest_fromJson_closure3, t.QueryRequest_fromJson_closure4, t.QueryRequest_toJson_closure, t.QueryRequest_toJson_closure0, t.QueryRequest_toJson_closure1, t.QueryRequest_toJson_closure2, t.QueryRequest_toJson_closure3, t.QueryRequest_toJson_closure4, t.QueryRequest_getColumns_closure, t.QueryRequest_getColumns_closure0, t.QueryRequest__getPlainSqlColumns_closure, t.QueryRequest__getPlainSqlColumns_closure0, t.QueryRequest__getPlainSqlColumns_closure1, t.QueryRequest__getPlainSqlColumns__closure, t.QueryRequest__getPlainSqlSorts_closure, t.QueryRequest__getSqlFilters_closure, t.QueryRequest__getSqlFilters_closure0, t.QueryRequest__getSqlFilters_closure1, t.QueryRequest__getSqlFilters_closure2, t.QueryRequest__getSqlFilters_closure3, t.QueryRequest__getSqlFilters_closure4, t.QueryRequest__getSqlJoins__closure, t.QueryRequest__getSqlJoins__closure0, t.QueryRequest__getRollupSelect_closure0, t.QueryRequest__getRollupSelect_closure2, t.QueryRequest__getRollupSelect_closure3, t.QueryRequest__getRollupSelect_closure4, t.QueryRequest__getRollupSelect_closure6, t.QueryRequest__getRollupSelect_closure7, t.QueryRequest__getRollupSelect_closure8, t.QueryRequest__getRollupSelect_closure9, t.QueryRequest__hasFillGap_closure, t.QueryRequest__getSqlSelectSorts_closure, t.QueryRequest__getSqlSelectSorts__closure, t.QueryRequest__getSqlSelectSorts__closure0, t.QueryRequest_getSqlSelect_closure, t.QueryRequest_getSqlSelect_closure0, t.QueryRequest_getSqlSelect_closure1, t.QueryRequest__transformSqlAlias_closure, t.QueryRequest__getSourceTable_closure, t.QueryRequest__getSourceTable_closure0, t.QueryRequest__getFillGapTable_closure0, t.QueryRequest__getFillGapTable__closure1, t.QueryRequest__getFillGapTable__closure2, t.QueryRequest__getFillGapTable_closure2, t.QueryRequest__getFillGapTable__closure, t.QueryRequest__getFillGapTable__closure0, t.QueryRequest__getFillGapTable_closure3, t.QueryRequest__getFillGapTable_closure4, t.QueryRequest__getFullTable_closure, t.QueryRequest__getFullTable_closure1, t.QueryRequest__getFullTable_closure2, t.QueryRequestSort_getPlainSql_closure, t.QueryRequestSort_getSortSql_closure, t.QueryResponse$map_closure, t.QueryResponse_toJson_closure, t.QueryResponse_toJson_closure0, t.VisualizationSchema_toJson_closure, t.VisualizationSchema_toJson_closure0, t.VisualizationField_filterDimensionOptions_closure, t.VisualizationField_fillGapDimensionOptions_closure, t.VisualizationField_isNumericAggregations_closure, t.VisualizationField_toJson_closure, t.VisualizationField_toJson_closure0, t.VisualizationField_toJson_closure1, t.VisualizationField_toJson_closure2, t.VisualizationField_toJson_closure3, t.VisualizationField_toJson_closure4, t.VisualizationField_toJson_closure5, t.VisualizationField_toJson_closure6, t.VisualizationField_toJson_closure7, t.addonFlattenItemSchema_closure, t.addonFlattenItemSchema_closure0, t.adjustmentSchema_closure, t.adjustmentSchema_closure0, t.billSchema_closure, t.billSchema_closure0, t.billAuditLogSchema_closure, t.billAuditLogSchema_closure0, t.businessSchema_closure, t.businessSchema_closure0, t.campaignSchema_closure, t.campaignSchema_closure0, t.campaignTierSchema_closure, t.campaignTierSchema_closure0, t.changePaymentActivitySchema_closure, t.changePaymentActivitySchema_closure0, t.chargeSchema_closure, t.chargeSchema_closure0, t.closingDraftSchema_closure, t.closingDraftSchema_closure0, t.closingDraftSkuSchema_closure, t.closingDraftSkuSchema_closure0, t.closingSkuSchema_closure, t.closingSkuSchema_closure0, t.collectibleCollectionSchema_closure, t.collectibleCollectionSchema_closure0, t.collectibleConfigSchema_closure, t.collectibleConfigSchema_closure0, t.collectibleTransactionSchema_closure, t.collectibleTransactionSchema_closure0, t.completeTimeBillSchema_closure, t.completeTimeBillSchema_closure0, t.counterSchema_closure, t.counterSchema_closure0, t.creditTransactionSchema_closure, t.creditTransactionSchema_closure0, t.dailyForecastSalesSchema_closure, t.dailyForecastSalesSchema_closure0, t.depositSchema_closure, t.depositSchema_closure0, t.depositTransactionSchema_closure, t.depositTransactionSchema_closure0, t.discountSchema_closure, t.discountSchema_closure0, t.drawerSchema_closure, t.drawerSchema_closure0, t.flattenItemSchema_closure, t.flattenItemSchema_closure0, t.hourlyForecastSalesSchema_closure, t.hourlyForecastSalesSchema_closure0, t.internalMyEInvoiceDocumentSchema_closure, t.internalMyEInvoiceDocumentSchema_closure0, t.internalMyEInvoiceSubmissionSchema_closure, t.internalMyEInvoiceSubmissionSchema_closure0, t.internalMyEInvoiceSubmissionDocumentSchema_closure, t.internalMyEInvoiceSubmissionDocumentSchema_closure0, t.internalPurchaseOrderSchema_closure, t.internalPurchaseOrderSchema_closure0, t.internalPurchaseOrderDeliveryFulfillmentSchema_closure, t.internalPurchaseOrderDeliveryFulfillmentSchema_closure0, t.internalPurchaseOrderDeliveryFulfillmentSkuSchema_closure, t.internalPurchaseOrderDeliveryFulfillmentSkuSchema_closure0, t.internalPurchaseOrderDeliveryOrderSchema_closure, t.internalPurchaseOrderDeliveryOrderSchema_closure0, t.internalPurchaseOrderDeliveryOrderSkuSchema_closure, t.internalPurchaseOrderDeliveryOrderSkuSchema_closure0, t.internalPurchaseOrderItemSchema_closure, t.internalPurchaseOrderItemSchema_closure0, t.inventoryAdjustmentSchema_closure, t.inventoryAdjustmentSchema_closure0, t.inventoryAdjustmentPhysicalSkuSchema_closure, t.inventoryAdjustmentPhysicalSkuSchema_closure0, t.inventoryAdjustmentSkuSchema_closure, t.inventoryAdjustmentSkuSchema_closure0, t.inventorySkuBalanceSchema_closure, t.inventorySkuBalanceSchema_closure0, t.inventoryV1FlattenInventorySchema_closure, t.inventoryV1FlattenInventorySchema_closure0, t.itemSchema_closure, t.itemSchema_closure0, t.itemMovementSchema_closure, t.itemMovementSchema_closure0, t.kitchenStationSchema_closure, t.kitchenStationSchema_closure0, t.memberSchema_closure, t.memberSchema_closure0, t.memberStorePurchaseSchema_closure, t.memberStorePurchaseSchema_closure0, t.memberStorePurchasePaymentSchema_closure, t.memberStorePurchasePaymentSchema_closure0, t.memberTitleSchema_closure, t.memberTitleSchema_closure0, t.memberV2Schema_closure, t.memberV2Schema_closure0, t.membershipSchema_closure, t.membershipSchema_closure0, t.membershipTitleSchema_closure, t.membershipTitleSchema_closure0, t.menuV3GroupSchema_closure, t.menuV3GroupSchema_closure0, t.menuV3ItemSchema_closure, t.menuV3ItemSchema_closure0, t.menuV3SkuSchema_closure, t.menuV3SkuSchema_closure0, t.menuV4CatalogItemSchema_closure, t.menuV4CatalogItemSchema_closure0, t.menuV4GroupSchema_closure, t.menuV4GroupSchema_closure0, t.menuV4ItemSchema_closure, t.menuV4ItemSchema_closure0, t.menuV4ItemInventoryBindingSchema_closure, t.menuV4ItemInventoryBindingSchema_closure0, t.menuV4SkuSchema_closure, t.menuV4SkuSchema_closure0, t.myEInvoiceSubmissionSchema_closure, t.myEInvoiceSubmissionSchema_closure0, t.parentFlattenItemSchema_closure, t.parentFlattenItemSchema_closure0, t.paymentSchema_closure, t.paymentSchema_closure0, t.paymentTimePaymentSchema_closure, t.paymentTimePaymentSchema_closure0, t.posOverrideItemLogSchema_closure, t.posOverrideItemLogSchema_closure0, t.printActivitySchema_closure, t.printActivitySchema_closure0, t.productPosOverrideV4ItemSchema_closure, t.productPosOverrideV4ItemSchema_closure0, t.promotionSchema_closure, t.promotionSchema_closure0, t.purchaseOrderSchema_closure, t.purchaseOrderSchema_closure0, t.purchaseOrderDeliveryFulfillmentSchema_closure, t.purchaseOrderDeliveryFulfillmentSchema_closure0, t.purchaseOrderDeliveryFulfillmentSkuSchema_closure, t.purchaseOrderDeliveryFulfillmentSkuSchema_closure0, t.purchaseOrderDeliveryOrderSchema_closure, t.purchaseOrderDeliveryOrderSchema_closure0, t.purchaseOrderDeliveryOrderSkuSchema_closure, t.purchaseOrderDeliveryOrderSkuSchema_closure0, t.purchaseOrderItemSchema_closure, t.purchaseOrderItemSchema_closure0, t.purchaseOrderTemplateSchema_closure, t.purchaseOrderTemplateSchema_closure0, t.purchaseOrderTemplateItemSchema_closure, t.purchaseOrderTemplateItemSchema_closure0, t.inventoryV1RecipeSchema_closure, t.inventoryV1RecipeSchema_closure0, t.recommendationCallSchema_closure, t.recommendationCallSchema_closure0, t.recordSchema_closure, t.recordSchema_closure0, t.refundBillSchema_closure, t.refundBillSchema_closure0, t.remoteOrderSchema_closure, t.remoteOrderSchema_closure0, t.remoteOrderAddonFlattenItemSchema_closure, t.remoteOrderAddonFlattenItemSchema_closure0, t.remoteOrderFlattenItemSchema_closure, t.remoteOrderFlattenItemSchema_closure0, t.remoteOrderParentFlattenItemSchema_closure, t.remoteOrderParentFlattenItemSchema_closure0, t.remotePickupOrderSchema_closure, t.remotePickupOrderSchema_closure0, t.remotePickupOrderFlattenItemSchema_closure, t.remotePickupOrderFlattenItemSchema_closure0, t.restaurantSchema_closure, t.restaurantSchema_closure0, t.restaurantFeatureSchema_closure, t.restaurantFeatureSchema_closure0, t.restaurantLocationSchema_closure, t.restaurantLocationSchema_closure0, t.reviewSchema_closure, t.reviewSchema_closure0, t.salePaymentSchema_closure, t.salePaymentSchema_closure0, t.saleTransactionSchema_closure, t.saleTransactionSchema_closure0, t.inventoryV1SkuSchema_closure, t.inventoryV1SkuSchema_closure0, t.slotSchema_closure, t.slotSchema_closure0, t.smsCreditTransactionSchema_closure, t.smsCreditTransactionSchema_closure0, t.staffSchema_closure, t.staffSchema_closure0, t.stockSchema_closure, t.stockSchema_closure0, t.storeBundleSchema_closure, t.storeBundleSchema_closure0, t.storeTransactionSchema_closure, t.storeTransactionSchema_closure0, t.subItemSchema_closure, t.subItemSchema_closure0, t.thEInvoiceSubmissionSchema_closure, t.thEInvoiceSubmissionSchema_closure0, t.timesheetSchema_closure, t.timesheetSchema_closure0, t.timesheetRecordSchema_closure, t.timesheetRecordSchema_closure0, t.titleCollectionSchema_closure, t.titleCollectionSchema_closure0, t._tplOrderSource_closure, t.tplOrderSchema_closure, t.tplOrderSchema_closure0, t._tplSettingSource_closure, t.unitCostHistorySchema_closure, t.unitCostHistorySchema_closure0, t.userSchema_closure, t.userSchema_closure0, t.vnEInvoiceSubmissionSchema_closure, t.vnEInvoiceSubmissionSchema_closure0, t.voucherClaimSchema_closure, t.voucherClaimSchema_closure0, t.voucherClaimRedemptionSchema_closure, t.voucherClaimRedemptionSchema_closure0, t.warehouseLocationSchema_closure, t.warehouseLocationSchema_closure0, t.wastageItemSchema_closure, t.wastageItemSchema_closure0, t.QueryEngine_getSql_closure, t.BaseDatasourceConfigModel_drilledDimensionIds_closure, t.BaseDatasourceConfigModel_metricIds_closure, t.BaseDatasourceConfigModel_toJson_closure, t.BaseDatasourceConfigModel_toJson_closure0, t.BaseDatasourceConfigModel_toJson_closure1, t.BaseDatasourceConfigModel_toJson_closure2, t.BaseDatasourceConfigModel_toJson_closure3, t.BaseDatasourceConfigModel_toJson_closure4, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure0, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure1, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure2, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure3, t.DataSourceDrillConfig_drilledDimensions_closure, t.DataSourceRowColumnConfig_rowIds_closure, t.DataSourceRowColumnConfig_rowIds_closure0, t.DataSourceRowColumnConfig_rowIds_closure2, t.DataSourceRowColumnConfig_rowIds_closure1, t.DataSourceRowColumnConfig_columnIds_closure, t.DataSourceRowColumnConfig_columnIds_closure0, t.DataSourceRowColumnConfig_columnIds_closure1, t.TableDatasourceConfigModel_joinDatasources_closure, t.TableDatasourceConfigModel_toRequests___closure, t.TableDatasourceConfigModel_toRequests_closure0, t.TableDatasourceConfigModel_toJson_closure, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson_closure, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson___closure, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson___closure0, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson____closure, t.JoinDatasourceConfig_JoinDatasourceConfig$fromJson_closure, t.JoinDatasourceConfig_toJson_closure, t.JoinDatasourceCondition_JoinDatasourceCondition$fromJson_closure, t.JoinDatasourceCondition_toJson_closure, t.BaseXYDatasourceConfigModel_joinDatasources_closure, t.BaseXYDatasourceConfigModel_toRequests___closure, t.BaseXYDatasourceConfigModel_toRequests_closure0, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson_closure, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson___closure, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson___closure0, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson____closure, t.getSchemas_closure, t.getVisualizationSchemas_closure, t.sqlResponsesToQueryResponses_closure, t.sqlResponsesToQueryResponses_closure1, t.getQueryRequests_closure, t.getQueryRequests_closure0, t.getQueryRequests_closure1, t.getQueryRequests_closure2, t.getQueryRequests_closure3, t.getQueryRequests_closure4, t.getQueryRequests_closure5, t.getQueryRequests_closure6, t.getQueryRequests_closure7, t.getQueryRequests_closure8, t.getQueryRequests_closure9]), a(t.Closure2Args, [t.ConstantMap_map_closure, t.Primitives_functionNoSuchMethod_closure, t.JsLinkedHashMap_addAll_closure, t.initHooks_closure0, t.LinkedHashMap_LinkedHashMap$from_closure, t.MapBase_mapToString_closure, t._JsonStringifier_writeMap_closure, t.NoSuchMethodError_toString_closure, t.DateFormat__fieldConstructors_closure, t.DateFormat__fieldConstructors_closure0, t.DateFormat__fieldConstructors_closure1, t.Jiffy__parseMap_closure, t.Canonical_fromJson_closure, t.Join_getConditionsSql_closure, t.QueryRequest_closure, t.QueryRequest_closure0, t.QueryRequest__getPlainSqlColumns_closure2, t.QueryRequest__getSqlJoins_closure, t.QueryRequest__getRollupSelect_closure, t.QueryRequest__getRollupSelect_closure1, t.QueryRequest__getRollupSelect_closure5, t.QueryRequest__getSqlSelectSorts_closure0, t.QueryRequest__getSortedLimitTable_closure, t.QueryRequest__getFillGapTable_closure, t.QueryRequest__getFillGapTable_closure1, t.QueryRequest__getFullTable_closure0, t.VisualizationSchema_closure, t.DataSourceDrillConfig__availableIds_closure, t.DataSourceRowColumnConfig__availableIds_closure, t.DataSourceRowColumnConfig__availableIds_closure0, t.TableDatasourceConfigModel_drilledDimensions_closure, t.TableDatasourceConfigModel_toRequests_closure, t.TableDatasourceConfigModel_toRequests__closure0, t.TableDatasourceConfigModel_toRequests__closure, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson__closure, t.BaseXYDatasourceConfigModel_toRequests_closure, t.BaseXYDatasourceConfigModel_toRequests__closure0, t.BaseXYDatasourceConfigModel_toRequests__closure, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson__closure, t.sqlResponsesToQueryResponses_closure0]), n(t.ConstantStringMap, t.ConstantMap), n(t.NullError, t.TypeError), a(t.TearOffClosure, [t.StaticClosure, t.BoundClosure]), n(t.MapBase, t.MapMixin), a(t.MapBase, [t.JsLinkedHashMap, t._JsonMap]), a(t.IterableBase, [t._AllMatchesIterable, t._SyncStarIterable]), n(t.NativeTypedArray, t.NativeTypedData), n(t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin, t.NativeTypedArray), n(t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin), n(t.NativeTypedArrayOfInt, t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin), a(t.NativeTypedArrayOfInt, [t.NativeUint16List, t.NativeUint32List, t.NativeUint8List]), n(t._TypeError, t._Error), a(t.JsLinkedHashMap, [t._LinkedIdentityHashMap, t._LinkedCustomHashMap]), n(t._SetBase, t.__SetBase_Object_SetMixin), n(t._LinkedHashSet, t._SetBase), a(t.Codec, [t.Encoding, t.JsonCodec]), a(t.Encoding, [t.AsciiCodec, t.Utf8Codec]), n(t.Converter, t.StreamTransformerBase), a(t.Converter, [t._UnicodeSubsetDecoder, t.JsonEncoder, t.JsonDecoder, t.Utf8Encoder]), n(t.AsciiDecoder, t._UnicodeSubsetDecoder), n(t.JsonCyclicError, t.JsonUnsupportedObjectError), n(t._JsonStringStringifier, t._JsonStringifier), a(t.ArgumentError, [t.RangeError, t.IndexError]), n(t.DigestSink, t.Sink), n(t._Sha1Sink, t.HashSink), a(t._DateFormatField, [t._DateFormatLiteralField, t._DateFormatQuotedField, t._DateFormatPatternField]), a(t._Enum, [t.StartOfWeek, t.Units, t.SOURCE_TYPE, t.MERGE_FILTER_TYPE, t.FIELD_ROLE, t.SCHEMA_NAME, t.DATA_TYPE, t.AGGREGATION_TYPE, t.COMPARISON_OPERATOR, t.DIMENSION_OPTION, t.TIME_FORMATTER, t.FORMATTER_TYPE, t.PERIOD_TYPE, t.SORT_TYPE, t.PermissionType, t.INDEX_METHOD, t.FIELD_TYPE, t.ChartType]), a(t.Locale, [t.ArLyLocale, t.ArSaMaDzKwTnLocale, t.AzLocale, t.BnLocale, t.DeLocale, t.EnLocale, t.EsLocale, t.FaLocale, t.FrLocale, t.HiLocale, t.IdLocale, t.ItLocale, t.JaLocale, t.KoLocale, t.NbLocale, t.NlLocale, t.PlLocale, t.PtLocale, t.RuLocale, t.SvLocale, t.ThLocale, t.TrLocale, t.UkLocale, t.ZhCnLocale, t.ZhLocale]), a(t.NodeJsError, [t.JsAssertionError, t.JsRangeError, t.JsReferenceError, t.JsSyntaxError, t.JsTypeError, t.JsSystemError]), a(t.Socket, [t.TTYReadStream, t.TTYWriteStream]), a(t.Field, [t._NumericField, t._TimestampField, t._BoolField, t._StringField]), a(t.QueryRequestComparisonTarget, [t._QueryRequestComparisonTargetValue, t._QueryRequestComparisonTargetVariable]), a(t.QueryRequestCommonField, [t.QueryRequestDimension, t.QueryRequestMetric, t.QueryRequestFilter, t.QueryRequestSort]), a(t.Closure0Args, [t.QueryRequestDimension_generateTimestampArraySql_closure, t.QueryRequestDimension_generateTimestampArraySql_closure0, t.QueryRequest__getSqlFilters__closure]), a(t.BaseDatasourceConfigModel, [t._CircularDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig, t.ScorecardDatasourceConfigModel, t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig, t._JoinDatasourceConfig_BaseDatasourceConfigModel_DataSourceRowColumnConfig, t._BaseXYDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig]), n(t.CircularDatasourceConfigModel, t._CircularDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig), n(t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig_DataSourceDrillConfig, t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig), n(t.TableDatasourceConfigModel, t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig_DataSourceDrillConfig), n(t.JoinDatasourceConfig, t._JoinDatasourceConfig_BaseDatasourceConfigModel_DataSourceRowColumnConfig), n(t.BaseXYDatasourceConfigModel, t._BaseXYDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig), n(t._IntBuffer, t.TypedDataBuffer), n(t.Uint8Buffer, t._IntBuffer), e(t.UnmodifiableListBase, t.UnmodifiableListMixin), e(t.__CastListBase__CastIterableBase_ListMixin, t.ListMixin), e(t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin, t.ListMixin), e(t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, t.FixedLengthListMixin), e(t._ListBase_Object_ListMixin, t.ListMixin), e(t._UnmodifiableMapView_MapView__UnmodifiableMapMixin, t._UnmodifiableMapMixin), e(t.__SetBase_Object_SetMixin, t.SetMixin), e(t._CircularDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig, t.DataSourceDrillConfig), e(t._JoinDatasourceConfig_BaseDatasourceConfigModel_DataSourceRowColumnConfig, t.DataSourceRowColumnConfig), e(t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig, t.DataSourceRowColumnConfig), e(t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig_DataSourceDrillConfig, t.DataSourceDrillConfig), e(t._BaseXYDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig, t.DataSourceDrillConfig);
|
|
11144
|
+
n(t.Object, null), a(t.Object, [t.JS_CONST, o.Interceptor, o.ArrayIterator, t.Iterable, t.CastIterator, t.Error, t._ListBase_Object_ListMixin, t.ListIterator, t.Iterator, t.EmptyIterator, t.FixedLengthListMixin, t.UnmodifiableListMixin, t.Symbol, t.MapView, t.ConstantMap, t.Closure, t.JSInvocationMirror, t.TypeErrorDecoder, t.NullThrownFromJavaScriptException, t._Required, t.MapMixin, t.LinkedHashMapCell, t.LinkedHashMapKeyIterator, t.JSSyntaxRegExp, t._MatchImplementation, t._AllMatchesIterator, t.StringMatch, t._StringAllMatchesIterator, t._Cell, t.Rti, t._FunctionParameters, t._Type, t._IterationMarker, t._SyncStarIterator, t.StreamTransformerBase, t.__SetBase_Object_SetMixin, t._LinkedHashSetCell, t._LinkedHashSetIterator, t.ListMixin, t._UnmodifiableMapMixin, t.SetMixin, t.Codec, t._JsonStringifier, t._Utf8Encoder, t.DateTime, t.Duration, t._Enum, t.OutOfMemoryError, t.StackOverflowError, t._Exception, t.FormatException, t.MapEntry, t.Null, t.Sink, t.StringBuffer, t.Endian, t.Digest, t.HashSink, t.DateSymbols, t.DateBuilder, t.DateFormat, t._DateFormatField, t.StringStack, t.UninitializedLocaleData, t.LocaleDataException, t.Jiffy, t.Locale, t.JiffyException, t.Connection, t.SchemaLibrary, t.QueryEngineContext, t.Canonical, t.Hierarchy, t.Split, t.ReadPiece, t.Permission, t.TopLevelFilters, t.Source, t.Index, t.Schema, t.Field, t.Join, t.JoinLateralSort, t.JoinLateral, t.JoinCondition, t.QueryRequestComparisonTarget, t.QueryRequestComparison, t.QueryRequestCommonField, t._GetSourceTableResponse, t._PlainSqlColumn, t.QueryRequest, t.QueryRequestTimeDimension, t.QueryResponseColumn, t.DateTimeRange, t.QueryResponse, t.QueryResponseRow, t.VisualizationSchema, t.VisualizationField, t.QueryEngine, t.BaseDatasourceConfigModel, t.DataSourceDrillConfig, t.DataSourceRowColumnConfig, t.JoinDatasourceCondition, t.GlobalFilterModel, t.ReportWidgetModel, t.ReCase, t.TZDateTime, t.TimeZoneInitException, t.LocationNotFoundException, t.Location, t.TimeZone, t.TzInstant, t.LocationDatabase]), a(o.Interceptor, [o.JSBool, o.JSNull, o.JavaScriptObject, o.JSArray, o.JSNumber, o.JSString, t.NativeTypedData]), n(o.LegacyJavaScriptObject, o.JavaScriptObject), a(o.LegacyJavaScriptObject, [o.PlainJavaScriptObject, o.UnknownJavaScriptObject, o.JavaScriptFunction, t.BufferModule, t.BufferConstants, t.Buffer, t.ConsoleModule, t.Console, t.EventEmitter, t.Promise, t.Date, t.JsError, t.Atomics, t.Modules, t.Module, t.Net, t.Socket, t.NetAddress, t.NetServer, t.NodeJsError, t.Process, t.CPUUsage, t.Release, t.StreamModule, t.Readable, t.Writable, t.Duplex, t.Transform, t.WritableOptions, t.ReadableOptions, t.Immediate, t.Timeout, t.TTY, t.Util, t.Exports, t._Exports]), n(o.JSUnmodifiableArray, o.JSArray), a(o.JSNumber, [o.JSInt, o.JSNumNotInt]), a(t.Iterable, [t._CastIterableBase, t.EfficientLengthIterable, t.MappedIterable, t.WhereIterable, t.SkipIterable, t._ConstantMapKeyIterable, t.IterableBase, t._StringAllMatchesIterable]), a(t._CastIterableBase, [t.CastIterable, t.__CastListBase__CastIterableBase_ListMixin]), n(t._EfficientLengthCastIterable, t.CastIterable), n(t._CastListBase, t.__CastListBase__CastIterableBase_ListMixin), n(t.CastList, t._CastListBase), a(t.Error, [t.LateError, t.TypeError, t.JsNoSuchMethodError, t.UnknownJsTypeError, t.RuntimeError, t._Error, t.JsonUnsupportedObjectError, t.AssertionError, t.NullThrownError, t.ArgumentError, t.NoSuchMethodError, t.UnsupportedError, t.UnimplementedError, t.StateError, t.ConcurrentModificationError, t.CyclicInitializationError]), n(t.ListBase, t._ListBase_Object_ListMixin), a(t.ListBase, [t.UnmodifiableListBase, t.TypedDataBuffer]), n(t.CodeUnits, t.UnmodifiableListBase), a(t.EfficientLengthIterable, [t.ListIterable, t.EmptyIterable, t.LinkedHashMapKeyIterable]), a(t.ListIterable, [t.SubListIterable, t.MappedListIterable, t.ReversedListIterable, t._JsonMapKeyIterable, t._GeneratorIterable]), n(t.EfficientLengthMappedIterable, t.MappedIterable), a(t.Iterator, [t.MappedIterator, t.WhereIterator, t.SkipIterator]), n(t.EfficientLengthSkipIterable, t.SkipIterable), n(t._UnmodifiableMapView_MapView__UnmodifiableMapMixin, t.MapView), n(t.UnmodifiableMapView, t._UnmodifiableMapView_MapView__UnmodifiableMapMixin), n(t.ConstantMapView, t.UnmodifiableMapView), a(t.Closure, [t.Closure2Args, t.Closure0Args, t.TearOffClosure, t.initHooks_closure, t.initHooks_closure1, t._LinkedCustomHashMap_closure, t.MapMixin_entries_closure, t.DateTime_parse_parseIntOrZero, t.DateTime_parse_parseMilliAndMicroseconds, t.DateFormat_dateTimeConstructor_closure, t.DateFormat__checkDateOnly_closure, t.DateFormat__initDigitMatcher_closure, t.DateFormat__initDigitMatcher_closure0, t._DateFormatPatternField_parseStandaloneDay_closure, t.Jiffy__parseString_closure, t.SchemaLibrary_getSchema_closure, t.SchemaLibrary_visualizationSchemas_closure, t.SchemaLibrary_visualizationSchemas_closure0, t.Materialize_get_createMaterializedTableSql_closure, t.Materialize_get_createMaterializedTableSql_closure0, t.Materialize_get_createMaterializedTableSql_closure1, t.Materialize_get_createMaterializedTableSql_closure2, t.Materialize_getMergeSql_closure, t.Materialize_getMergeSql_closure0, t.Materialize_getMergeSql_closure1, t.Materialize_getMergeSql_closure2, t.Materialize_getMergeSql_closure3, t.Materialize_getMergeSql_closure4, t.Materialize_getMergeSql_closure5, t.Materialize_getMaterializeInfoSql_closure, t.Materialize_getMaterializeInfoSql_closure0, t.Split_fromJson_closure, t.TopLevelFilters_fromJson_closure, t.TopLevelFilters_toJson_closure, t.Schema_visualizationSchema_closure, t.Schema_visualizationSchema_closure0, t.Schema_visualizationSchema_closure1, t.Schema_fromJson_closure, t.Schema_fromJson_closure0, t.Schema_fromJson_closure1, t.Schema_fromJson_closure2, t.Schema_fromJson_closure3, t.Schema_toJson_closure, t.Schema_toJson_closure0, t.Schema_toJson_closure1, t.Schema_toJson_closure2, t.Schema_toJson_closure3, t.Field_getQueryPlainSql_closure, t.Join_fromJson_closure, t.Join_toJson_closure, t.JoinLateral_toJson_closure, t.QueryRequestComparison_QueryRequestComparison$nested_closure, t.QueryRequestComparison_getToValues_closure, t.QueryRequestComparison_getToValues__closure0, t.QueryRequestComparison_getToValues_closure0, t.QueryRequestComparison_getToValues__closure, t.QueryRequestComparison_getFromValue_closure, t.QueryRequestComparison_getSql_closure, t.QueryRequestComparison_getSql_closure0, t.uniqueAlias_closure, t.QueryRequestCommonField_getAggregatedSql_closure, t.QueryRequestDimension_getPlainSql_closure, t.QueryRequestDimension_getColumn_closure, t.QueryRequestMetric_getColumn_closure, t.QueryRequestMetric_getPlainSql_closure, t.QueryRequest__closure0, t.QueryRequest__closure, t.QueryRequest__getJoins_closure, t.QueryRequest__getJoins__closure, t.QueryRequest_fromJson_closure, t.QueryRequest_fromJson_closure0, t.QueryRequest_fromJson_closure1, t.QueryRequest_fromJson_closure2, t.QueryRequest_fromJson_closure3, t.QueryRequest_fromJson_closure4, t.QueryRequest_toJson_closure, t.QueryRequest_toJson_closure0, t.QueryRequest_toJson_closure1, t.QueryRequest_toJson_closure2, t.QueryRequest_toJson_closure3, t.QueryRequest_toJson_closure4, t.QueryRequest_getColumns_closure, t.QueryRequest_getColumns_closure0, t.QueryRequest__getPlainSqlColumns_closure, t.QueryRequest__getPlainSqlColumns_closure0, t.QueryRequest__getPlainSqlColumns_closure1, t.QueryRequest__getPlainSqlColumns__closure, t.QueryRequest__getPlainSqlSorts_closure, t.QueryRequest__getSqlFilters_closure, t.QueryRequest__getSqlFilters_closure0, t.QueryRequest__getSqlFilters_closure1, t.QueryRequest__getSqlFilters_closure2, t.QueryRequest__getSqlFilters_closure3, t.QueryRequest__getSqlFilters_closure4, t.QueryRequest__getSqlJoins__closure, t.QueryRequest__getSqlJoins__closure0, t.QueryRequest__getRollupSelect_closure0, t.QueryRequest__getRollupSelect_closure2, t.QueryRequest__getRollupSelect_closure3, t.QueryRequest__getRollupSelect_closure4, t.QueryRequest__getRollupSelect_closure6, t.QueryRequest__getRollupSelect_closure7, t.QueryRequest__getRollupSelect_closure8, t.QueryRequest__getRollupSelect_closure9, t.QueryRequest__hasFillGap_closure, t.QueryRequest__getSqlSelectSorts_closure, t.QueryRequest__getSqlSelectSorts__closure, t.QueryRequest__getSqlSelectSorts__closure0, t.QueryRequest_getSqlSelect_closure, t.QueryRequest_getSqlSelect_closure0, t.QueryRequest_getSqlSelect_closure1, t.QueryRequest__transformSqlAlias_closure, t.QueryRequest__getSourceTable_closure, t.QueryRequest__getSourceTable_closure0, t.QueryRequest__getFillGapTable_closure0, t.QueryRequest__getFillGapTable__closure1, t.QueryRequest__getFillGapTable__closure2, t.QueryRequest__getFillGapTable_closure2, t.QueryRequest__getFillGapTable__closure, t.QueryRequest__getFillGapTable__closure0, t.QueryRequest__getFillGapTable_closure3, t.QueryRequest__getFillGapTable_closure4, t.QueryRequest__getFullTable_closure, t.QueryRequest__getFullTable_closure1, t.QueryRequest__getFullTable_closure2, t.QueryRequestSort_getPlainSql_closure, t.QueryRequestSort_getSortSql_closure, t.QueryResponse$map_closure, t.QueryResponse_toJson_closure, t.QueryResponse_toJson_closure0, t.VisualizationSchema_toJson_closure, t.VisualizationSchema_toJson_closure0, t.VisualizationField_filterDimensionOptions_closure, t.VisualizationField_fillGapDimensionOptions_closure, t.VisualizationField_isNumericAggregations_closure, t.VisualizationField_toJson_closure, t.VisualizationField_toJson_closure0, t.VisualizationField_toJson_closure1, t.VisualizationField_toJson_closure2, t.VisualizationField_toJson_closure3, t.VisualizationField_toJson_closure4, t.VisualizationField_toJson_closure5, t.VisualizationField_toJson_closure6, t.VisualizationField_toJson_closure7, t.addonFlattenItemSchema_closure, t.addonFlattenItemSchema_closure0, t.adjustmentSchema_closure, t.adjustmentSchema_closure0, t.billSchema_closure, t.billSchema_closure0, t.billAuditLogSchema_closure, t.billAuditLogSchema_closure0, t.businessSchema_closure, t.businessSchema_closure0, t.campaignSchema_closure, t.campaignSchema_closure0, t.campaignTierSchema_closure, t.campaignTierSchema_closure0, t.changePaymentActivitySchema_closure, t.changePaymentActivitySchema_closure0, t.chargeSchema_closure, t.chargeSchema_closure0, t.closingDraftSchema_closure, t.closingDraftSchema_closure0, t.closingDraftSkuSchema_closure, t.closingDraftSkuSchema_closure0, t.closingSkuSchema_closure, t.closingSkuSchema_closure0, t.collectibleCollectionSchema_closure, t.collectibleCollectionSchema_closure0, t.collectibleConfigSchema_closure, t.collectibleConfigSchema_closure0, t.collectibleTransactionSchema_closure, t.collectibleTransactionSchema_closure0, t.completeTimeBillSchema_closure, t.completeTimeBillSchema_closure0, t.counterSchema_closure, t.counterSchema_closure0, t.creditTransactionSchema_closure, t.creditTransactionSchema_closure0, t.dailyForecastSalesSchema_closure, t.dailyForecastSalesSchema_closure0, t.depositSchema_closure, t.depositSchema_closure0, t.depositTransactionSchema_closure, t.depositTransactionSchema_closure0, t.discountSchema_closure, t.discountSchema_closure0, t.drawerSchema_closure, t.drawerSchema_closure0, t.flattenItemSchema_closure, t.flattenItemSchema_closure0, t.hourlyForecastSalesSchema_closure, t.hourlyForecastSalesSchema_closure0, t.internalMyEInvoiceDocumentSchema_closure, t.internalMyEInvoiceDocumentSchema_closure0, t.internalMyEInvoiceSubmissionSchema_closure, t.internalMyEInvoiceSubmissionSchema_closure0, t.internalMyEInvoiceSubmissionDocumentSchema_closure, t.internalMyEInvoiceSubmissionDocumentSchema_closure0, t.internalPurchaseOrderSchema_closure, t.internalPurchaseOrderSchema_closure0, t.internalPurchaseOrderDeliveryFulfillmentSchema_closure, t.internalPurchaseOrderDeliveryFulfillmentSchema_closure0, t.internalPurchaseOrderDeliveryFulfillmentSkuSchema_closure, t.internalPurchaseOrderDeliveryFulfillmentSkuSchema_closure0, t.internalPurchaseOrderDeliveryOrderSchema_closure, t.internalPurchaseOrderDeliveryOrderSchema_closure0, t.internalPurchaseOrderDeliveryOrderSkuSchema_closure, t.internalPurchaseOrderDeliveryOrderSkuSchema_closure0, t.internalPurchaseOrderItemSchema_closure, t.internalPurchaseOrderItemSchema_closure0, t.inventoryAdjustmentSchema_closure, t.inventoryAdjustmentSchema_closure0, t.inventoryAdjustmentPhysicalSkuSchema_closure, t.inventoryAdjustmentPhysicalSkuSchema_closure0, t.inventoryAdjustmentSkuSchema_closure, t.inventoryAdjustmentSkuSchema_closure0, t.inventorySkuBalanceSchema_closure, t.inventorySkuBalanceSchema_closure0, t.inventoryV1FlattenInventorySchema_closure, t.inventoryV1FlattenInventorySchema_closure0, t.itemSchema_closure, t.itemSchema_closure0, t.itemMovementSchema_closure, t.itemMovementSchema_closure0, t.kitchenStationSchema_closure, t.kitchenStationSchema_closure0, t.masterUserSchema_closure, t.masterUserSchema_closure0, t.memberSchema_closure, t.memberSchema_closure0, t.memberStorePurchaseSchema_closure, t.memberStorePurchaseSchema_closure0, t.memberStorePurchasePaymentSchema_closure, t.memberStorePurchasePaymentSchema_closure0, t.memberTitleSchema_closure, t.memberTitleSchema_closure0, t.memberV2Schema_closure, t.memberV2Schema_closure0, t.membershipSchema_closure, t.membershipSchema_closure0, t.membershipTitleSchema_closure, t.membershipTitleSchema_closure0, t.menuV3GroupSchema_closure, t.menuV3GroupSchema_closure0, t.menuV3ItemSchema_closure, t.menuV3ItemSchema_closure0, t.menuV3SkuSchema_closure, t.menuV3SkuSchema_closure0, t.menuV4CatalogItemSchema_closure, t.menuV4CatalogItemSchema_closure0, t.menuV4GroupSchema_closure, t.menuV4GroupSchema_closure0, t.menuV4ItemSchema_closure, t.menuV4ItemSchema_closure0, t.menuV4ItemInventoryBindingSchema_closure, t.menuV4ItemInventoryBindingSchema_closure0, t.menuV4SkuSchema_closure, t.menuV4SkuSchema_closure0, t.myEInvoiceSubmissionSchema_closure, t.myEInvoiceSubmissionSchema_closure0, t.parentFlattenItemSchema_closure, t.parentFlattenItemSchema_closure0, t.paymentSchema_closure, t.paymentSchema_closure0, t.paymentTimePaymentSchema_closure, t.paymentTimePaymentSchema_closure0, t.posOverrideItemLogSchema_closure, t.posOverrideItemLogSchema_closure0, t.printActivitySchema_closure, t.printActivitySchema_closure0, t.productPosOverrideV4ItemSchema_closure, t.productPosOverrideV4ItemSchema_closure0, t.promotionSchema_closure, t.promotionSchema_closure0, t.purchaseOrderSchema_closure, t.purchaseOrderSchema_closure0, t.purchaseOrderDeliveryFulfillmentSchema_closure, t.purchaseOrderDeliveryFulfillmentSchema_closure0, t.purchaseOrderDeliveryFulfillmentSkuSchema_closure, t.purchaseOrderDeliveryFulfillmentSkuSchema_closure0, t.purchaseOrderDeliveryOrderSchema_closure, t.purchaseOrderDeliveryOrderSchema_closure0, t.purchaseOrderDeliveryOrderSkuSchema_closure, t.purchaseOrderDeliveryOrderSkuSchema_closure0, t.purchaseOrderItemSchema_closure, t.purchaseOrderItemSchema_closure0, t.purchaseOrderTemplateSchema_closure, t.purchaseOrderTemplateSchema_closure0, t.purchaseOrderTemplateItemSchema_closure, t.purchaseOrderTemplateItemSchema_closure0, t.inventoryV1RecipeSchema_closure, t.inventoryV1RecipeSchema_closure0, t.recommendationCallSchema_closure, t.recommendationCallSchema_closure0, t.recordSchema_closure, t.recordSchema_closure0, t.refundBillSchema_closure, t.refundBillSchema_closure0, t.remoteOrderSchema_closure, t.remoteOrderSchema_closure0, t.remoteOrderAddonFlattenItemSchema_closure, t.remoteOrderAddonFlattenItemSchema_closure0, t.remoteOrderFlattenItemSchema_closure, t.remoteOrderFlattenItemSchema_closure0, t.remoteOrderParentFlattenItemSchema_closure, t.remoteOrderParentFlattenItemSchema_closure0, t.remotePickupOrderSchema_closure, t.remotePickupOrderSchema_closure0, t.remotePickupOrderFlattenItemSchema_closure, t.remotePickupOrderFlattenItemSchema_closure0, t.restaurantSchema_closure, t.restaurantSchema_closure0, t.restaurantFeatureSchema_closure, t.restaurantFeatureSchema_closure0, t.restaurantLocationSchema_closure, t.restaurantLocationSchema_closure0, t.reviewSchema_closure, t.reviewSchema_closure0, t.salePaymentSchema_closure, t.salePaymentSchema_closure0, t.saleTransactionSchema_closure, t.saleTransactionSchema_closure0, t.inventoryV1SkuSchema_closure, t.inventoryV1SkuSchema_closure0, t.slotSchema_closure, t.slotSchema_closure0, t.smsCreditTransactionSchema_closure, t.smsCreditTransactionSchema_closure0, t.staffSchema_closure, t.staffSchema_closure0, t.stockSchema_closure, t.stockSchema_closure0, t.storeBundleSchema_closure, t.storeBundleSchema_closure0, t.storeTransactionSchema_closure, t.storeTransactionSchema_closure0, t.subItemSchema_closure, t.subItemSchema_closure0, t.thEInvoiceSubmissionSchema_closure, t.thEInvoiceSubmissionSchema_closure0, t.timesheetSchema_closure, t.timesheetSchema_closure0, t.timesheetRecordSchema_closure, t.timesheetRecordSchema_closure0, t.titleCollectionSchema_closure, t.titleCollectionSchema_closure0, t._tplOrderSource_closure, t.tplOrderSchema_closure, t.tplOrderSchema_closure0, t._tplSettingSource_closure, t.unitCostHistorySchema_closure, t.unitCostHistorySchema_closure0, t.userSchema_closure, t.userSchema_closure0, t.vnEInvoiceSubmissionSchema_closure, t.vnEInvoiceSubmissionSchema_closure0, t.voucherClaimSchema_closure, t.voucherClaimSchema_closure0, t.voucherClaimRedemptionSchema_closure, t.voucherClaimRedemptionSchema_closure0, t.warehouseLocationSchema_closure, t.warehouseLocationSchema_closure0, t.wastageItemSchema_closure, t.wastageItemSchema_closure0, t.QueryEngine_getSql_closure, t.BaseDatasourceConfigModel_drilledDimensionIds_closure, t.BaseDatasourceConfigModel_metricIds_closure, t.BaseDatasourceConfigModel_toJson_closure, t.BaseDatasourceConfigModel_toJson_closure0, t.BaseDatasourceConfigModel_toJson_closure1, t.BaseDatasourceConfigModel_toJson_closure2, t.BaseDatasourceConfigModel_toJson_closure3, t.BaseDatasourceConfigModel_toJson_closure4, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure0, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure1, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure2, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure3, t.DataSourceDrillConfig_drilledDimensions_closure, t.DataSourceRowColumnConfig_rowIds_closure, t.DataSourceRowColumnConfig_rowIds_closure0, t.DataSourceRowColumnConfig_rowIds_closure2, t.DataSourceRowColumnConfig_rowIds_closure1, t.DataSourceRowColumnConfig_columnIds_closure, t.DataSourceRowColumnConfig_columnIds_closure0, t.DataSourceRowColumnConfig_columnIds_closure1, t.TableDatasourceConfigModel_joinDatasources_closure, t.TableDatasourceConfigModel_toRequests___closure, t.TableDatasourceConfigModel_toRequests_closure0, t.TableDatasourceConfigModel_toJson_closure, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson_closure, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson___closure, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson___closure0, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson____closure, t.JoinDatasourceConfig_JoinDatasourceConfig$fromJson_closure, t.JoinDatasourceConfig_toJson_closure, t.JoinDatasourceCondition_JoinDatasourceCondition$fromJson_closure, t.JoinDatasourceCondition_toJson_closure, t.BaseXYDatasourceConfigModel_joinDatasources_closure, t.BaseXYDatasourceConfigModel_toRequests___closure, t.BaseXYDatasourceConfigModel_toRequests_closure0, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson_closure, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson___closure, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson___closure0, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson____closure, t.getSchemas_closure, t.getVisualizationSchemas_closure, t.sqlResponsesToQueryResponses_closure, t.sqlResponsesToQueryResponses_closure1, t.getQueryRequests_closure, t.getQueryRequests_closure0, t.getQueryRequests_closure1, t.getQueryRequests_closure2, t.getQueryRequests_closure3, t.getQueryRequests_closure4, t.getQueryRequests_closure5, t.getQueryRequests_closure6, t.getQueryRequests_closure7, t.getQueryRequests_closure8, t.getQueryRequests_closure9]), a(t.Closure2Args, [t.ConstantMap_map_closure, t.Primitives_functionNoSuchMethod_closure, t.JsLinkedHashMap_addAll_closure, t.initHooks_closure0, t.LinkedHashMap_LinkedHashMap$from_closure, t.MapBase_mapToString_closure, t._JsonStringifier_writeMap_closure, t.NoSuchMethodError_toString_closure, t.DateFormat__fieldConstructors_closure, t.DateFormat__fieldConstructors_closure0, t.DateFormat__fieldConstructors_closure1, t.Jiffy__parseMap_closure, t.Canonical_fromJson_closure, t.Join_getConditionsSql_closure, t.QueryRequest_closure, t.QueryRequest_closure0, t.QueryRequest__getPlainSqlColumns_closure2, t.QueryRequest__getSqlJoins_closure, t.QueryRequest__getRollupSelect_closure, t.QueryRequest__getRollupSelect_closure1, t.QueryRequest__getRollupSelect_closure5, t.QueryRequest__getSqlSelectSorts_closure0, t.QueryRequest__getSortedLimitTable_closure, t.QueryRequest__getFillGapTable_closure, t.QueryRequest__getFillGapTable_closure1, t.QueryRequest__getFullTable_closure0, t.VisualizationSchema_closure, t.DataSourceDrillConfig__availableIds_closure, t.DataSourceRowColumnConfig__availableIds_closure, t.DataSourceRowColumnConfig__availableIds_closure0, t.TableDatasourceConfigModel_drilledDimensions_closure, t.TableDatasourceConfigModel_toRequests_closure, t.TableDatasourceConfigModel_toRequests__closure0, t.TableDatasourceConfigModel_toRequests__closure, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson__closure, t.BaseXYDatasourceConfigModel_toRequests_closure, t.BaseXYDatasourceConfigModel_toRequests__closure0, t.BaseXYDatasourceConfigModel_toRequests__closure, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson__closure, t.sqlResponsesToQueryResponses_closure0]), n(t.ConstantStringMap, t.ConstantMap), n(t.NullError, t.TypeError), a(t.TearOffClosure, [t.StaticClosure, t.BoundClosure]), n(t.MapBase, t.MapMixin), a(t.MapBase, [t.JsLinkedHashMap, t._JsonMap]), a(t.IterableBase, [t._AllMatchesIterable, t._SyncStarIterable]), n(t.NativeTypedArray, t.NativeTypedData), n(t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin, t.NativeTypedArray), n(t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin), n(t.NativeTypedArrayOfInt, t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin), a(t.NativeTypedArrayOfInt, [t.NativeUint16List, t.NativeUint32List, t.NativeUint8List]), n(t._TypeError, t._Error), a(t.JsLinkedHashMap, [t._LinkedIdentityHashMap, t._LinkedCustomHashMap]), n(t._SetBase, t.__SetBase_Object_SetMixin), n(t._LinkedHashSet, t._SetBase), a(t.Codec, [t.Encoding, t.JsonCodec]), a(t.Encoding, [t.AsciiCodec, t.Utf8Codec]), n(t.Converter, t.StreamTransformerBase), a(t.Converter, [t._UnicodeSubsetDecoder, t.JsonEncoder, t.JsonDecoder, t.Utf8Encoder]), n(t.AsciiDecoder, t._UnicodeSubsetDecoder), n(t.JsonCyclicError, t.JsonUnsupportedObjectError), n(t._JsonStringStringifier, t._JsonStringifier), a(t.ArgumentError, [t.RangeError, t.IndexError]), n(t.DigestSink, t.Sink), n(t._Sha1Sink, t.HashSink), a(t._DateFormatField, [t._DateFormatLiteralField, t._DateFormatQuotedField, t._DateFormatPatternField]), a(t._Enum, [t.StartOfWeek, t.Units, t.SOURCE_TYPE, t.MERGE_FILTER_TYPE, t.FIELD_ROLE, t.SCHEMA_NAME, t.DATA_TYPE, t.AGGREGATION_TYPE, t.COMPARISON_OPERATOR, t.DIMENSION_OPTION, t.TIME_FORMATTER, t.FORMATTER_TYPE, t.PERIOD_TYPE, t.SORT_TYPE, t.PermissionType, t.INDEX_METHOD, t.FIELD_TYPE, t.ChartType]), a(t.Locale, [t.ArLyLocale, t.ArSaMaDzKwTnLocale, t.AzLocale, t.BnLocale, t.DeLocale, t.EnLocale, t.EsLocale, t.FaLocale, t.FrLocale, t.HiLocale, t.IdLocale, t.ItLocale, t.JaLocale, t.KoLocale, t.NbLocale, t.NlLocale, t.PlLocale, t.PtLocale, t.RuLocale, t.SvLocale, t.ThLocale, t.TrLocale, t.UkLocale, t.ZhCnLocale, t.ZhLocale]), a(t.NodeJsError, [t.JsAssertionError, t.JsRangeError, t.JsReferenceError, t.JsSyntaxError, t.JsTypeError, t.JsSystemError]), a(t.Socket, [t.TTYReadStream, t.TTYWriteStream]), a(t.Field, [t._NumericField, t._TimestampField, t._BoolField, t._StringField]), a(t.QueryRequestComparisonTarget, [t._QueryRequestComparisonTargetValue, t._QueryRequestComparisonTargetVariable]), a(t.QueryRequestCommonField, [t.QueryRequestDimension, t.QueryRequestMetric, t.QueryRequestFilter, t.QueryRequestSort]), a(t.Closure0Args, [t.QueryRequestDimension_generateTimestampArraySql_closure, t.QueryRequestDimension_generateTimestampArraySql_closure0, t.QueryRequest__getSqlFilters__closure]), a(t.BaseDatasourceConfigModel, [t._CircularDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig, t.ScorecardDatasourceConfigModel, t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig, t._JoinDatasourceConfig_BaseDatasourceConfigModel_DataSourceRowColumnConfig, t._BaseXYDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig]), n(t.CircularDatasourceConfigModel, t._CircularDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig), n(t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig_DataSourceDrillConfig, t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig), n(t.TableDatasourceConfigModel, t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig_DataSourceDrillConfig), n(t.JoinDatasourceConfig, t._JoinDatasourceConfig_BaseDatasourceConfigModel_DataSourceRowColumnConfig), n(t.BaseXYDatasourceConfigModel, t._BaseXYDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig), n(t._IntBuffer, t.TypedDataBuffer), n(t.Uint8Buffer, t._IntBuffer), e(t.UnmodifiableListBase, t.UnmodifiableListMixin), e(t.__CastListBase__CastIterableBase_ListMixin, t.ListMixin), e(t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin, t.ListMixin), e(t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, t.FixedLengthListMixin), e(t._ListBase_Object_ListMixin, t.ListMixin), e(t._UnmodifiableMapView_MapView__UnmodifiableMapMixin, t._UnmodifiableMapMixin), e(t.__SetBase_Object_SetMixin, t.SetMixin), e(t._CircularDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig, t.DataSourceDrillConfig), e(t._JoinDatasourceConfig_BaseDatasourceConfigModel_DataSourceRowColumnConfig, t.DataSourceRowColumnConfig), e(t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig, t.DataSourceRowColumnConfig), e(t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig_DataSourceDrillConfig, t.DataSourceDrillConfig), e(t._BaseXYDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig, t.DataSourceDrillConfig);
|
|
11130
11145
|
}();
|
|
11131
11146
|
var L = {
|
|
11132
11147
|
typeUniverse: { eC: /* @__PURE__ */ new Map(), tR: {}, eT: {}, tPV: {}, sEA: [] },
|
|
@@ -11431,7 +11446,7 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
|
|
|
11431
11446
|
n.getTag = l, n.prototypeForTag = p;
|
|
11432
11447
|
}, u.C_JS_CONST3 = function(n) {
|
|
11433
11448
|
return n;
|
|
11434
|
-
}, u.C_JsonCodec = new t.JsonCodec(), u.C_OutOfMemoryError = new t.OutOfMemoryError(), u.C_Utf8Codec = new t.Utf8Codec(), u.C_Utf8Encoder = new t.Utf8Encoder(), u.C__Required = new t._Required(), u.DATA_TYPE_0 = new t.DATA_TYPE(0, "STRING"), u.DATA_TYPE_1 = new t.DATA_TYPE(1, "TIMESTAMP"), u.DATA_TYPE_2 = new t.DATA_TYPE(2, "BOOL"), u.DATA_TYPE_3 = new t.DATA_TYPE(3, "NUMERIC"), u.DIMENSION_OPTION_0 = new t.DIMENSION_OPTION(0, "DATE_TIME"), u.DIMENSION_OPTION_1 = new t.DIMENSION_OPTION(1, "HOUR"), u.DIMENSION_OPTION_10 = new t.DIMENSION_OPTION(10, "YEAR"), u.DIMENSION_OPTION_11 = new t.DIMENSION_OPTION(11, "YEAR_MONTH_DAY"), u.DIMENSION_OPTION_2 = new t.DIMENSION_OPTION(2, "DAY"), u.DIMENSION_OPTION_3 = new t.DIMENSION_OPTION(3, "WEEK"), u.DIMENSION_OPTION_4 = new t.DIMENSION_OPTION(4, "MONTH"), u.DIMENSION_OPTION_5 = new t.DIMENSION_OPTION(5, "TIME_OF_DAY"), u.DIMENSION_OPTION_6 = new t.DIMENSION_OPTION(6, "HOUR_OF_DAY"), u.DIMENSION_OPTION_7 = new t.DIMENSION_OPTION(7, "DAY_OF_WEEK"), u.DIMENSION_OPTION_8 = new t.DIMENSION_OPTION(8, "DAY_OF_MONTH"), u.DIMENSION_OPTION_9 = new t.DIMENSION_OPTION(9, "MONTH_OF_YEAR"), u.Duration_0 = new t.Duration(0), u.Duration_1000 = new t.Duration(1e3), u.Duration_86400000000 = new t.Duration(864e8), u.FIELD_ROLE_0 = new t.FIELD_ROLE(0, "time"), u.FIELD_ROLE_1 = new t.FIELD_ROLE(1, "measure"), u.FIELD_ROLE_2 = new t.FIELD_ROLE(2, "signedMeasure"), u.FIELD_ROLE_3 = new t.FIELD_ROLE(3, "allocated"), u.FIELD_ROLE_4 = new t.FIELD_ROLE(4, "identityLabel"), u.FIELD_ROLE_5 = new t.FIELD_ROLE(5, "identityId"), u.FIELD_ROLE_6 = new t.FIELD_ROLE(6, "image"), u.FIELD_ROLE_7 = new t.FIELD_ROLE(7, "latitude"), u.FIELD_ROLE_8 = new t.FIELD_ROLE(8, "longitude"), u.FIELD_ROLE_9 = new t.FIELD_ROLE(9, "region"), u.FIELD_TYPE_0 = new t.FIELD_TYPE(0, "DIMENSION"), u.FIELD_TYPE_1 = new t.FIELD_TYPE(1, "METRIC"), u.JsonDecoder_null = new t.JsonDecoder(null), u.JsonEncoder_null = new t.JsonEncoder(null), u.List_3US = t._setArrayType(e(["S", "M", "T", "W", "T", "F", "S"]), d.JSArray_String), u.List_6xs = t._setArrayType(e(["Before Christ", "Anno Domini"]), d.JSArray_String), u.INDEX_METHOD_0 = new t.INDEX_METHOD(0, "BTREE"), u.INDEX_METHOD_1 = new t.INDEX_METHOD(1, "HASH"), u.INDEX_METHOD_2 = new t.INDEX_METHOD(2, "GIST"), u.INDEX_METHOD_3 = new t.INDEX_METHOD(3, "SPGIST"), u.INDEX_METHOD_4 = new t.INDEX_METHOD(4, "BRIN"), u.INDEX_METHOD_5 = new t.INDEX_METHOD(5, "GIN"), u.List_88s = t._setArrayType(e([u.INDEX_METHOD_0, u.INDEX_METHOD_1, u.INDEX_METHOD_2, u.INDEX_METHOD_3, u.INDEX_METHOD_4, u.INDEX_METHOD_5]), t.findType("JSArray<INDEX_METHOD>")), u.List_AM_PM = t._setArrayType(e(["AM", "PM"]), d.JSArray_String), u.List_BC_AD = t._setArrayType(e(["BC", "AD"]), d.JSArray_String), u.MERGE_FILTER_TYPE_0 = new t.MERGE_FILTER_TYPE(0, "dates"), u.MERGE_FILTER_TYPE_1 = new t.MERGE_FILTER_TYPE(1, "dateRange"), u.List_EfK = t._setArrayType(e([u.MERGE_FILTER_TYPE_0, u.MERGE_FILTER_TYPE_1]), t.findType("JSArray<MERGE_FILTER_TYPE>")), u.FORMATTER_TYPE_0 = new t.FORMATTER_TYPE(0, "HOUR"), u.FORMATTER_TYPE_1 = new t.FORMATTER_TYPE(1, "MINUTE"), u.FORMATTER_TYPE_2 = new t.FORMATTER_TYPE(2, "SECOND"), u.FORMATTER_TYPE_3 = new t.FORMATTER_TYPE(3, "HOUR_NO_DAY"), u.FORMATTER_TYPE_4 = new t.FORMATTER_TYPE(4, "MINUTE_NO_DAY"), u.FORMATTER_TYPE_5 = new t.FORMATTER_TYPE(5, "SECOND_NO_DAY"), u.FORMATTER_TYPE_6 = new t.FORMATTER_TYPE(6, "COMPACT_HOUR_MINUTE"), u.FORMATTER_TYPE_7 = new t.FORMATTER_TYPE(7, "PERCENT"), u.FORMATTER_TYPE_8 = new t.FORMATTER_TYPE(8, "IMAGE"), u.FORMATTER_TYPE_9 = new t.FORMATTER_TYPE(9, "CURRENCY"), u.FORMATTER_TYPE_10 = new t.FORMATTER_TYPE(10, "HH_MM"), u.FORMATTER_TYPE_11 = new t.FORMATTER_TYPE(11, "DATE_RANGE_HH_MM"), u.List_IoM = t._setArrayType(e([u.FORMATTER_TYPE_0, u.FORMATTER_TYPE_1, u.FORMATTER_TYPE_2, u.FORMATTER_TYPE_3, u.FORMATTER_TYPE_4, u.FORMATTER_TYPE_5, u.FORMATTER_TYPE_6, u.FORMATTER_TYPE_7, u.FORMATTER_TYPE_8, u.FORMATTER_TYPE_9, u.FORMATTER_TYPE_10, u.FORMATTER_TYPE_11]), d.JSArray_FORMATTER_TYPE), u.COMPARISON_OPERATOR_9 = new t.COMPARISON_OPERATOR(9, "AND"), u.List_LO4 = t._setArrayType(e([u.COMPARISON_OPERATOR_0, u.COMPARISON_OPERATOR_1, u.COMPARISON_OPERATOR_2, u.COMPARISON_OPERATOR_3, u.COMPARISON_OPERATOR_4, u.COMPARISON_OPERATOR_5, u.COMPARISON_OPERATOR_6, u.COMPARISON_OPERATOR_7, u.COMPARISON_OPERATOR_8, u.COMPARISON_OPERATOR_9, u.COMPARISON_OPERATOR_10]), d.JSArray_COMPARISON_OPERATOR), u.List_Moq = t._setArrayType(e([u.FIELD_ROLE_0, u.FIELD_ROLE_1, u.FIELD_ROLE_2, u.FIELD_ROLE_3, u.FIELD_ROLE_4, u.FIELD_ROLE_5, u.FIELD_ROLE_6, u.FIELD_ROLE_7, u.FIELD_ROLE_8, u.FIELD_ROLE_9]), t.findType("JSArray<FIELD_ROLE>")), u.PERIOD_TYPE_0 = new t.PERIOD_TYPE(0, "MTD"), u.List_PERIOD_TYPE_0 = t._setArrayType(e([u.PERIOD_TYPE_0]), t.findType("JSArray<PERIOD_TYPE>")), u.SORT_TYPE_0 = new t.SORT_TYPE(0, "ASC"), u.SORT_TYPE_1 = new t.SORT_TYPE(1, "DESC"), u.List_SORT_TYPE_0_SORT_TYPE_1 = t._setArrayType(e([u.SORT_TYPE_0, u.SORT_TYPE_1]), t.findType("JSArray<SORT_TYPE>")), u.ChartType_0 = new t.ChartType(0, "CIRCULAR"), u.ChartType_1 = new t.ChartType(1, "TABLE"), u.ChartType_2 = new t.ChartType(2, "LIST"), u.ChartType_3 = new t.ChartType(3, "SCORECARD"), u.ChartType_4 = new t.ChartType(4, "LINECHART"), u.ChartType_5 = new t.ChartType(5, "BARCHART"), u.ChartType_6 = new t.ChartType(6, "CLUSTEREDSTACKBARCHART"), u.ChartType_7 = new t.ChartType(7, "COLUMNCHART"), u.ChartType_8 = new t.ChartType(8, "STACKLINECHART"), u.ChartType_9 = new t.ChartType(9, "STACKBARCHART"), u.ChartType_10 = new t.ChartType(10, "STACKCOLUMNCHART"), u.ChartType_11 = new t.ChartType(11, "SPACER"), u.List_W3w = t._setArrayType(e([u.ChartType_0, u.ChartType_1, u.ChartType_2, u.ChartType_3, u.ChartType_4, u.ChartType_5, u.ChartType_6, u.ChartType_7, u.ChartType_8, u.ChartType_9, u.ChartType_10, u.ChartType_11]), t.findType("JSArray<ChartType>")), u.List_cIc = t._setArrayType(e(["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]), d.JSArray_String), u.TIME_FORMATTER_0 = new t.TIME_FORMATTER(0, "HOUR"), u.TIME_FORMATTER_1 = new t.TIME_FORMATTER(1, "MINUTE"), u.TIME_FORMATTER_2 = new t.TIME_FORMATTER(2, "SECOND"), u.TIME_FORMATTER_3 = new t.TIME_FORMATTER(3, "HOUR_NO_DAY"), u.TIME_FORMATTER_4 = new t.TIME_FORMATTER(4, "MINUTE_NO_DAY"), u.TIME_FORMATTER_5 = new t.TIME_FORMATTER(5, "SECOND_NO_DAY"), u.List_cWd = t._setArrayType(e([u.TIME_FORMATTER_0, u.TIME_FORMATTER_1, u.TIME_FORMATTER_2, u.TIME_FORMATTER_3, u.TIME_FORMATTER_4, u.TIME_FORMATTER_5]), d.JSArray_TIME_FORMATTER), u.List_empty2 = t._setArrayType(e([]), d.JSArray_QueryRequestDimension), u.List_empty = t._setArrayType(e([]), d.JSArray_QueryRequestFilter), u.List_empty0 = t._setArrayType(e([]), d.JSArray_Split), u.List_empty1 = t._setArrayType(e([]), d.JSArray_String), u.List_empty3 = t._setArrayType(e([]), d.JSArray_dynamic), u.List_gc6 = t._setArrayType(e(["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]), d.JSArray_String), u.List_h8w = t._setArrayType(e(["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]), d.JSArray_String), u.List_iAW = t._setArrayType(e([u.AGGREGATION_TYPE_0, u.AGGREGATION_TYPE_1, u.AGGREGATION_TYPE_2, u.AGGREGATION_TYPE_3, u.AGGREGATION_TYPE_4, u.AGGREGATION_TYPE_5, u.AGGREGATION_TYPE_6, u.AGGREGATION_TYPE_7, u.AGGREGATION_TYPE_8, u.AGGREGATION_TYPE_9, u.AGGREGATION_TYPE_10, u.AGGREGATION_TYPE_11, u.AGGREGATION_TYPE_12, u.AGGREGATION_TYPE_13]), d.JSArray_AGGREGATION_TYPE), u.List_k6a = t._setArrayType(e([u.DATA_TYPE_0, u.DATA_TYPE_1, u.DATA_TYPE_2, u.DATA_TYPE_3]), d.JSArray_DATA_TYPE), u.SCHEMA_NAME_0 = new t.SCHEMA_NAME(0, "BILL"), u.SCHEMA_NAME_1 = new t.SCHEMA_NAME(1, "COMPLETE_TIME_BILL"), u.SCHEMA_NAME_2 = new t.SCHEMA_NAME(2, "BUSINESS"), u.SCHEMA_NAME_3 = new t.SCHEMA_NAME(3, "COUNTER"), u.SCHEMA_NAME_4 = new t.SCHEMA_NAME(4, "DRAWER"), u.SCHEMA_NAME_5 = new t.SCHEMA_NAME(5, "FLATTEN_ITEM"), u.SCHEMA_NAME_6 = new t.SCHEMA_NAME(6, "PARENT_FLATTEN_ITEM"), u.SCHEMA_NAME_7 = new t.SCHEMA_NAME(7, "ADDON_FLATTEN_ITEM"), u.SCHEMA_NAME_8 = new t.SCHEMA_NAME(8, "ITEM"), u.SCHEMA_NAME_9 = new t.SCHEMA_NAME(9, "SUB_ITEM"), u.SCHEMA_NAME_10 = new t.SCHEMA_NAME(10, "PAYMENT"), u.SCHEMA_NAME_11 = new t.SCHEMA_NAME(11, "PAYMENT_TIME_PAYMENT"), u.SCHEMA_NAME_12 = new t.SCHEMA_NAME(12, "CHARGE"), u.SCHEMA_NAME_13 = new t.SCHEMA_NAME(13, "RECORD"), u.SCHEMA_NAME_14 = new t.SCHEMA_NAME(14, "RESTAURANT"), u.SCHEMA_NAME_15 = new t.SCHEMA_NAME(15, "RESTAURANT_FEATURE"), u.SCHEMA_NAME_16 = new t.SCHEMA_NAME(16, "SLOT"), u.SCHEMA_NAME_17 = new t.SCHEMA_NAME(17, "STAFF"), u.SCHEMA_NAME_18 = new t.SCHEMA_NAME(18, "TIMESHEET"), u.SCHEMA_NAME_19 = new t.SCHEMA_NAME(19, "TIMESHEET_RECORD"), u.SCHEMA_NAME_20 = new t.SCHEMA_NAME(20, "DISCOUNT"), u.SCHEMA_NAME_21 = new t.SCHEMA_NAME(21, "ADJUSTMENT"), u.SCHEMA_NAME_22 = new t.SCHEMA_NAME(22, "INVENTORY_ADJUSTMENT"), u.SCHEMA_NAME_23 = new t.SCHEMA_NAME(23, "INVENTORY_ADJUSTMENT_SKU"), u.SCHEMA_NAME_24 = new t.SCHEMA_NAME(24, "INVENTORY_ADJUSTMENT_PHYSICAL_SKU"), u.SCHEMA_NAME_25 = new t.SCHEMA_NAME(25, "CLOSING_SKU"), u.SCHEMA_NAME_26 = new t.SCHEMA_NAME(26, "CLOSING_DRAFT"), u.SCHEMA_NAME_27 = new t.SCHEMA_NAME(27, "CLOSING_DRAFT_SKU"), u.SCHEMA_NAME_28 = new t.SCHEMA_NAME(28, "PURCHASE_ORDER"), u.SCHEMA_NAME_29 = new t.SCHEMA_NAME(29, "PURCHASE_ORDER_ITEM"), u.SCHEMA_NAME_30 = new t.SCHEMA_NAME(30, "PURCHASE_ORDER_TEMPLATE"), u.SCHEMA_NAME_31 = new t.SCHEMA_NAME(31, "PURCHASE_ORDER_TEMPLATE_ITEM"), u.SCHEMA_NAME_32 = new t.SCHEMA_NAME(32, "PURCHASE_ORDER_DELIVERY_ORDER"), u.SCHEMA_NAME_33 = new t.SCHEMA_NAME(33, "PURCHASE_ORDER_DELIVERY_FULFILLMENT"), u.SCHEMA_NAME_34 = new t.SCHEMA_NAME(34, "PURCHASE_ORDER_DELIVERY_ORDER_SKU"), u.SCHEMA_NAME_35 = new t.SCHEMA_NAME(35, "PURCHASE_ORDER_DELIVERY_FULFILLMENT_SKU"), u.SCHEMA_NAME_36 = new t.SCHEMA_NAME(36, "INTERNAL_PURCHASE_ORDER"), u.SCHEMA_NAME_37 = new t.SCHEMA_NAME(37, "INTERNAL_PURCHASE_ORDER_ITEM"), u.SCHEMA_NAME_38 = new t.SCHEMA_NAME(38, "INTERNAL_PURCHASE_ORDER_DELIVERY_ORDER"), u.SCHEMA_NAME_39 = new t.SCHEMA_NAME(39, "INTERNAL_PURCHASE_ORDER_DELIVERY_FULFILLMENT"), u.SCHEMA_NAME_40 = new t.SCHEMA_NAME(40, "INTERNAL_PURCHASE_ORDER_DELIVERY_ORDER_SKU"), u.SCHEMA_NAME_41 = new t.SCHEMA_NAME(41, "INTERNAL_PURCHASE_ORDER_DELIVERY_FULFILLMENT_SKU"), u.SCHEMA_NAME_42 = new t.SCHEMA_NAME(42, "VOUCHER_CLAIM"), u.SCHEMA_NAME_43 = new t.SCHEMA_NAME(43, "VOUCHER_CLAIM_REDEMPTION"), u.SCHEMA_NAME_44 = new t.SCHEMA_NAME(44, "USER"), u.SCHEMA_NAME_45 = new t.SCHEMA_NAME(45, "MEMBER"), u.SCHEMA_NAME_46 = new t.SCHEMA_NAME(46, "MEMBER_V2"), u.SCHEMA_NAME_47 = new t.SCHEMA_NAME(47, "INVENTORY_WAREHOUSE_LOCATION"), u.SCHEMA_NAME_48 = new t.SCHEMA_NAME(48, "INVENTORY_RESTAURANT_LOCATION"), u.SCHEMA_NAME_49 = new t.SCHEMA_NAME(49, "MEMBER_STORE_PURCHASE"), u.SCHEMA_NAME_50 = new t.SCHEMA_NAME(50, "MEMBER_STORE_PURCHASE_PAYMENT"), u.SCHEMA_NAME_51 = new t.SCHEMA_NAME(51, "MEMBER_TITLE"), u.SCHEMA_NAME_52 = new t.SCHEMA_NAME(52, "MEMBERSHIP"), u.SCHEMA_NAME_53 = new t.SCHEMA_NAME(53, "MEMBERSHIP_TITLE"), u.SCHEMA_NAME_54 = new t.SCHEMA_NAME(54, "CREDIT_TRANSACTION"), u.SCHEMA_NAME_55 = new t.SCHEMA_NAME(55, "MENU_V3_GROUP"), u.SCHEMA_NAME_56 = new t.SCHEMA_NAME(56, "MENU_V4_GROUP"), u.SCHEMA_NAME_57 = new t.SCHEMA_NAME(57, "MENU_V3_SKU"), u.SCHEMA_NAME_58 = new t.SCHEMA_NAME(58, "MENU_V4_SKU"), u.SCHEMA_NAME_59 = new t.SCHEMA_NAME(59, "MENU_V3_ITEM"), u.SCHEMA_NAME_60 = new t.SCHEMA_NAME(60, "MENU_V4_ITEM"), u.SCHEMA_NAME_61 = new t.SCHEMA_NAME(61, "MENU_V4_CATALOG_ITEM"), u.SCHEMA_NAME_62 = new t.SCHEMA_NAME(62, "STOCK"), u.SCHEMA_NAME_63 = new t.SCHEMA_NAME(63, "REVIEW"), u.SCHEMA_NAME_64 = new t.SCHEMA_NAME(64, "CAMPAIGN"), u.SCHEMA_NAME_65 = new t.SCHEMA_NAME(65, "COLLECTIBLE_CONFIG"), u.SCHEMA_NAME_66 = new t.SCHEMA_NAME(66, "COLLECTIBLE_TRANSACTION"), u.SCHEMA_NAME_67 = new t.SCHEMA_NAME(67, "CAMPAIGN_TIER"), u.SCHEMA_NAME_68 = new t.SCHEMA_NAME(68, "STORE_TRANSACTION"), u.SCHEMA_NAME_69 = new t.SCHEMA_NAME(69, "STORE_BUNDLE"), u.SCHEMA_NAME_70 = new t.SCHEMA_NAME(70, "COLLECTIBLE_COLLECTION"), u.SCHEMA_NAME_71 = new t.SCHEMA_NAME(71, "KITCHEN_STATION"), u.SCHEMA_NAME_72 = new t.SCHEMA_NAME(72, "REFUND_BILL"), u.SCHEMA_NAME_73 = new t.SCHEMA_NAME(73, "MENU_V4_ITEM_INVENTORY_BINDING"), u.SCHEMA_NAME_74 = new t.SCHEMA_NAME(74, "INVENTORY_V1_FLATTEN_INVENTORY"), u.SCHEMA_NAME_75 = new t.SCHEMA_NAME(75, "INVENTORY_V1_RECIPE"), u.SCHEMA_NAME_76 = new t.SCHEMA_NAME(76, "ITEM_MOVEMENT"), u.SCHEMA_NAME_77 = new t.SCHEMA_NAME(77, "UNIT_COST_HISTORY"), u.SCHEMA_NAME_78 = new t.SCHEMA_NAME(78, "DS_BILL_ITEM"), u.SCHEMA_NAME_79 = new t.SCHEMA_NAME(79, "DS_MENU_PRODUCT"), u.SCHEMA_NAME_80 = new t.SCHEMA_NAME(80, "DS_MENU_PRODUCT_2"), u.SCHEMA_NAME_81 = new t.SCHEMA_NAME(81, "DS_BILL_ITEM_PRODUCT"), u.SCHEMA_NAME_82 = new t.SCHEMA_NAME(82, "RECOMMENDATION_CALL"), u.SCHEMA_NAME_83 = new t.SCHEMA_NAME(83, "VN_E_INVOICE_SUBMISSION"), u.SCHEMA_NAME_84 = new t.SCHEMA_NAME(84, "DAILY_FORECAST_SALE"), u.SCHEMA_NAME_85 = new t.SCHEMA_NAME(85, "HOURLY_FORECAST_SALE"), u.SCHEMA_NAME_86 = new t.SCHEMA_NAME(86, "CHANGE_PAYMENT_ACTIVITY"), u.SCHEMA_NAME_87 = new t.SCHEMA_NAME(87, "SALE_PAYMENT"), u.SCHEMA_NAME_88 = new t.SCHEMA_NAME(88, "SALE_TRANSACTION"), u.SCHEMA_NAME_89 = new t.SCHEMA_NAME(89, "POS_OVERRIDE_ITEM_LOG"), u.SCHEMA_NAME_90 = new t.SCHEMA_NAME(90, "WASTAGE_ITEM"), u.SCHEMA_NAME_91 = new t.SCHEMA_NAME(91, "INVENTORY_SKU_BALANCE"), u.SCHEMA_NAME_92 = new t.SCHEMA_NAME(92, "INVENTORY_V1_SKU"), u.SCHEMA_NAME_93 = new t.SCHEMA_NAME(93, "PROMOTION"), u.SCHEMA_NAME_94 = new t.SCHEMA_NAME(94, "PRODUCT_POS_OVERRIDE_V4_ITEM"), u.SCHEMA_NAME_95 = new t.SCHEMA_NAME(95, "SMS_CREDIT_TRANSACTION"), u.SCHEMA_NAME_96 = new t.SCHEMA_NAME(96, "REMOTE_ORDER"), u.SCHEMA_NAME_97 = new t.SCHEMA_NAME(97, "REMOTE_ORDER_FLATTEN_ITEM"), u.SCHEMA_NAME_98 = new t.SCHEMA_NAME(98, "TPL_GRABFOOD_ORDER"), u.SCHEMA_NAME_99 = new t.SCHEMA_NAME(99, "TPL_FOODPANDA_ORDER"), u.SCHEMA_NAME_100 = new t.SCHEMA_NAME(100, "TPL_SHOPEE_FOOD_ORDER"), u.SCHEMA_NAME_101 = new t.SCHEMA_NAME(101, "TPL_ORDER"), u.SCHEMA_NAME_102 = new t.SCHEMA_NAME(102, "TPL_GRABFOOD_SETTING"), u.SCHEMA_NAME_103 = new t.SCHEMA_NAME(103, "TPL_FOODPANDA_SETTING"), u.SCHEMA_NAME_104 = new t.SCHEMA_NAME(104, "TPL_SHOPEE_FOOD_SETTING"), u.SCHEMA_NAME_105 = new t.SCHEMA_NAME(105, "REMOTE_ORDER_ADDON_FLATTEN_ITEM"), u.SCHEMA_NAME_106 = new t.SCHEMA_NAME(106, "REMOTE_ORDER_PARENT_FLATTEN_ITEM"), u.SCHEMA_NAME_107 = new t.SCHEMA_NAME(107, "REMOTE_PICKUP_ORDER"), u.SCHEMA_NAME_108 = new t.SCHEMA_NAME(108, "REMOTE_PICKUP_ORDER_FLATTEN_ITEM"), u.SCHEMA_NAME_109 = new t.SCHEMA_NAME(109, "MY_E_INVOICE_SUBMISSION"), u.SCHEMA_NAME_110 = new t.SCHEMA_NAME(110, "INTERNAL_MY_E_INVOICE_SUBMISSION"), u.SCHEMA_NAME_111 = new t.SCHEMA_NAME(111, "INTERNAL_MY_E_INVOICE_SUBMISSION_DOCUMENT"), u.SCHEMA_NAME_112 = new t.SCHEMA_NAME(112, "INTERNAL_MY_E_INVOICE_DOCUMENT"), u.SCHEMA_NAME_113 = new t.SCHEMA_NAME(113, "TITLE_COLLECTION"), u.SCHEMA_NAME_114 = new t.SCHEMA_NAME(114, "TH_E_INVOICE_SUBMISSION"), u.SCHEMA_NAME_115 = new t.SCHEMA_NAME(115, "PRINT_ACTIVITY"), u.SCHEMA_NAME_116 = new t.SCHEMA_NAME(116, "DEPOSIT"), u.SCHEMA_NAME_117 = new t.SCHEMA_NAME(117, "DEPOSIT_TRANSACTION"), u.SCHEMA_NAME_118 = new t.SCHEMA_NAME(118, "BILL_AUDIT_LOG"), u.List_kuc = t._setArrayType(e([u.SCHEMA_NAME_0, u.SCHEMA_NAME_1, u.SCHEMA_NAME_2, u.SCHEMA_NAME_3, u.SCHEMA_NAME_4, u.SCHEMA_NAME_5, u.SCHEMA_NAME_6, u.SCHEMA_NAME_7, u.SCHEMA_NAME_8, u.SCHEMA_NAME_9, u.SCHEMA_NAME_10, u.SCHEMA_NAME_11, u.SCHEMA_NAME_12, u.SCHEMA_NAME_13, u.SCHEMA_NAME_14, u.SCHEMA_NAME_15, u.SCHEMA_NAME_16, u.SCHEMA_NAME_17, u.SCHEMA_NAME_18, u.SCHEMA_NAME_19, u.SCHEMA_NAME_20, u.SCHEMA_NAME_21, u.SCHEMA_NAME_22, u.SCHEMA_NAME_23, u.SCHEMA_NAME_24, u.SCHEMA_NAME_25, u.SCHEMA_NAME_26, u.SCHEMA_NAME_27, u.SCHEMA_NAME_28, u.SCHEMA_NAME_29, u.SCHEMA_NAME_30, u.SCHEMA_NAME_31, u.SCHEMA_NAME_32, u.SCHEMA_NAME_33, u.SCHEMA_NAME_34, u.SCHEMA_NAME_35, u.SCHEMA_NAME_36, u.SCHEMA_NAME_37, u.SCHEMA_NAME_38, u.SCHEMA_NAME_39, u.SCHEMA_NAME_40, u.SCHEMA_NAME_41, u.SCHEMA_NAME_42, u.SCHEMA_NAME_43, u.SCHEMA_NAME_44, u.SCHEMA_NAME_45, u.SCHEMA_NAME_46, u.SCHEMA_NAME_47, u.SCHEMA_NAME_48, u.SCHEMA_NAME_49, u.SCHEMA_NAME_50, u.SCHEMA_NAME_51, u.SCHEMA_NAME_52, u.SCHEMA_NAME_53, u.SCHEMA_NAME_54, u.SCHEMA_NAME_55, u.SCHEMA_NAME_56, u.SCHEMA_NAME_57, u.SCHEMA_NAME_58, u.SCHEMA_NAME_59, u.SCHEMA_NAME_60, u.SCHEMA_NAME_61, u.SCHEMA_NAME_62, u.SCHEMA_NAME_63, u.SCHEMA_NAME_64, u.SCHEMA_NAME_65, u.SCHEMA_NAME_66, u.SCHEMA_NAME_67, u.SCHEMA_NAME_68, u.SCHEMA_NAME_69, u.SCHEMA_NAME_70, u.SCHEMA_NAME_71, u.SCHEMA_NAME_72, u.SCHEMA_NAME_73, u.SCHEMA_NAME_74, u.SCHEMA_NAME_75, u.SCHEMA_NAME_76, u.SCHEMA_NAME_77, u.SCHEMA_NAME_78, u.SCHEMA_NAME_79, u.SCHEMA_NAME_80, u.SCHEMA_NAME_81, u.SCHEMA_NAME_82, u.SCHEMA_NAME_83, u.SCHEMA_NAME_84, u.SCHEMA_NAME_85, u.SCHEMA_NAME_86, u.SCHEMA_NAME_87, u.SCHEMA_NAME_88, u.SCHEMA_NAME_89, u.SCHEMA_NAME_90, u.SCHEMA_NAME_91, u.SCHEMA_NAME_92, u.SCHEMA_NAME_93, u.SCHEMA_NAME_94, u.SCHEMA_NAME_95, u.SCHEMA_NAME_96, u.SCHEMA_NAME_97, u.SCHEMA_NAME_98, u.SCHEMA_NAME_99, u.SCHEMA_NAME_100, u.SCHEMA_NAME_101, u.SCHEMA_NAME_102, u.SCHEMA_NAME_103, u.SCHEMA_NAME_104, u.SCHEMA_NAME_105, u.SCHEMA_NAME_106, u.SCHEMA_NAME_107, u.SCHEMA_NAME_108, u.SCHEMA_NAME_109, u.SCHEMA_NAME_110, u.SCHEMA_NAME_111, u.SCHEMA_NAME_112, u.SCHEMA_NAME_113, u.SCHEMA_NAME_114, u.SCHEMA_NAME_115, u.SCHEMA_NAME_116, u.SCHEMA_NAME_117, u.SCHEMA_NAME_118]), t.findType("JSArray<SCHEMA_NAME>")), u.List_mC8 = t._setArrayType(e([0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]), d.JSArray_int), u.List_qpm = t._setArrayType(e(["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"]), d.JSArray_String), u.List_wMy = t._setArrayType(e(["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]), d.JSArray_String), u.PermissionType_0 = new t.PermissionType(0, "restaurant"), u.PermissionType_1 = new t.PermissionType(1, "warehouse"), u.PermissionType_2 = new t.PermissionType(2, "business"), u.List_wsa = t._setArrayType(e([u.PermissionType_0, u.PermissionType_1, u.PermissionType_2]), t.findType("JSArray<PermissionType>")), u.List_yRY = t._setArrayType(e([u.DIMENSION_OPTION_0, u.DIMENSION_OPTION_1, u.DIMENSION_OPTION_2, u.DIMENSION_OPTION_3, u.DIMENSION_OPTION_4, u.DIMENSION_OPTION_5, u.DIMENSION_OPTION_6, u.DIMENSION_OPTION_7, u.DIMENSION_OPTION_8, u.DIMENSION_OPTION_9, u.DIMENSION_OPTION_10, u.DIMENSION_OPTION_11]), d.JSArray_DIMENSION_OPTION), u.SOURCE_TYPE_0 = new t.SOURCE_TYPE(0, "MONGODB"), u.SOURCE_TYPE_1 = new t.SOURCE_TYPE(1, "COUCHDB"), u.SOURCE_TYPE_2 = new t.SOURCE_TYPE(2, "BIGQUERY"), u.List_ytA = t._setArrayType(e([u.SOURCE_TYPE_0, u.SOURCE_TYPE_1, u.SOURCE_TYPE_2]), t.findType("JSArray<SOURCE_TYPE>")), u.List_EQM = t._setArrayType(e(["d", "E", "EEEE", "LLL", "LLLL", "M", "Md", "MEd", "MMM", "MMMd", "MMMEd", "MMMM", "MMMMd", "MMMMEEEEd", "QQQ", "QQQQ", "y", "yM", "yMd", "yMEd", "yMMM", "yMMMd", "yMMMEd", "yMMMM", "yMMMMd", "yMMMMEEEEd", "yQQQ", "yQQQQ", "H", "Hm", "Hms", "j", "jm", "jms", "jmv", "jmz", "jz", "m", "ms", "s", "v", "z", "zzzz", "ZZZZ"]), d.JSArray_String), u.Map_EQ6TW = new t.ConstantStringMap(44, { d: "d", E: "ccc", EEEE: "cccc", LLL: "LLL", LLLL: "LLLL", M: "L", Md: "M/d", MEd: "EEE, M/d", MMM: "LLL", MMMd: "MMM d", MMMEd: "EEE, MMM d", MMMM: "LLLL", MMMMd: "MMMM d", MMMMEEEEd: "EEEE, MMMM d", QQQ: "QQQ", QQQQ: "QQQQ", y: "y", yM: "M/y", yMd: "M/d/y", yMEd: "EEE, M/d/y", yMMM: "MMM y", yMMMd: "MMM d, y", yMMMEd: "EEE, MMM d, y", yMMMM: "MMMM y", yMMMMd: "MMMM d, y", yMMMMEEEEd: "EEEE, MMMM d, y", yQQQ: "QQQ y", yQQQQ: "QQQQ y", H: "HH", Hm: "HH:mm", Hms: "HH:mm:ss", j: "h a", jm: "h:mm a", jms: "h:mm:ss a", jmv: "h:mm a v", jmz: "h:mm a z", jz: "h a z", m: "m", ms: "mm:ss", s: "s", v: "v", z: "z", zzzz: "zzzz", ZZZZ: "ZZZZ" }, u.List_EQM, t.findType("ConstantStringMap<String,String>")), u.Map_empty = new t.ConstantStringMap(0, {}, u.List_empty1, t.findType("ConstantStringMap<String,List<String>>")), u.List_empty4 = t._setArrayType(e([]), t.findType("JSArray<Symbol0>")), u.Map_empty0 = new t.ConstantStringMap(0, {}, u.List_empty4, t.findType("ConstantStringMap<Symbol0,@>")), u.StartOfWeek_0 = new t.StartOfWeek(0, "SATURDAY"), u.StartOfWeek_1 = new t.StartOfWeek(1, "SUNDAY"), u.StartOfWeek_2 = new t.StartOfWeek(2, "MONDAY"), u.Symbol_call = new t.Symbol("call"), u.TimeZone_0_false_UTC = new t.TimeZone(0, !1, "UTC"), u.Type_Object_xQ6 = t.typeLiteral("Object"), u.TzInstant_ww8 = new t.TzInstant(u.TimeZone_0_false_UTC, -864e13, 864e13), u.Units_3 = new t.Units(3, "HOUR"), u.Units_4 = new t.Units(4, "DAY"), u.Units_5 = new t.Units(5, "WEEK"), u.Units_6 = new t.Units(6, "MONTH"), u.Units_7 = new t.Units(7, "YEAR"), u._IterationMarker_null_2 = new t._IterationMarker(null, 2);
|
|
11449
|
+
}, u.C_JsonCodec = new t.JsonCodec(), u.C_OutOfMemoryError = new t.OutOfMemoryError(), u.C_Utf8Codec = new t.Utf8Codec(), u.C_Utf8Encoder = new t.Utf8Encoder(), u.C__Required = new t._Required(), u.DATA_TYPE_0 = new t.DATA_TYPE(0, "STRING"), u.DATA_TYPE_1 = new t.DATA_TYPE(1, "TIMESTAMP"), u.DATA_TYPE_2 = new t.DATA_TYPE(2, "BOOL"), u.DATA_TYPE_3 = new t.DATA_TYPE(3, "NUMERIC"), u.DIMENSION_OPTION_0 = new t.DIMENSION_OPTION(0, "DATE_TIME"), u.DIMENSION_OPTION_1 = new t.DIMENSION_OPTION(1, "HOUR"), u.DIMENSION_OPTION_10 = new t.DIMENSION_OPTION(10, "YEAR"), u.DIMENSION_OPTION_11 = new t.DIMENSION_OPTION(11, "YEAR_MONTH_DAY"), u.DIMENSION_OPTION_2 = new t.DIMENSION_OPTION(2, "DAY"), u.DIMENSION_OPTION_3 = new t.DIMENSION_OPTION(3, "WEEK"), u.DIMENSION_OPTION_4 = new t.DIMENSION_OPTION(4, "MONTH"), u.DIMENSION_OPTION_5 = new t.DIMENSION_OPTION(5, "TIME_OF_DAY"), u.DIMENSION_OPTION_6 = new t.DIMENSION_OPTION(6, "HOUR_OF_DAY"), u.DIMENSION_OPTION_7 = new t.DIMENSION_OPTION(7, "DAY_OF_WEEK"), u.DIMENSION_OPTION_8 = new t.DIMENSION_OPTION(8, "DAY_OF_MONTH"), u.DIMENSION_OPTION_9 = new t.DIMENSION_OPTION(9, "MONTH_OF_YEAR"), u.Duration_0 = new t.Duration(0), u.Duration_1000 = new t.Duration(1e3), u.Duration_86400000000 = new t.Duration(864e8), u.FIELD_ROLE_0 = new t.FIELD_ROLE(0, "time"), u.FIELD_ROLE_1 = new t.FIELD_ROLE(1, "measure"), u.FIELD_ROLE_2 = new t.FIELD_ROLE(2, "signedMeasure"), u.FIELD_ROLE_3 = new t.FIELD_ROLE(3, "allocated"), u.FIELD_ROLE_4 = new t.FIELD_ROLE(4, "identityLabel"), u.FIELD_ROLE_5 = new t.FIELD_ROLE(5, "identityId"), u.FIELD_ROLE_6 = new t.FIELD_ROLE(6, "image"), u.FIELD_ROLE_7 = new t.FIELD_ROLE(7, "latitude"), u.FIELD_ROLE_8 = new t.FIELD_ROLE(8, "longitude"), u.FIELD_ROLE_9 = new t.FIELD_ROLE(9, "region"), u.FIELD_TYPE_0 = new t.FIELD_TYPE(0, "DIMENSION"), u.FIELD_TYPE_1 = new t.FIELD_TYPE(1, "METRIC"), u.JsonDecoder_null = new t.JsonDecoder(null), u.JsonEncoder_null = new t.JsonEncoder(null), u.List_3US = t._setArrayType(e(["S", "M", "T", "W", "T", "F", "S"]), d.JSArray_String), u.List_6xs = t._setArrayType(e(["Before Christ", "Anno Domini"]), d.JSArray_String), u.INDEX_METHOD_0 = new t.INDEX_METHOD(0, "BTREE"), u.INDEX_METHOD_1 = new t.INDEX_METHOD(1, "HASH"), u.INDEX_METHOD_2 = new t.INDEX_METHOD(2, "GIST"), u.INDEX_METHOD_3 = new t.INDEX_METHOD(3, "SPGIST"), u.INDEX_METHOD_4 = new t.INDEX_METHOD(4, "BRIN"), u.INDEX_METHOD_5 = new t.INDEX_METHOD(5, "GIN"), u.List_88s = t._setArrayType(e([u.INDEX_METHOD_0, u.INDEX_METHOD_1, u.INDEX_METHOD_2, u.INDEX_METHOD_3, u.INDEX_METHOD_4, u.INDEX_METHOD_5]), t.findType("JSArray<INDEX_METHOD>")), u.SCHEMA_NAME_0 = new t.SCHEMA_NAME(0, "BILL"), u.SCHEMA_NAME_1 = new t.SCHEMA_NAME(1, "COMPLETE_TIME_BILL"), u.SCHEMA_NAME_2 = new t.SCHEMA_NAME(2, "BUSINESS"), u.SCHEMA_NAME_3 = new t.SCHEMA_NAME(3, "COUNTER"), u.SCHEMA_NAME_4 = new t.SCHEMA_NAME(4, "DRAWER"), u.SCHEMA_NAME_5 = new t.SCHEMA_NAME(5, "FLATTEN_ITEM"), u.SCHEMA_NAME_6 = new t.SCHEMA_NAME(6, "PARENT_FLATTEN_ITEM"), u.SCHEMA_NAME_7 = new t.SCHEMA_NAME(7, "ADDON_FLATTEN_ITEM"), u.SCHEMA_NAME_8 = new t.SCHEMA_NAME(8, "ITEM"), u.SCHEMA_NAME_9 = new t.SCHEMA_NAME(9, "SUB_ITEM"), u.SCHEMA_NAME_10 = new t.SCHEMA_NAME(10, "PAYMENT"), u.SCHEMA_NAME_11 = new t.SCHEMA_NAME(11, "PAYMENT_TIME_PAYMENT"), u.SCHEMA_NAME_12 = new t.SCHEMA_NAME(12, "CHARGE"), u.SCHEMA_NAME_13 = new t.SCHEMA_NAME(13, "RECORD"), u.SCHEMA_NAME_14 = new t.SCHEMA_NAME(14, "RESTAURANT"), u.SCHEMA_NAME_15 = new t.SCHEMA_NAME(15, "RESTAURANT_FEATURE"), u.SCHEMA_NAME_16 = new t.SCHEMA_NAME(16, "SLOT"), u.SCHEMA_NAME_17 = new t.SCHEMA_NAME(17, "STAFF"), u.SCHEMA_NAME_18 = new t.SCHEMA_NAME(18, "TIMESHEET"), u.SCHEMA_NAME_19 = new t.SCHEMA_NAME(19, "TIMESHEET_RECORD"), u.SCHEMA_NAME_20 = new t.SCHEMA_NAME(20, "DISCOUNT"), u.SCHEMA_NAME_21 = new t.SCHEMA_NAME(21, "ADJUSTMENT"), u.SCHEMA_NAME_22 = new t.SCHEMA_NAME(22, "INVENTORY_ADJUSTMENT"), u.SCHEMA_NAME_23 = new t.SCHEMA_NAME(23, "INVENTORY_ADJUSTMENT_SKU"), u.SCHEMA_NAME_24 = new t.SCHEMA_NAME(24, "INVENTORY_ADJUSTMENT_PHYSICAL_SKU"), u.SCHEMA_NAME_25 = new t.SCHEMA_NAME(25, "CLOSING_SKU"), u.SCHEMA_NAME_26 = new t.SCHEMA_NAME(26, "CLOSING_DRAFT"), u.SCHEMA_NAME_27 = new t.SCHEMA_NAME(27, "CLOSING_DRAFT_SKU"), u.SCHEMA_NAME_28 = new t.SCHEMA_NAME(28, "PURCHASE_ORDER"), u.SCHEMA_NAME_29 = new t.SCHEMA_NAME(29, "PURCHASE_ORDER_ITEM"), u.SCHEMA_NAME_30 = new t.SCHEMA_NAME(30, "PURCHASE_ORDER_TEMPLATE"), u.SCHEMA_NAME_31 = new t.SCHEMA_NAME(31, "PURCHASE_ORDER_TEMPLATE_ITEM"), u.SCHEMA_NAME_32 = new t.SCHEMA_NAME(32, "PURCHASE_ORDER_DELIVERY_ORDER"), u.SCHEMA_NAME_33 = new t.SCHEMA_NAME(33, "PURCHASE_ORDER_DELIVERY_FULFILLMENT"), u.SCHEMA_NAME_34 = new t.SCHEMA_NAME(34, "PURCHASE_ORDER_DELIVERY_ORDER_SKU"), u.SCHEMA_NAME_35 = new t.SCHEMA_NAME(35, "PURCHASE_ORDER_DELIVERY_FULFILLMENT_SKU"), u.SCHEMA_NAME_36 = new t.SCHEMA_NAME(36, "INTERNAL_PURCHASE_ORDER"), u.SCHEMA_NAME_37 = new t.SCHEMA_NAME(37, "INTERNAL_PURCHASE_ORDER_ITEM"), u.SCHEMA_NAME_38 = new t.SCHEMA_NAME(38, "INTERNAL_PURCHASE_ORDER_DELIVERY_ORDER"), u.SCHEMA_NAME_39 = new t.SCHEMA_NAME(39, "INTERNAL_PURCHASE_ORDER_DELIVERY_FULFILLMENT"), u.SCHEMA_NAME_40 = new t.SCHEMA_NAME(40, "INTERNAL_PURCHASE_ORDER_DELIVERY_ORDER_SKU"), u.SCHEMA_NAME_41 = new t.SCHEMA_NAME(41, "INTERNAL_PURCHASE_ORDER_DELIVERY_FULFILLMENT_SKU"), u.SCHEMA_NAME_42 = new t.SCHEMA_NAME(42, "VOUCHER_CLAIM"), u.SCHEMA_NAME_43 = new t.SCHEMA_NAME(43, "VOUCHER_CLAIM_REDEMPTION"), u.SCHEMA_NAME_44 = new t.SCHEMA_NAME(44, "USER"), u.SCHEMA_NAME_45 = new t.SCHEMA_NAME(45, "MEMBER"), u.SCHEMA_NAME_46 = new t.SCHEMA_NAME(46, "MEMBER_V2"), u.SCHEMA_NAME_47 = new t.SCHEMA_NAME(47, "INVENTORY_WAREHOUSE_LOCATION"), u.SCHEMA_NAME_48 = new t.SCHEMA_NAME(48, "INVENTORY_RESTAURANT_LOCATION"), u.SCHEMA_NAME_49 = new t.SCHEMA_NAME(49, "MEMBER_STORE_PURCHASE"), u.SCHEMA_NAME_50 = new t.SCHEMA_NAME(50, "MEMBER_STORE_PURCHASE_PAYMENT"), u.SCHEMA_NAME_51 = new t.SCHEMA_NAME(51, "MEMBER_TITLE"), u.SCHEMA_NAME_52 = new t.SCHEMA_NAME(52, "MEMBERSHIP"), u.SCHEMA_NAME_53 = new t.SCHEMA_NAME(53, "MEMBERSHIP_TITLE"), u.SCHEMA_NAME_54 = new t.SCHEMA_NAME(54, "CREDIT_TRANSACTION"), u.SCHEMA_NAME_55 = new t.SCHEMA_NAME(55, "MENU_V3_GROUP"), u.SCHEMA_NAME_56 = new t.SCHEMA_NAME(56, "MENU_V4_GROUP"), u.SCHEMA_NAME_57 = new t.SCHEMA_NAME(57, "MENU_V3_SKU"), u.SCHEMA_NAME_58 = new t.SCHEMA_NAME(58, "MENU_V4_SKU"), u.SCHEMA_NAME_59 = new t.SCHEMA_NAME(59, "MENU_V3_ITEM"), u.SCHEMA_NAME_60 = new t.SCHEMA_NAME(60, "MENU_V4_ITEM"), u.SCHEMA_NAME_61 = new t.SCHEMA_NAME(61, "MENU_V4_CATALOG_ITEM"), u.SCHEMA_NAME_62 = new t.SCHEMA_NAME(62, "STOCK"), u.SCHEMA_NAME_63 = new t.SCHEMA_NAME(63, "REVIEW"), u.SCHEMA_NAME_64 = new t.SCHEMA_NAME(64, "CAMPAIGN"), u.SCHEMA_NAME_65 = new t.SCHEMA_NAME(65, "COLLECTIBLE_CONFIG"), u.SCHEMA_NAME_66 = new t.SCHEMA_NAME(66, "COLLECTIBLE_TRANSACTION"), u.SCHEMA_NAME_67 = new t.SCHEMA_NAME(67, "CAMPAIGN_TIER"), u.SCHEMA_NAME_68 = new t.SCHEMA_NAME(68, "STORE_TRANSACTION"), u.SCHEMA_NAME_69 = new t.SCHEMA_NAME(69, "STORE_BUNDLE"), u.SCHEMA_NAME_70 = new t.SCHEMA_NAME(70, "COLLECTIBLE_COLLECTION"), u.SCHEMA_NAME_71 = new t.SCHEMA_NAME(71, "KITCHEN_STATION"), u.SCHEMA_NAME_72 = new t.SCHEMA_NAME(72, "REFUND_BILL"), u.SCHEMA_NAME_73 = new t.SCHEMA_NAME(73, "MENU_V4_ITEM_INVENTORY_BINDING"), u.SCHEMA_NAME_74 = new t.SCHEMA_NAME(74, "INVENTORY_V1_FLATTEN_INVENTORY"), u.SCHEMA_NAME_75 = new t.SCHEMA_NAME(75, "INVENTORY_V1_RECIPE"), u.SCHEMA_NAME_76 = new t.SCHEMA_NAME(76, "ITEM_MOVEMENT"), u.SCHEMA_NAME_77 = new t.SCHEMA_NAME(77, "UNIT_COST_HISTORY"), u.SCHEMA_NAME_78 = new t.SCHEMA_NAME(78, "DS_BILL_ITEM"), u.SCHEMA_NAME_79 = new t.SCHEMA_NAME(79, "DS_MENU_PRODUCT"), u.SCHEMA_NAME_80 = new t.SCHEMA_NAME(80, "DS_MENU_PRODUCT_2"), u.SCHEMA_NAME_81 = new t.SCHEMA_NAME(81, "DS_BILL_ITEM_PRODUCT"), u.SCHEMA_NAME_82 = new t.SCHEMA_NAME(82, "RECOMMENDATION_CALL"), u.SCHEMA_NAME_83 = new t.SCHEMA_NAME(83, "VN_E_INVOICE_SUBMISSION"), u.SCHEMA_NAME_84 = new t.SCHEMA_NAME(84, "DAILY_FORECAST_SALE"), u.SCHEMA_NAME_85 = new t.SCHEMA_NAME(85, "HOURLY_FORECAST_SALE"), u.SCHEMA_NAME_86 = new t.SCHEMA_NAME(86, "CHANGE_PAYMENT_ACTIVITY"), u.SCHEMA_NAME_87 = new t.SCHEMA_NAME(87, "SALE_PAYMENT"), u.SCHEMA_NAME_88 = new t.SCHEMA_NAME(88, "SALE_TRANSACTION"), u.SCHEMA_NAME_89 = new t.SCHEMA_NAME(89, "POS_OVERRIDE_ITEM_LOG"), u.SCHEMA_NAME_90 = new t.SCHEMA_NAME(90, "WASTAGE_ITEM"), u.SCHEMA_NAME_91 = new t.SCHEMA_NAME(91, "INVENTORY_SKU_BALANCE"), u.SCHEMA_NAME_92 = new t.SCHEMA_NAME(92, "INVENTORY_V1_SKU"), u.SCHEMA_NAME_93 = new t.SCHEMA_NAME(93, "PROMOTION"), u.SCHEMA_NAME_94 = new t.SCHEMA_NAME(94, "PRODUCT_POS_OVERRIDE_V4_ITEM"), u.SCHEMA_NAME_95 = new t.SCHEMA_NAME(95, "SMS_CREDIT_TRANSACTION"), u.SCHEMA_NAME_96 = new t.SCHEMA_NAME(96, "REMOTE_ORDER"), u.SCHEMA_NAME_97 = new t.SCHEMA_NAME(97, "REMOTE_ORDER_FLATTEN_ITEM"), u.SCHEMA_NAME_98 = new t.SCHEMA_NAME(98, "TPL_GRABFOOD_ORDER"), u.SCHEMA_NAME_99 = new t.SCHEMA_NAME(99, "TPL_FOODPANDA_ORDER"), u.SCHEMA_NAME_100 = new t.SCHEMA_NAME(100, "TPL_SHOPEE_FOOD_ORDER"), u.SCHEMA_NAME_101 = new t.SCHEMA_NAME(101, "TPL_ORDER"), u.SCHEMA_NAME_102 = new t.SCHEMA_NAME(102, "TPL_GRABFOOD_SETTING"), u.SCHEMA_NAME_103 = new t.SCHEMA_NAME(103, "TPL_FOODPANDA_SETTING"), u.SCHEMA_NAME_104 = new t.SCHEMA_NAME(104, "TPL_SHOPEE_FOOD_SETTING"), u.SCHEMA_NAME_105 = new t.SCHEMA_NAME(105, "REMOTE_ORDER_ADDON_FLATTEN_ITEM"), u.SCHEMA_NAME_106 = new t.SCHEMA_NAME(106, "REMOTE_ORDER_PARENT_FLATTEN_ITEM"), u.SCHEMA_NAME_107 = new t.SCHEMA_NAME(107, "REMOTE_PICKUP_ORDER"), u.SCHEMA_NAME_108 = new t.SCHEMA_NAME(108, "REMOTE_PICKUP_ORDER_FLATTEN_ITEM"), u.SCHEMA_NAME_109 = new t.SCHEMA_NAME(109, "MY_E_INVOICE_SUBMISSION"), u.SCHEMA_NAME_110 = new t.SCHEMA_NAME(110, "INTERNAL_MY_E_INVOICE_SUBMISSION"), u.SCHEMA_NAME_111 = new t.SCHEMA_NAME(111, "INTERNAL_MY_E_INVOICE_SUBMISSION_DOCUMENT"), u.SCHEMA_NAME_112 = new t.SCHEMA_NAME(112, "INTERNAL_MY_E_INVOICE_DOCUMENT"), u.SCHEMA_NAME_113 = new t.SCHEMA_NAME(113, "TITLE_COLLECTION"), u.SCHEMA_NAME_114 = new t.SCHEMA_NAME(114, "TH_E_INVOICE_SUBMISSION"), u.SCHEMA_NAME_115 = new t.SCHEMA_NAME(115, "PRINT_ACTIVITY"), u.SCHEMA_NAME_116 = new t.SCHEMA_NAME(116, "DEPOSIT"), u.SCHEMA_NAME_117 = new t.SCHEMA_NAME(117, "DEPOSIT_TRANSACTION"), u.SCHEMA_NAME_118 = new t.SCHEMA_NAME(118, "BILL_AUDIT_LOG"), u.SCHEMA_NAME_119 = new t.SCHEMA_NAME(119, "MASTER_USER"), u.List_8aB = t._setArrayType(e([u.SCHEMA_NAME_0, u.SCHEMA_NAME_1, u.SCHEMA_NAME_2, u.SCHEMA_NAME_3, u.SCHEMA_NAME_4, u.SCHEMA_NAME_5, u.SCHEMA_NAME_6, u.SCHEMA_NAME_7, u.SCHEMA_NAME_8, u.SCHEMA_NAME_9, u.SCHEMA_NAME_10, u.SCHEMA_NAME_11, u.SCHEMA_NAME_12, u.SCHEMA_NAME_13, u.SCHEMA_NAME_14, u.SCHEMA_NAME_15, u.SCHEMA_NAME_16, u.SCHEMA_NAME_17, u.SCHEMA_NAME_18, u.SCHEMA_NAME_19, u.SCHEMA_NAME_20, u.SCHEMA_NAME_21, u.SCHEMA_NAME_22, u.SCHEMA_NAME_23, u.SCHEMA_NAME_24, u.SCHEMA_NAME_25, u.SCHEMA_NAME_26, u.SCHEMA_NAME_27, u.SCHEMA_NAME_28, u.SCHEMA_NAME_29, u.SCHEMA_NAME_30, u.SCHEMA_NAME_31, u.SCHEMA_NAME_32, u.SCHEMA_NAME_33, u.SCHEMA_NAME_34, u.SCHEMA_NAME_35, u.SCHEMA_NAME_36, u.SCHEMA_NAME_37, u.SCHEMA_NAME_38, u.SCHEMA_NAME_39, u.SCHEMA_NAME_40, u.SCHEMA_NAME_41, u.SCHEMA_NAME_42, u.SCHEMA_NAME_43, u.SCHEMA_NAME_44, u.SCHEMA_NAME_45, u.SCHEMA_NAME_46, u.SCHEMA_NAME_47, u.SCHEMA_NAME_48, u.SCHEMA_NAME_49, u.SCHEMA_NAME_50, u.SCHEMA_NAME_51, u.SCHEMA_NAME_52, u.SCHEMA_NAME_53, u.SCHEMA_NAME_54, u.SCHEMA_NAME_55, u.SCHEMA_NAME_56, u.SCHEMA_NAME_57, u.SCHEMA_NAME_58, u.SCHEMA_NAME_59, u.SCHEMA_NAME_60, u.SCHEMA_NAME_61, u.SCHEMA_NAME_62, u.SCHEMA_NAME_63, u.SCHEMA_NAME_64, u.SCHEMA_NAME_65, u.SCHEMA_NAME_66, u.SCHEMA_NAME_67, u.SCHEMA_NAME_68, u.SCHEMA_NAME_69, u.SCHEMA_NAME_70, u.SCHEMA_NAME_71, u.SCHEMA_NAME_72, u.SCHEMA_NAME_73, u.SCHEMA_NAME_74, u.SCHEMA_NAME_75, u.SCHEMA_NAME_76, u.SCHEMA_NAME_77, u.SCHEMA_NAME_78, u.SCHEMA_NAME_79, u.SCHEMA_NAME_80, u.SCHEMA_NAME_81, u.SCHEMA_NAME_82, u.SCHEMA_NAME_83, u.SCHEMA_NAME_84, u.SCHEMA_NAME_85, u.SCHEMA_NAME_86, u.SCHEMA_NAME_87, u.SCHEMA_NAME_88, u.SCHEMA_NAME_89, u.SCHEMA_NAME_90, u.SCHEMA_NAME_91, u.SCHEMA_NAME_92, u.SCHEMA_NAME_93, u.SCHEMA_NAME_94, u.SCHEMA_NAME_95, u.SCHEMA_NAME_96, u.SCHEMA_NAME_97, u.SCHEMA_NAME_98, u.SCHEMA_NAME_99, u.SCHEMA_NAME_100, u.SCHEMA_NAME_101, u.SCHEMA_NAME_102, u.SCHEMA_NAME_103, u.SCHEMA_NAME_104, u.SCHEMA_NAME_105, u.SCHEMA_NAME_106, u.SCHEMA_NAME_107, u.SCHEMA_NAME_108, u.SCHEMA_NAME_109, u.SCHEMA_NAME_110, u.SCHEMA_NAME_111, u.SCHEMA_NAME_112, u.SCHEMA_NAME_113, u.SCHEMA_NAME_114, u.SCHEMA_NAME_115, u.SCHEMA_NAME_116, u.SCHEMA_NAME_117, u.SCHEMA_NAME_118, u.SCHEMA_NAME_119]), t.findType("JSArray<SCHEMA_NAME>")), u.List_AM_PM = t._setArrayType(e(["AM", "PM"]), d.JSArray_String), u.List_BC_AD = t._setArrayType(e(["BC", "AD"]), d.JSArray_String), u.MERGE_FILTER_TYPE_0 = new t.MERGE_FILTER_TYPE(0, "dates"), u.MERGE_FILTER_TYPE_1 = new t.MERGE_FILTER_TYPE(1, "dateRange"), u.List_EfK = t._setArrayType(e([u.MERGE_FILTER_TYPE_0, u.MERGE_FILTER_TYPE_1]), t.findType("JSArray<MERGE_FILTER_TYPE>")), u.FORMATTER_TYPE_0 = new t.FORMATTER_TYPE(0, "HOUR"), u.FORMATTER_TYPE_1 = new t.FORMATTER_TYPE(1, "MINUTE"), u.FORMATTER_TYPE_2 = new t.FORMATTER_TYPE(2, "SECOND"), u.FORMATTER_TYPE_3 = new t.FORMATTER_TYPE(3, "HOUR_NO_DAY"), u.FORMATTER_TYPE_4 = new t.FORMATTER_TYPE(4, "MINUTE_NO_DAY"), u.FORMATTER_TYPE_5 = new t.FORMATTER_TYPE(5, "SECOND_NO_DAY"), u.FORMATTER_TYPE_6 = new t.FORMATTER_TYPE(6, "COMPACT_HOUR_MINUTE"), u.FORMATTER_TYPE_7 = new t.FORMATTER_TYPE(7, "PERCENT"), u.FORMATTER_TYPE_8 = new t.FORMATTER_TYPE(8, "IMAGE"), u.FORMATTER_TYPE_9 = new t.FORMATTER_TYPE(9, "CURRENCY"), u.FORMATTER_TYPE_10 = new t.FORMATTER_TYPE(10, "HH_MM"), u.FORMATTER_TYPE_11 = new t.FORMATTER_TYPE(11, "DATE_RANGE_HH_MM"), u.List_IoM = t._setArrayType(e([u.FORMATTER_TYPE_0, u.FORMATTER_TYPE_1, u.FORMATTER_TYPE_2, u.FORMATTER_TYPE_3, u.FORMATTER_TYPE_4, u.FORMATTER_TYPE_5, u.FORMATTER_TYPE_6, u.FORMATTER_TYPE_7, u.FORMATTER_TYPE_8, u.FORMATTER_TYPE_9, u.FORMATTER_TYPE_10, u.FORMATTER_TYPE_11]), d.JSArray_FORMATTER_TYPE), u.COMPARISON_OPERATOR_9 = new t.COMPARISON_OPERATOR(9, "AND"), u.List_LO4 = t._setArrayType(e([u.COMPARISON_OPERATOR_0, u.COMPARISON_OPERATOR_1, u.COMPARISON_OPERATOR_2, u.COMPARISON_OPERATOR_3, u.COMPARISON_OPERATOR_4, u.COMPARISON_OPERATOR_5, u.COMPARISON_OPERATOR_6, u.COMPARISON_OPERATOR_7, u.COMPARISON_OPERATOR_8, u.COMPARISON_OPERATOR_9, u.COMPARISON_OPERATOR_10]), d.JSArray_COMPARISON_OPERATOR), u.List_Moq = t._setArrayType(e([u.FIELD_ROLE_0, u.FIELD_ROLE_1, u.FIELD_ROLE_2, u.FIELD_ROLE_3, u.FIELD_ROLE_4, u.FIELD_ROLE_5, u.FIELD_ROLE_6, u.FIELD_ROLE_7, u.FIELD_ROLE_8, u.FIELD_ROLE_9]), t.findType("JSArray<FIELD_ROLE>")), u.PERIOD_TYPE_0 = new t.PERIOD_TYPE(0, "MTD"), u.List_PERIOD_TYPE_0 = t._setArrayType(e([u.PERIOD_TYPE_0]), t.findType("JSArray<PERIOD_TYPE>")), u.SORT_TYPE_0 = new t.SORT_TYPE(0, "ASC"), u.SORT_TYPE_1 = new t.SORT_TYPE(1, "DESC"), u.List_SORT_TYPE_0_SORT_TYPE_1 = t._setArrayType(e([u.SORT_TYPE_0, u.SORT_TYPE_1]), t.findType("JSArray<SORT_TYPE>")), u.ChartType_0 = new t.ChartType(0, "CIRCULAR"), u.ChartType_1 = new t.ChartType(1, "TABLE"), u.ChartType_2 = new t.ChartType(2, "LIST"), u.ChartType_3 = new t.ChartType(3, "SCORECARD"), u.ChartType_4 = new t.ChartType(4, "LINECHART"), u.ChartType_5 = new t.ChartType(5, "BARCHART"), u.ChartType_6 = new t.ChartType(6, "CLUSTEREDSTACKBARCHART"), u.ChartType_7 = new t.ChartType(7, "COLUMNCHART"), u.ChartType_8 = new t.ChartType(8, "STACKLINECHART"), u.ChartType_9 = new t.ChartType(9, "STACKBARCHART"), u.ChartType_10 = new t.ChartType(10, "STACKCOLUMNCHART"), u.ChartType_11 = new t.ChartType(11, "SPACER"), u.List_W3w = t._setArrayType(e([u.ChartType_0, u.ChartType_1, u.ChartType_2, u.ChartType_3, u.ChartType_4, u.ChartType_5, u.ChartType_6, u.ChartType_7, u.ChartType_8, u.ChartType_9, u.ChartType_10, u.ChartType_11]), t.findType("JSArray<ChartType>")), u.List_cIc = t._setArrayType(e(["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]), d.JSArray_String), u.TIME_FORMATTER_0 = new t.TIME_FORMATTER(0, "HOUR"), u.TIME_FORMATTER_1 = new t.TIME_FORMATTER(1, "MINUTE"), u.TIME_FORMATTER_2 = new t.TIME_FORMATTER(2, "SECOND"), u.TIME_FORMATTER_3 = new t.TIME_FORMATTER(3, "HOUR_NO_DAY"), u.TIME_FORMATTER_4 = new t.TIME_FORMATTER(4, "MINUTE_NO_DAY"), u.TIME_FORMATTER_5 = new t.TIME_FORMATTER(5, "SECOND_NO_DAY"), u.List_cWd = t._setArrayType(e([u.TIME_FORMATTER_0, u.TIME_FORMATTER_1, u.TIME_FORMATTER_2, u.TIME_FORMATTER_3, u.TIME_FORMATTER_4, u.TIME_FORMATTER_5]), d.JSArray_TIME_FORMATTER), u.List_empty2 = t._setArrayType(e([]), d.JSArray_QueryRequestDimension), u.List_empty0 = t._setArrayType(e([]), d.JSArray_QueryRequestFilter), u.List_empty1 = t._setArrayType(e([]), d.JSArray_Split), u.List_empty = t._setArrayType(e([]), d.JSArray_String), u.List_empty3 = t._setArrayType(e([]), d.JSArray_dynamic), u.List_gc6 = t._setArrayType(e(["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]), d.JSArray_String), u.List_h8w = t._setArrayType(e(["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]), d.JSArray_String), u.List_iAW = t._setArrayType(e([u.AGGREGATION_TYPE_0, u.AGGREGATION_TYPE_1, u.AGGREGATION_TYPE_2, u.AGGREGATION_TYPE_3, u.AGGREGATION_TYPE_4, u.AGGREGATION_TYPE_5, u.AGGREGATION_TYPE_6, u.AGGREGATION_TYPE_7, u.AGGREGATION_TYPE_8, u.AGGREGATION_TYPE_9, u.AGGREGATION_TYPE_10, u.AGGREGATION_TYPE_11, u.AGGREGATION_TYPE_12, u.AGGREGATION_TYPE_13]), d.JSArray_AGGREGATION_TYPE), u.List_k6a = t._setArrayType(e([u.DATA_TYPE_0, u.DATA_TYPE_1, u.DATA_TYPE_2, u.DATA_TYPE_3]), d.JSArray_DATA_TYPE), u.List_mC8 = t._setArrayType(e([0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]), d.JSArray_int), u.List_qpm = t._setArrayType(e(["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"]), d.JSArray_String), u.List_wMy = t._setArrayType(e(["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]), d.JSArray_String), u.PermissionType_0 = new t.PermissionType(0, "restaurant"), u.PermissionType_1 = new t.PermissionType(1, "warehouse"), u.PermissionType_2 = new t.PermissionType(2, "business"), u.List_wsa = t._setArrayType(e([u.PermissionType_0, u.PermissionType_1, u.PermissionType_2]), t.findType("JSArray<PermissionType>")), u.List_yRY = t._setArrayType(e([u.DIMENSION_OPTION_0, u.DIMENSION_OPTION_1, u.DIMENSION_OPTION_2, u.DIMENSION_OPTION_3, u.DIMENSION_OPTION_4, u.DIMENSION_OPTION_5, u.DIMENSION_OPTION_6, u.DIMENSION_OPTION_7, u.DIMENSION_OPTION_8, u.DIMENSION_OPTION_9, u.DIMENSION_OPTION_10, u.DIMENSION_OPTION_11]), d.JSArray_DIMENSION_OPTION), u.SOURCE_TYPE_0 = new t.SOURCE_TYPE(0, "MONGODB"), u.SOURCE_TYPE_1 = new t.SOURCE_TYPE(1, "COUCHDB"), u.SOURCE_TYPE_2 = new t.SOURCE_TYPE(2, "BIGQUERY"), u.List_ytA = t._setArrayType(e([u.SOURCE_TYPE_0, u.SOURCE_TYPE_1, u.SOURCE_TYPE_2]), t.findType("JSArray<SOURCE_TYPE>")), u.List_EQM = t._setArrayType(e(["d", "E", "EEEE", "LLL", "LLLL", "M", "Md", "MEd", "MMM", "MMMd", "MMMEd", "MMMM", "MMMMd", "MMMMEEEEd", "QQQ", "QQQQ", "y", "yM", "yMd", "yMEd", "yMMM", "yMMMd", "yMMMEd", "yMMMM", "yMMMMd", "yMMMMEEEEd", "yQQQ", "yQQQQ", "H", "Hm", "Hms", "j", "jm", "jms", "jmv", "jmz", "jz", "m", "ms", "s", "v", "z", "zzzz", "ZZZZ"]), d.JSArray_String), u.Map_EQ6TW = new t.ConstantStringMap(44, { d: "d", E: "ccc", EEEE: "cccc", LLL: "LLL", LLLL: "LLLL", M: "L", Md: "M/d", MEd: "EEE, M/d", MMM: "LLL", MMMd: "MMM d", MMMEd: "EEE, MMM d", MMMM: "LLLL", MMMMd: "MMMM d", MMMMEEEEd: "EEEE, MMMM d", QQQ: "QQQ", QQQQ: "QQQQ", y: "y", yM: "M/y", yMd: "M/d/y", yMEd: "EEE, M/d/y", yMMM: "MMM y", yMMMd: "MMM d, y", yMMMEd: "EEE, MMM d, y", yMMMM: "MMMM y", yMMMMd: "MMMM d, y", yMMMMEEEEd: "EEEE, MMMM d, y", yQQQ: "QQQ y", yQQQQ: "QQQQ y", H: "HH", Hm: "HH:mm", Hms: "HH:mm:ss", j: "h a", jm: "h:mm a", jms: "h:mm:ss a", jmv: "h:mm a v", jmz: "h:mm a z", jz: "h a z", m: "m", ms: "mm:ss", s: "s", v: "v", z: "z", zzzz: "zzzz", ZZZZ: "ZZZZ" }, u.List_EQM, t.findType("ConstantStringMap<String,String>")), u.Map_empty = new t.ConstantStringMap(0, {}, u.List_empty, t.findType("ConstantStringMap<String,List<String>>")), u.List_empty4 = t._setArrayType(e([]), t.findType("JSArray<Symbol0>")), u.Map_empty0 = new t.ConstantStringMap(0, {}, u.List_empty4, t.findType("ConstantStringMap<Symbol0,@>")), u.StartOfWeek_0 = new t.StartOfWeek(0, "SATURDAY"), u.StartOfWeek_1 = new t.StartOfWeek(1, "SUNDAY"), u.StartOfWeek_2 = new t.StartOfWeek(2, "MONDAY"), u.Symbol_call = new t.Symbol("call"), u.TimeZone_0_false_UTC = new t.TimeZone(0, !1, "UTC"), u.Type_Object_xQ6 = t.typeLiteral("Object"), u.TzInstant_ww8 = new t.TzInstant(u.TimeZone_0_false_UTC, -864e13, 864e13), u.Units_3 = new t.Units(3, "HOUR"), u.Units_4 = new t.Units(4, "DAY"), u.Units_5 = new t.Units(5, "WEEK"), u.Units_6 = new t.Units(6, "MONTH"), u.Units_7 = new t.Units(7, "YEAR"), u._IterationMarker_null_2 = new t._IterationMarker(null, 2);
|
|
11435
11450
|
})(), function() {
|
|
11436
11451
|
q._JS_INTEROP_INTERCEPTOR_TAG = null, q.Primitives__identityHashCodeProperty = null, q.BoundClosure__receiverFieldNameCache = null, q.BoundClosure__interceptorFieldNameCache = null, q.getTagFunction = null, q.alternateTagFunction = null, q.prototypeForTagFunction = null, q.dispatchRecordsForInstanceTags = null, q.interceptorsForUncacheableTags = null, q.initNativeDispatchFlag = null, q._toStringVisiting = t._setArrayType([], t.findType("JSArray<Object>")), q.cachedDateSymbols = null, q.lastDateSymbolLocale = null, q._defaultLocale = null, q.DateFormat__useNativeDigitsByDefault = t.LinkedHashMap_LinkedHashMap$_empty(d.String, d.bool), q.DateFormat__digitMatchers = t.LinkedHashMap_LinkedHashMap$_empty(d.String, t.findType("RegExp")), q.Jiffy____defaultLocale = t._Cell$(), q.VisualizationField__filterDimensionOptions = t._setArrayType([u.DIMENSION_OPTION_5, u.DIMENSION_OPTION_6, u.DIMENSION_OPTION_7, u.DIMENSION_OPTION_8, u.DIMENSION_OPTION_9], d.JSArray_DIMENSION_OPTION), q.VisualizationField__fillGapDimensionOptions = t._setArrayType([u.DIMENSION_OPTION_1, u.DIMENSION_OPTION_2, u.DIMENSION_OPTION_3, u.DIMENSION_OPTION_4, u.DIMENSION_OPTION_6, u.DIMENSION_OPTION_7, u.DIMENSION_OPTION_8, u.DIMENSION_OPTION_9, u.DIMENSION_OPTION_10, u.DIMENSION_OPTION_11], d.JSArray_DIMENSION_OPTION), q.VisualizationField__isNumericAggregations = t._setArrayType([u.AGGREGATION_TYPE_2, u.AGGREGATION_TYPE_3], d.JSArray_AGGREGATION_TYPE), q.___local = t._Cell$();
|
|
11437
11452
|
}(), function() {
|
|
@@ -11476,34 +11491,34 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
|
|
|
11476
11491
|
return t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), a = t.PtLocale$(u.StartOfWeek_2), i = t.PtLocale$(u.StartOfWeek_1), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.LinkedHashMap_LinkedHashMap$_literal(["en", s, "en_us", l, "en_sg", p, "en_au", _, "en_ca", M, "en_gb", b, "en_ie", O, "en_il", D, "en_nz", $, "es", E, "es_do", g, "es_us", h, "fr", R, "fr_ch", C, "fr_ca", W, "zh", B, "zh_cn", I, "zh_hk", x, "zh_tw", w, "de", v, "de_de", X, "de_at", j, "de_ch", s0, "it", u0, "it_ch", z0, "ar", y0, "ar_ly", g0, "ar_dz", h0, "ar_kw", I0, "ar_sa", W0, "ar_ma", Z, "ar_tn", H0, "az", new t.AzLocale(), "id", new t.IdLocale(), "ja", new t.JaLocale(), "ko", new t.KoLocale(), "ru", new t.RuLocale(), "uk", new t.UkLocale(), "hi", new t.HiLocale(), "pt", a, "pt_br", i, "pl", new t.PlLocale(), "tr", new t.TrLocale(), "sv", new t.SvLocale(), "nb", new t.NbLocale(), "fa", new t.FaLocale(), "bn", new t.BnLocale(), "nl", new t.NlLocale(), "th", new t.ThLocale()], d.String, t.findType("Locale"));
|
|
11477
11492
|
}), e(q, "addonFlattenItemSchema", "$get$addonFlattenItemSchema", () => {
|
|
11478
11493
|
var a = "createdAt", i = null, s = t.Source_Source$couchdb("", ""), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), a);
|
|
11479
|
-
return t.Schema_Schema$build(!1, "sales", u.
|
|
11494
|
+
return t.Schema_Schema$build(!1, "sales", u.List_empty, 3, i, t._setArrayType(["restaurantId"], d.JSArray_String), "flatten_item under an addon-oriented name for classic joins — query flatten_item directly instead.", new t.addonFlattenItemSchema_closure(), u.List_empty0, i, i, i, !0, !1, !1, !1, !0, !1, new t.addonFlattenItemSchema_closure0(), "Addon", "flatten_items", "flatten_item", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_7, a, i, "", "", i, !0, s, u.List_empty1, i, l);
|
|
11480
11495
|
}), e(q, "adjustmentSchema", "$get$adjustmentSchema", () => {
|
|
11481
11496
|
var a = "couchdb_bill", i = "adjustment", s = "adjustments", l = "createdAt", p = null, _ = t.Source_Source$couchdb(s, i), M = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), l), b = d.JSArray_String, O = t._setArrayType([t.Index$(t._setArrayType(["id"], b), p, p, p), t.Index$(t._setArrayType(["doc_id"], b), p, p, p), t.Index$(t._setArrayType(["restaurant_id", "created_at"], b), "idx_adjustments_select_index", p, p), t.Index$(t._setArrayType(["item_id"], b), p, p, p), t.Index$(t._setArrayType(["bill_id"], b), p, p, p), t.Index$(t._setArrayType(["published_at"], b), p, p, p)], d.JSArray_Index), D = t._setArrayType(["restaurantId"], b), $ = t.ReadPiece$(7, 12);
|
|
11482
|
-
return t.Schema_Schema$build(!1, "sales", t._setArrayType(["discount", "adjustment", "promo", "promotion", "offer"], b), 2, p, D, "One row per discount applied to a bill or item. cause = discount type, reason = discount name, name = amount/percent.", new t.adjustmentSchema_closure(), u.
|
|
11497
|
+
return t.Schema_Schema$build(!1, "sales", t._setArrayType(["discount", "adjustment", "promo", "promotion", "offer"], b), 2, p, D, "One row per discount applied to a bill or item. cause = discount type, reason = discount name, name = amount/percent.", new t.adjustmentSchema_closure(), u.List_empty0, p, O, p, !1, !0, !1, !1, !1, !1, new t.adjustmentSchema_closure0(), "Discount", s, i, u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_21, l, p, a, a, $, !0, _, u.List_empty1, p, M);
|
|
11483
11498
|
}), e(q, "billSchema", "$get$billSchema", () => {
|
|
11484
11499
|
var a = "couchdb_bill", i = null, s = "createdAt", l = t.Source_Source$couchdb(i, "bill"), p = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), s), _ = d.JSArray_String, M = t._setArrayType([t.Index$(t._setArrayType(["id"], _), i, i, i), t.Index$(t._setArrayType(["doc_id"], _), i, i, i), t.Index$(t._setArrayType(["restaurant_id", "created_at"], _), "idx_bills_select_index", i, i), t.Index$(t._setArrayType(["member_id", "created_at"], _), "idx_bills_member_created", i, i), t.Index$(t._setArrayType(["member_user_id"], _), i, i, i), t.Index$(t._setArrayType(["published_at"], _), i, i, i), t.Index$(t._setArrayType(["restaurant_id", "completed_at"], _), "idx_complete_time_bills_select_index", i, i), t.Index$(t._setArrayType(["restaurant_id", "refund_from"], _), "idx_bills_refund_from", i, i)], d.JSArray_Index), b = t._setArrayType(["restaurantId"], _), O = t.ReadPiece$(7, 10);
|
|
11485
|
-
return t.Schema_Schema$build(!0, "sales", t._setArrayType(["bill", "order", "transaction", "receipt", "customer", "table", "dine in", "takeaway", "total amount"], _), 1, t.Canonical$(u.Map_empty, t._setArrayType(["nett_total"], _), t._setArrayType(["status IN ('COMPLETED', 'REFUNDED')"], _)), b, "One row per POS bill (order): totals, status, type, source channel. The main sales fact — most revenue questions start here. A refund is a bill of its own (is_refund), its figures negated, so a sale and its refund net off when both are summed. The headline rule keeps the two sold statuses, COMPLETED and REFUNDED; FeedMe's standard reports keep every bill that is not DRAFT or VOIDED, the same rows unless a bill has no status or another one.", new t.billSchema_closure(), u.
|
|
11500
|
+
return t.Schema_Schema$build(!0, "sales", t._setArrayType(["bill", "order", "transaction", "receipt", "customer", "table", "dine in", "takeaway", "total amount"], _), 1, t.Canonical$(u.Map_empty, t._setArrayType(["nett_total"], _), t._setArrayType(["status IN ('COMPLETED', 'REFUNDED')"], _)), b, "One row per POS bill (order): totals, status, type, source channel. The main sales fact — most revenue questions start here. A refund is a bill of its own (is_refund), its figures negated, so a sale and its refund net off when both are summed. The headline rule keeps the two sold statuses, COMPLETED and REFUNDED; FeedMe's standard reports keep every bill that is not DRAFT or VOIDED, the same rows unless a bill has no status or another one.", new t.billSchema_closure(), u.List_empty0, i, M, 120, !1, !0, !1, !1, !1, !1, new t.billSchema_closure0(), "Bill", "bills", "bill", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_0, s, i, a, a, O, !0, l, u.List_empty1, i, p);
|
|
11486
11501
|
}), e(q, "billAuditLogSchema", "$get$billAuditLogSchema", () => {
|
|
11487
11502
|
var a = "couchdb_bill", i = null, s = t.Source_Source$couchdb("billAuditLogs", "bill"), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), "loggedAt"), p = d.JSArray_String, _ = t._setArrayType([t.Index$(t._setArrayType(["id"], p), i, i, i), t.Index$(t._setArrayType(["doc_id"], p), i, i, i), t.Index$(t._setArrayType(["restaurant_id", "logged_at", "type"], p), i, i, i), t.Index$(t._setArrayType(["bill_id"], p), i, i, i), t.Index$(t._setArrayType(["item_id"], p), i, i, i)], d.JSArray_Index), M = t._setArrayType(["restaurantId"], p);
|
|
11488
|
-
return t.Schema_Schema$build(!1, "operations", t._setArrayType(["audit log", "bill opened", "open table", "add item", "delete item", "removed item"], p), 3, i, M, "POS bill audit log: one row per item of an ADD_ITEM or DELETE_ITEM entry, and one itemless row per CREATE_BILL entry; event_id is shared by the rows of one entry, so count distinct event_id for actions. Time control is logged_at, when the action happened, while created_at is the bill time. DELETE_ITEM records draft items removed before they were sent; they are gone from the bill, so item name, code and quantity come from the log and their item_id matches no flatten_item. Table moves are in item_movement and receipt prints in print_activity, not here.", new t.billAuditLogSchema_closure(), u.
|
|
11503
|
+
return t.Schema_Schema$build(!1, "operations", t._setArrayType(["audit log", "bill opened", "open table", "add item", "delete item", "removed item"], p), 3, i, M, "POS bill audit log: one row per item of an ADD_ITEM or DELETE_ITEM entry, and one itemless row per CREATE_BILL entry; event_id is shared by the rows of one entry, so count distinct event_id for actions. Time control is logged_at, when the action happened, while created_at is the bill time. DELETE_ITEM records draft items removed before they were sent; they are gone from the bill, so item name, code and quantity come from the log and their item_id matches no flatten_item. Table moves are in item_movement and receipt prints in print_activity, not here.", new t.billAuditLogSchema_closure(), u.List_empty0, i, _, 120, !1, !0, !1, !1, !1, !1, new t.billAuditLogSchema_closure0(), "Bill Audit Log", "bill_audit_logs", "bill_audit_log", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_118, "createdAt", i, a, a, i, !0, s, u.List_empty1, i, l);
|
|
11489
11504
|
}), e(q, "businessSchema", "$get$businessSchema", () => {
|
|
11490
11505
|
var a = null, i = t.Source_Source$mongodb(a, "Businesses"), s = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$business("id")], d.JSArray_Permission), a), l = d.JSArray_String, p = t._setArrayType([t.Index$(t._setArrayType(["id"], l), a, a, a), t.Index$(t._setArrayType(["doc_id"], l), a, a, a)], d.JSArray_Index);
|
|
11491
|
-
return t.Schema_Schema$build(!1, "sales", u.
|
|
11506
|
+
return t.Schema_Schema$build(!1, "sales", u.List_empty, 3, a, t._setArrayType([], l), "The merchant business account — one row.", new t.businessSchema_closure(), u.List_empty0, a, p, a, !1, !0, !1, !1, !1, !1, new t.businessSchema_closure0(), "Business", "businesses", "business", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_2, a, a, "mongodb_businesses", "mongodb_company_db_businesses", a, !1, i, u.List_empty1, a, s);
|
|
11492
11507
|
}), e(q, "campaignSchema", "$get$campaignSchema", () => {
|
|
11493
11508
|
var a = "mongodb_marketing_db_campaigns", i = null, s = t.Source_Source$mongodb(i, "Campaigns"), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$business("businessId")], d.JSArray_Permission), i), p = d.JSArray_String, _ = t._setArrayType([t.Index$(t._setArrayType(["id"], p), i, i, i), t.Index$(t._setArrayType(["doc_id"], p), i, i, i), t.Index$(t._setArrayType(["created_at"], p), i, i, i), t.Index$(t._setArrayType(["business_id"], p), i, i, i), t.Index$(t._setArrayType(["collectible_id"], p), i, i, i)], d.JSArray_Index), M = t._setArrayType([], p);
|
|
11494
|
-
return t.Schema_Schema$build(!1, "loyalty", t._setArrayType(["campaign", "promotion campaign", "marketing"], p), 2, i, M, "Marketing/loyalty campaign master, one row per campaign, with the window it ran in. Not a fact table, and voucher_claim does not key to it.", new t.campaignSchema_closure(), u.
|
|
11509
|
+
return t.Schema_Schema$build(!1, "loyalty", t._setArrayType(["campaign", "promotion campaign", "marketing"], p), 2, i, M, "Marketing/loyalty campaign master, one row per campaign, with the window it ran in. Not a fact table, and voucher_claim does not key to it.", new t.campaignSchema_closure(), u.List_empty0, i, _, i, !0, !0, !1, !1, !1, !1, new t.campaignSchema_closure0(), "Campaign", "campaigns", "campaign", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_64, i, i, a, a, i, !1, s, u.List_empty1, i, l);
|
|
11495
11510
|
}), e(q, "campaignTierSchema", "$get$campaignTierSchema", () => {
|
|
11496
11511
|
var a = "mongodb_marketing_db_campaigns", i = null, s = t.Source_Source$mongodb("tiers", "Campaigns"), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$business("businessId")], d.JSArray_Permission), i), p = d.JSArray_String, _ = t._setArrayType([t.Index$(t._setArrayType(["id"], p), i, i, i), t.Index$(t._setArrayType(["doc_id"], p), i, i, i), t.Index$(t._setArrayType(["created_at"], p), i, i, i), t.Index$(t._setArrayType(["business_id"], p), i, i, i)], d.JSArray_Index);
|
|
11497
|
-
return t.Schema_Schema$build(!1, "loyalty", u.
|
|
11512
|
+
return t.Schema_Schema$build(!1, "loyalty", u.List_empty, 3, i, t._setArrayType([], p), "One row per tier of a loyalty campaign: from_point to to_point is the experience range that qualifies for it — the POINT collectible, which the portal labels Experience — and an empty to_point has no upper bound. member_count is the count stored on the tier. Join it to campaign for tier names and ranks; it is configuration and has no time control.", new t.campaignTierSchema_closure(), u.List_empty0, i, _, i, !0, !0, !1, !1, !1, !1, new t.campaignTierSchema_closure0(), "Campaign tier", "campaign_tiers", "campaign_tier", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_67, i, i, a, a, i, !1, s, u.List_empty1, i, l);
|
|
11498
11513
|
}), e(q, "changePaymentActivitySchema", "$get$changePaymentActivitySchema", () => {
|
|
11499
11514
|
var a = "couchdb_bill", i = "createdAt", s = null, l = t.Source_Source$couchdb("changePaymentActivities", "bill"), p = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), i), _ = d.JSArray_String, M = t._setArrayType([t.Index$(t._setArrayType(["id"], _), s, s, s), t.Index$(t._setArrayType(["doc_id"], _), s, s, s), t.Index$(t._setArrayType(["restaurant_id", "created_at"], _), "idx_cpa_select_index", s, s), t.Index$(t._setArrayType(["bill_id"], _), s, s, s), t.Index$(t._setArrayType(["payment_id"], _), s, s, s), t.Index$(t._setArrayType(["published_at"], _), s, s, s)], d.JSArray_Index), b = t._setArrayType(["restaurantId"], _);
|
|
11500
|
-
return t.Schema_Schema$build(!1, "sales", t._setArrayType(["change payment", "payment method change", "payment activity", "change tender"], _), 2, s, b, "Audit log of payment-method changes made to completed bills.", new t.changePaymentActivitySchema_closure(), u.
|
|
11515
|
+
return t.Schema_Schema$build(!1, "sales", t._setArrayType(["change payment", "payment method change", "payment activity", "change tender"], _), 2, s, b, "Audit log of payment-method changes made to completed bills.", new t.changePaymentActivitySchema_closure(), u.List_empty0, s, M, 120, !1, !0, !1, !1, !1, !1, new t.changePaymentActivitySchema_closure0(), "Change Payment Activity", "change_payment_activities", "change_payment_activity", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_86, i, s, a, a, s, !0, l, u.List_empty1, s, p);
|
|
11501
11516
|
}), e(q, "chargeSchema", "$get$chargeSchema", () => {
|
|
11502
11517
|
var a = "couchdb_bill", i = "createdAt", s = null, l = t.Source_Source$couchdb("charges", "bill"), p = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), i), _ = d.JSArray_String, M = t._setArrayType([t.Index$(t._setArrayType(["id"], _), s, s, s), t.Index$(t._setArrayType(["doc_id"], _), s, s, s), t.Index$(t._setArrayType(["restaurant_id", "created_at"], _), "idx_charges_select_index", s, s), t.Index$(t._setArrayType(["bill_id"], _), s, s, s), t.Index$(t._setArrayType(["parent_id"], _), s, s, s), t.Index$(t._setArrayType(["published_at"], _), s, s, s)], d.JSArray_Index), b = t._setArrayType(["restaurantId"], _);
|
|
11503
|
-
return t.Schema_Schema$build(!1, "sales", t._setArrayType(["charge", "service charge", "tax", "gst", "sst", "fee", "bcrs", "container deposit"], _), 2, s, b, "Tax and fee lines on bills: service charge, SST/GST/VAT, rounding, and the BCRS container deposit (code BCRS: a pass-through deposit, not tax or sales; exclude it from tax totals).", new t.chargeSchema_closure(), u.
|
|
11518
|
+
return t.Schema_Schema$build(!1, "sales", t._setArrayType(["charge", "service charge", "tax", "gst", "sst", "fee", "bcrs", "container deposit"], _), 2, s, b, "Tax and fee lines on bills: service charge, SST/GST/VAT, rounding, and the BCRS container deposit (code BCRS: a pass-through deposit, not tax or sales; exclude it from tax totals).", new t.chargeSchema_closure(), u.List_empty0, s, M, 120, !1, !0, !1, !1, !1, !1, new t.chargeSchema_closure0(), "Charge", "charges", "charge", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_12, i, s, a, a, s, !0, l, u.List_empty1, s, p);
|
|
11504
11519
|
}), e(q, "closingDraftSchema", "$get$closingDraftSchema", () => {
|
|
11505
11520
|
var a = "couchdb_closing_draft", i = null, s = "createdAt", l = t.Source_Source$couchdb(i, "closingDraft"), p = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId"), t.Permission_Permission$warehouse("warehouseId")], d.JSArray_Permission), s), _ = d.JSArray_String, M = t._setArrayType([t.Index$(t._setArrayType(["id"], _), i, i, i), t.Index$(t._setArrayType(["doc_id"], _), i, i, i), t.Index$(t._setArrayType(["location_id", "created_at"], _), "idx_closing_draft_select_index", i, i), t.Index$(t._setArrayType(["published_at"], _), i, i, i), t.Index$(t._setArrayType(["closing_adjustment_id"], _), i, i, i)], d.JSArray_Index);
|
|
11506
|
-
return t.Schema_Schema$build(!1, "inventory", u.
|
|
11521
|
+
return t.Schema_Schema$build(!1, "inventory", u.List_empty, 3, i, t._setArrayType(["restaurantId"], _), "One row per stock take closing draft: its status, effective time, and the users who created, updated and approved it. Answers who is holding up a closing and when it was approved. Its SKU lines are in closing_draft_sku; closing_sku holds the counted balance and cost per SKU of a closing. created_at is when the draft was raised.", new t.closingDraftSchema_closure(), u.List_empty0, i, M, i, !0, !0, !1, !1, !1, !1, new t.closingDraftSchema_closure0(), "Closing draft", "closing_drafts", "closing_draft", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_26, s, `select *
|
|
11507
11522
|
from (
|
|
11508
11523
|
select
|
|
11509
11524
|
*,
|
|
@@ -11532,43 +11547,43 @@ from (
|
|
|
11532
11547
|
) as formatted_id
|
|
11533
11548
|
from closing_drafts
|
|
11534
11549
|
) t
|
|
11535
|
-
`, a, a, i, !0, l, u.
|
|
11550
|
+
`, a, a, i, !0, l, u.List_empty1, i, p);
|
|
11536
11551
|
}), e(q, "closingDraftSkuSchema", "$get$closingDraftSkuSchema", () => {
|
|
11537
11552
|
var a = "couchdb_closing_draft", i = "createdAt", s = null, l = t.Source_Source$couchdb("skus", "closingDraft"), p = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId"), t.Permission_Permission$warehouse("warehouseId")], d.JSArray_Permission), i), _ = d.JSArray_String, M = t._setArrayType([t.Index$(t._setArrayType(["id"], _), s, s, s), t.Index$(t._setArrayType(["doc_id"], _), s, s, s), t.Index$(t._setArrayType(["published_at"], _), s, s, s), t.Index$(t._setArrayType(["location_id", "created_at"], _), "idx_cds_select_index", s, s), t.Index$(t._setArrayType(["closing_adjustment_id", "sku_id"], _), "idx_cds_closing_sku_index", s, s)], d.JSArray_Index);
|
|
11538
|
-
return t.Schema_Schema$build(!1, "inventory", u.
|
|
11553
|
+
return t.Schema_Schema$build(!1, "inventory", u.List_empty, 3, s, t._setArrayType(["restaurantId"], _), s, new t.closingDraftSkuSchema_closure(), u.List_empty0, s, M, s, !0, !0, !1, !1, !0, !1, new t.closingDraftSkuSchema_closure0(), "Closing draft sku", "closing_draft_skus", "closing_draft_sku", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_27, i, s, a, a, s, !0, l, u.List_empty1, s, p);
|
|
11539
11554
|
}), e(q, "closingSkuSchema", "$get$closingSkuSchema", () => {
|
|
11540
11555
|
var a = "couchdb_closing", i = "createdAt", s = null, l = t.Source_Source$couchdb("skus", "closing"), p = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId"), t.Permission_Permission$warehouse("warehouseId")], d.JSArray_Permission), i), _ = d.JSArray_String, M = t._setArrayType([t.Index$(t._setArrayType(["id"], _), s, s, s), t.Index$(t._setArrayType(["doc_id"], _), s, s, s), t.Index$(t._setArrayType(["created_at"], _), s, s, s), t.Index$(t._setArrayType(["location_id"], _), s, s, s), t.Index$(t._setArrayType(["published_at"], _), s, s, s)], d.JSArray_Index), b = t._setArrayType(["restaurantId"], _);
|
|
11541
|
-
return t.Schema_Schema$build(!1, "inventory", t._setArrayType(["closing", "stock take", "physical count", "stocktake"], _), 2, s, b, "Physical stock-take count per SKU per closing session.", new t.closingSkuSchema_closure(), u.
|
|
11556
|
+
return t.Schema_Schema$build(!1, "inventory", t._setArrayType(["closing", "stock take", "physical count", "stocktake"], _), 2, s, b, "Physical stock-take count per SKU per closing session.", new t.closingSkuSchema_closure(), u.List_empty0, s, M, s, !0, !0, !1, !1, !1, !1, new t.closingSkuSchema_closure0(), "Closing sku", "closing_skus", "closing_sku", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_25, i, s, a, a, s, !0, l, u.List_empty1, s, p);
|
|
11542
11557
|
}), e(q, "collectibleCollectionSchema", "$get$collectibleCollectionSchema", () => {
|
|
11543
11558
|
var a = "mongodb_marketing_db_collections", i = null, s = "createdAt", l = t.Source_Source$mongodb(i, "Collections"), p = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$business("businessId")], d.JSArray_Permission), s), _ = d.JSArray_String, M = t._setArrayType([t.Index$(t._setArrayType(["id"], _), i, i, i), t.Index$(t._setArrayType(["doc_id"], _), i, i, i), t.Index$(t._setArrayType(["created_at"], _), i, i, i), t.Index$(t._setArrayType(["business_id"], _), i, i, i), t.Index$(t._setArrayType(["user_id", "type"], _), i, i, i)], d.JSArray_Index);
|
|
11544
|
-
return t.Schema_Schema$build(!1, "loyalty", u.
|
|
11559
|
+
return t.Schema_Schema$build(!1, "loyalty", u.List_empty, 3, i, t._setArrayType([], _), "One row per holding of a collectible: VOUCHER and GAME get one row per issued item, carrying its code and max_use, while every other kind keeps one active row per member per collectible. type is the kind, labelled as in collectible_config. There is no balance column — the running balance of a stackable kind is to_balance on its latest collectible_transaction, and expiry, applied time and applied count are read back from those transactions too. created_at is when the holding was created; join member for the holder.", new t.collectibleCollectionSchema_closure(), u.List_empty0, i, M, i, !0, !0, !1, !1, !1, !1, new t.collectibleCollectionSchema_closure0(), "Collectible collection", "collectible_collections", "collectible_collection", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_70, s, i, a, a, i, !0, l, u.List_empty1, i, p);
|
|
11545
11560
|
}), e(q, "collectibleConfigSchema", "$get$collectibleConfigSchema", () => {
|
|
11546
11561
|
var a = "mongodb_marketing_db_collectible_configs", i = null, s = t.Source_Source$mongodb(i, "CollectibleConfigs"), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$business("businessId")], d.JSArray_Permission), i), p = d.JSArray_String, _ = t._setArrayType([t.Index$(t._setArrayType(["id"], p), i, i, i), t.Index$(t._setArrayType(["doc_id"], p), i, i, i), t.Index$(t._setArrayType(["created_at"], p), i, i, i), t.Index$(t._setArrayType(["business_id"], p), i, i, i)], d.JSArray_Index);
|
|
11547
|
-
return t.Schema_Schema$build(!1, "loyalty", u.
|
|
11562
|
+
return t.Schema_Schema$build(!1, "loyalty", u.List_empty, 3, i, t._setArrayType([], p), "One row per collectible a business issues, with its caps. type is the kind — VOUCHER, CREDIT, POINT, COIN, TIER, TITLE, GAME, STAMP or REFERRAL — and the portal labels three of them differently: COIN shows as Point, POINT as Experience, GAME as Token. VOUCHER is the v2 voucher; voucher_claim holds the v1 ones. A master for names and rules: the movements are in collectible_transaction and the holdings in collectible_collection, and it has no time control.", new t.collectibleConfigSchema_closure(), u.List_empty0, i, _, i, !0, !0, !1, !1, !1, !1, new t.collectibleConfigSchema_closure0(), "Collectible config", "collectible_configs", "collectible_config", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_65, i, i, a, a, i, !1, s, u.List_empty1, i, l);
|
|
11548
11563
|
}), e(q, "collectibleTransactionSchema", "$get$collectibleTransactionSchema", () => {
|
|
11549
11564
|
var a = "mongodb_marketing_db_transactions", i = "createdAt", s = null, l = t.Source_Source$mongodb("amounts", "Transactions"), p = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$business("businessId")], d.JSArray_Permission), i), _ = d.JSArray_String, M = t._setArrayType([t.Index$(t._setArrayType(["id"], _), s, s, s), t.Index$(t._setArrayType(["doc_id"], _), s, s, s), t.Index$(t._setArrayType(["created_at"], _), s, s, s), t.Index$(t._setArrayType(["business_id"], _), s, s, s), t.Index$(t._setArrayType(["collection_id"], _), s, s, s), t.Index$(t._setArrayType(["business_id", "created_at"], _), "idx_collectible_transactions_select_index", s, s), t.Index$(t._setArrayType(["ref_id"], _), s, s, s), t.Index$(t._setArrayType(["user_id"], _), s, s, s)], d.JSArray_Index);
|
|
11550
|
-
return t.Schema_Schema$build(!1, "loyalty", u.
|
|
11565
|
+
return t.Schema_Schema$build(!1, "loyalty", u.List_empty, 3, s, t._setArrayType([], _), "One row per movement of a v2 collectible, granted, used, returned or expired, for every kind — vouchers, credit, stamps and the rest. The row carries no kind: filter on collectible_collection.type or collectible_config.type, where VOUCHER is the v2 voucher and voucher_claim holds the v1 ones. amount already carries its sign, so prefer qty_distributed, qty_usage and qty_expired; transformed_source renames only PORTAL, BENEFIT, CYCLE, BILL and ORDER and passes every other source, such as STORE, CASHBACK, STAMP_REWARD or REFERRAL, through as it is. created_at is when the movement happened, and it joins member, campaign, collectible_config, its collection, and the bill or store transaction in ref_id.", new t.collectibleTransactionSchema_closure(), u.List_empty0, s, M, s, !0, !0, !1, !1, !1, !1, new t.collectibleTransactionSchema_closure0(), "Collectible transaction", "collectible_transactions", "collectible_transaction", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_66, i, s, a, a, s, !0, l, u.List_empty1, s, p);
|
|
11551
11566
|
}), e(q, "completeTimeBillSchema", "$get$completeTimeBillSchema", () => {
|
|
11552
11567
|
var a = null, i = t.Source_Source$couchdb(a, ""), s = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), "completedAt");
|
|
11553
|
-
return t.Schema_Schema$build(!1, "sales", u.
|
|
11568
|
+
return t.Schema_Schema$build(!1, "sales", u.List_empty, 3, a, t._setArrayType(["restaurantId"], d.JSArray_String), "bill keyed by completion time instead of creation time — use only when the question is about when bills completed.", new t.completeTimeBillSchema_closure(), u.List_empty0, a, a, a, !0, !1, !1, !1, !1, !1, new t.completeTimeBillSchema_closure0(), "Bill (Complete time)", "bills", "bill", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_1, "createdAt", a, "", "", a, !0, i, u.List_empty1, a, s);
|
|
11554
11569
|
}), e(q, "counterSchema", "$get$counterSchema", () => {
|
|
11555
11570
|
var a = "couchdb_counter", i = null, s = "createdAt", l = t.Source_Source$couchdb(i, "counter"), p = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), s), _ = d.JSArray_String, M = t._setArrayType([t.Index$(t._setArrayType(["id"], _), i, i, i), t.Index$(t._setArrayType(["doc_id"], _), i, i, i), t.Index$(t._setArrayType(["restaurant_id"], _), i, i, i)], d.JSArray_Index), b = t._setArrayType(["restaurantId"], _);
|
|
11556
|
-
return t.Schema_Schema$build(!1, "operations", t._setArrayType(["counter", "pos", "terminal", "register"], _), 2, i, b, "POS counter/terminal master, one row per counter. Join it for counter names; not a fact table.", new t.counterSchema_closure(), u.
|
|
11571
|
+
return t.Schema_Schema$build(!1, "operations", t._setArrayType(["counter", "pos", "terminal", "register"], _), 2, i, b, "POS counter/terminal master, one row per counter. Join it for counter names; not a fact table.", new t.counterSchema_closure(), u.List_empty0, i, M, i, !0, !0, !1, !1, !1, !1, new t.counterSchema_closure0(), "Counter", "counters", "counter", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_3, s, i, a, a, i, !0, l, u.List_empty1, i, p);
|
|
11557
11572
|
}), e(q, "creditTransactionSchema", "$get$creditTransactionSchema", () => {
|
|
11558
11573
|
var a = null, i = "createdAt", s = t.Source_Source$mongodb(a, "CreditTransactions"), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$business("businessId"), t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), i), p = d.JSArray_String, _ = t._setArrayType([t.Index$(t._setArrayType(["id"], p), a, a, a), t.Index$(t._setArrayType(["doc_id"], p), a, a, a), t.Index$(t._setArrayType(["created_at"], p), a, a, a), t.Index$(t._setArrayType(["restaurant_id"], p), a, a, a), t.Index$(t._setArrayType(["business_id"], p), a, a, a)], d.JSArray_Index), M = t._setArrayType(["restaurantId"], p);
|
|
11559
|
-
return t.Schema_Schema$build(!1, "loyalty", t._setArrayType(["credit", "point", "reward point", "loyalty point"], p), 2, t.Canonical$(u.Map_empty, t._setArrayType(["total_amount", "normal_amount", "free_amount"], p), u.
|
|
11574
|
+
return t.Schema_Schema$build(!1, "loyalty", t._setArrayType(["credit", "point", "reward point", "loyalty point"], p), 2, t.Canonical$(u.Map_empty, t._setArrayType(["total_amount", "normal_amount", "free_amount"], p), u.List_empty), M, "Loyalty credit ledger of the older CRM: one row per credit movement on a member. Earn and redeem are both rows here; member holds only the resulting balance. Amounts are in sen, hundredths of the currency unit.", new t.creditTransactionSchema_closure(), u.List_empty0, a, _, a, !0, !0, !1, !1, !1, !1, new t.creditTransactionSchema_closure0(), "Credit transaction", "credit_transactions", "credit_transaction", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_54, i, a, "mongodb_credit_transactions", "mongodb_company_db_credit_transactions", a, !0, s, u.List_empty1, a, l);
|
|
11560
11575
|
}), e(q, "dailyForecastSalesSchema", "$get$dailyForecastSalesSchema", () => {
|
|
11561
11576
|
var a, i, s = "benchmark_daily_sales_forecast", l = "daily_forecast_sales", p = "createdAt", _ = null, M = d.JSArray_String, b = t._setArrayType(["restaurant_id", "forecast_date", "training_period", "forecast_period", "model_version"], M);
|
|
11562
|
-
return b = t.Source_Source$bigquery("feedme_dbt_mart_data", t._setArrayType(["forecast_date"], M), s, "published_at", b), a = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), p), i = t._setArrayType([t.Index$(t._setArrayType(["id"], M), _, _, _), t.Index$(t._setArrayType(["doc_id"], M), _, _, _), t.Index$(t._setArrayType(["restaurant_id", "created_at"], M), _, _, _)], d.JSArray_Index), t.Schema_Schema$build(!1, "forecast", u.
|
|
11577
|
+
return b = t.Source_Source$bigquery("feedme_dbt_mart_data", t._setArrayType(["forecast_date"], M), s, "published_at", b), a = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), p), i = t._setArrayType([t.Index$(t._setArrayType(["id"], M), _, _, _), t.Index$(t._setArrayType(["doc_id"], M), _, _, _), t.Index$(t._setArrayType(["restaurant_id", "created_at"], M), _, _, _)], d.JSArray_Index), t.Schema_Schema$build(!1, "forecast", u.List_empty, 3, _, t._setArrayType(["restaurantId"], M), "One row per outlet per forecast day per model run, where predicted is the forecast sales figure. created_at is the day being forecast, not when the model ran. Rows repeat across training_period, forecast_period and model_version, so pin one combination before summing. Join bill on outlet and day to compare the forecast against actual sales.", new t.dailyForecastSalesSchema_closure(), u.List_empty0, _, i, 43200, !0, !0, !1, !1, !1, !1, new t.dailyForecastSalesSchema_closure0(), "Daily Forecast Sale", l, l, u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_84, p, _, s, s, _, !0, b, u.List_empty1, _, a);
|
|
11563
11578
|
}), e(q, "depositSchema", "$get$depositSchema", () => {
|
|
11564
11579
|
var a = null, i = "createdAt", s = t.Source_Source$mongodb(a, "Deposits"), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$business("businessId"), t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), i), p = d.JSArray_String, _ = t._setArrayType([t.Index$(t._setArrayType(["id"], p), a, a, a), t.Index$(t._setArrayType(["doc_id"], p), a, a, a), t.Index$(t._setArrayType(["created_at"], p), a, a, a), t.Index$(t._setArrayType(["business_id"], p), a, a, a), t.Index$(t._setArrayType(["restaurant_id"], p), a, a, a), t.Index$(t._setArrayType(["restaurant_id", "created_at"], p), "idx_deposits_select_index", a, a), t.Index$(t._setArrayType(["applied_bill_id"], p), a, a, a)], d.JSArray_Index);
|
|
11565
|
-
return t.Schema_Schema$build(!1, "sales", u.
|
|
11580
|
+
return t.Schema_Schema$build(!1, "sales", u.List_empty, 3, a, t._setArrayType(["restaurantId"], p), "One row per customer deposit taken for a booking: what was collected, applied to a bill, refunded, forfeited or left outstanding. Answers deposit liability through outstanding_amount and deposit income through deposit_income_amount, the money kept that never reaches a bill. created_at is when the deposit was raised; deposit_transaction is the per-event timeline, and applied_bill_id joins the bill the deposit was spent on.", new t.depositSchema_closure(), u.List_empty0, a, _, a, !0, !0, !1, !1, !1, !1, new t.depositSchema_closure0(), "Deposit", "deposits", "deposit", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_116, i, a, "mongodb_deposits", "mongodb_company_db_deposits", a, !0, s, t._setArrayType([t.Split$(t._setArrayType(["applied_amount", "cash_out_amount", "deposit_income_amount", "outstanding_amount"], p), "collected_amount")], d.JSArray_Split), a, l);
|
|
11566
11581
|
}), e(q, "depositTransactionSchema", "$get$depositTransactionSchema", () => {
|
|
11567
11582
|
var a = null, i = t.Source_Source$mongodb("transactions", "Deposits"), s = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$business("businessId"), t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), "eventAt"), l = d.JSArray_String, p = t._setArrayType([t.Index$(t._setArrayType(["id"], l), a, a, a), t.Index$(t._setArrayType(["doc_id"], l), a, a, a), t.Index$(t._setArrayType(["deposit_id"], l), a, a, a), t.Index$(t._setArrayType(["business_id"], l), a, a, a), t.Index$(t._setArrayType(["restaurant_id", "event_at"], l), "idx_deposit_transactions_select_index", a, a), t.Index$(t._setArrayType(["bill_id"], l), a, a, a)], d.JSArray_Index);
|
|
11568
|
-
return t.Schema_Schema$build(!1, "sales", u.
|
|
11583
|
+
return t.Schema_Schema$build(!1, "sales", u.List_empty, 3, a, t._setArrayType(["restaurantId"], l), "One row per event in the life of a deposit: created, paid, applied, refunded or forfeited. Time control is event_at, when the event happened, while created_at stays the creation time of the deposit itself. net_cash_amount is the bank statement line (cash in less cash out), liability_change the deposit owed to customers, and income_amount the part kept as income. deposit carries one row per deposit with the same totals.", new t.depositTransactionSchema_closure(), u.List_empty0, a, p, a, !0, !0, !1, !1, !1, !1, new t.depositTransactionSchema_closure0(), "Deposit transaction", "deposit_transactions", "deposit_transaction", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_117, "createdAt", a, "mongodb_deposits", "mongodb_company_db_deposits", a, !0, i, u.List_empty1, a, s);
|
|
11569
11584
|
}), e(q, "discountSchema", "$get$discountSchema", () => {
|
|
11570
11585
|
var a = null, i = "createdAt", s = t.Source_Source$couchdb(a, ""), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), i);
|
|
11571
|
-
return t.Schema_Schema$build(!1, "sales", u.
|
|
11586
|
+
return t.Schema_Schema$build(!1, "sales", u.List_empty, 3, a, t._setArrayType(["restaurantId"], d.JSArray_String), "Combined discount view across adjustments and payments.", new t.discountSchema_closure(), u.List_empty0, a, a, a, !0, !1, !1, !1, !1, !1, new t.discountSchema_closure0(), "Discount (Adjustment, Payment)", "adjustments", "adjustment", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_20, i, `select
|
|
11572
11587
|
u.id,
|
|
11573
11588
|
u.restaurant_id,
|
|
11574
11589
|
u.created_at,
|
|
@@ -11635,55 +11650,55 @@ select
|
|
|
11635
11650
|
from payments
|
|
11636
11651
|
where name = 'PAYMENT VOUCHER'
|
|
11637
11652
|
) u
|
|
11638
|
-
`, "", "", t.ReadPiece$(7, 8), !0, s, u.
|
|
11653
|
+
`, "", "", t.ReadPiece$(7, 8), !0, s, u.List_empty1, a, l);
|
|
11639
11654
|
}), e(q, "drawerSchema", "$get$drawerSchema", () => {
|
|
11640
11655
|
var a = "couchdb_drawer", i = null, s = "createdAt", l = t.Source_Source$couchdb(i, "drawer"), p = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), s), _ = d.JSArray_String, M = t._setArrayType([t.Index$(t._setArrayType(["id"], _), i, i, i), t.Index$(t._setArrayType(["doc_id"], _), i, i, i), t.Index$(t._setArrayType(["created_at"], _), i, i, i), t.Index$(t._setArrayType(["restaurant_id"], _), i, i, i), t.Index$(t._setArrayType(["restaurant_id", "created_at"], _), "idx_drawers_select_index", i, i)], d.JSArray_Index), b = t._setArrayType(["restaurantId"], _);
|
|
11641
|
-
return t.Schema_Schema$build(!1, "operations", t._setArrayType(["drawer", "cash drawer", "float", "petty cash", "cash management"], _), 2, i, b, "Cash-drawer operations: float, petty cash in/out.", new t.drawerSchema_closure(), u.
|
|
11656
|
+
return t.Schema_Schema$build(!1, "operations", t._setArrayType(["drawer", "cash drawer", "float", "petty cash", "cash management"], _), 2, i, b, "Cash-drawer operations: float, petty cash in/out.", new t.drawerSchema_closure(), u.List_empty0, i, M, i, !1, !0, !1, !1, !1, !1, new t.drawerSchema_closure0(), "Drawer", "drawers", "drawer", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_4, s, i, a, a, i, !0, l, u.List_empty1, i, p);
|
|
11642
11657
|
}), e(q, "flattenItemSchema", "$get$flattenItemSchema", () => {
|
|
11643
11658
|
var a = "couchdb_bill", i = "createdAt", s = null, l = t.Source_Source$couchdb("flattenItems", "bill"), p = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), i), _ = d.JSArray_String, M = t._setArrayType([t.Index$(t._setArrayType(["id"], _), s, s, s), t.Index$(t._setArrayType(["doc_id"], _), s, s, s), t.Index$(t._setArrayType(["restaurant_id", "created_at"], _), "idx_flatten_items_select_index", s, s), t.Index$(t._setArrayType(["bill_id"], _), s, s, s), t.Index$(t._setArrayType(["parent_id"], _), s, s, s), t.Index$(t._setArrayType(["published_at"], _), s, s, s)], d.JSArray_Index), b = t._setArrayType(["restaurantId"], _), O = t.ReadPiece$(7, 3), D = t._setArrayType(["sales", "revenue", "sold", "item sold", "product sold", "quantity", "grabfood", "foodpanda", "delivery", "online order", "platform", "channel", "order type"], _), $ = t._setArrayType(["nett_total", "quantity"], _), E = t._setArrayType(["status <> 'VOIDED'", "bill.status IN ('COMPLETED', 'REFUNDED')"], _);
|
|
11644
|
-
return t.Schema_Schema$build(!1, "sales", D, 1, t.Canonical$(t.LinkedHashMap_LinkedHashMap$_literal(["nett_total", t._setArrayType(["layer = 0"], _)], d.String, d.List_String), $, E), b, "One row per line item sold, with the lines under it (layer 1+): its options, or the products sold inside a set. Product-level sales fact; join bill on bill_id for bill status/type filters.", new t.flattenItemSchema_closure(), u.
|
|
11659
|
+
return t.Schema_Schema$build(!1, "sales", D, 1, t.Canonical$(t.LinkedHashMap_LinkedHashMap$_literal(["nett_total", t._setArrayType(["layer = 0"], _)], d.String, d.List_String), $, E), b, "One row per line item sold, with the lines under it (layer 1+): its options, or the products sold inside a set. Product-level sales fact; join bill on bill_id for bill status/type filters.", new t.flattenItemSchema_closure(), u.List_empty0, t.Hierarchy$("layer", "parent_id", "0", "layer_zero_parent_id"), M, 120, !1, !0, !1, !1, !1, !1, new t.flattenItemSchema_closure0(), "Product", "flatten_items", "flatten_item", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_5, i, s, a, a, O, !0, l, u.List_empty1, s, p);
|
|
11645
11660
|
}), e(q, "hourlyForecastSalesSchema", "$get$hourlyForecastSalesSchema", () => {
|
|
11646
11661
|
var a = "benchmark_hourly_sales_forecast", i = "hourly_forecast_sales", s = null, l = "createdAt", p = d.JSArray_String, _ = t.Source_Source$bigquery("feedme_dbt_mart_data", s, a, "published_at", t._setArrayType(["restaurant_id", "forecast_timestamp", "training_period", "forecast_period", "model_version"], p)), M = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), l), b = t._setArrayType([t.Index$(t._setArrayType(["id"], p), s, s, s), t.Index$(t._setArrayType(["doc_id"], p), s, s, s), t.Index$(t._setArrayType(["restaurant_id", "created_at"], p), s, s, s)], d.JSArray_Index);
|
|
11647
|
-
return t.Schema_Schema$build(!1, "forecast", u.
|
|
11648
|
-
}), e(q, "defaultSchemas", "$get$defaultSchemas", () => t._setArrayType([q.$get$billSchema(), q.$get$completeTimeBillSchema(), q.$get$counterSchema(), q.$get$drawerSchema(), q.$get$flattenItemSchema(), q.$get$addonFlattenItemSchema(), q.$get$parentFlattenItemSchema(), q.$get$itemSchema(), q.$get$subItemSchema(), q.$get$paymentSchema(), q.$get$chargeSchema(), q.$get$paymentTimePaymentSchema(), q.$get$recordSchema(), q.$get$slotSchema(), q.$get$staffSchema(), q.$get$timesheetSchema(), q.$get$adjustmentSchema(), q.$get$discountSchema(), q.$get$inventoryAdjustmentSchema(), q.$get$inventoryAdjustmentSkuSchema(), q.$get$internalPurchaseOrderSchema(), q.$get$internalPurchaseOrderItemSchema(), q.$get$internalPurchaseOrderDeliveryOrderSchema(), q.$get$internalPurchaseOrderDeliveryOrderSkuSchema(), q.$get$internalPurchaseOrderDeliveryFulfillmentSchema(), q.$get$internalPurchaseOrderDeliveryFulfillmentSkuSchema(), q.$get$purchaseOrderSchema(), q.$get$purchaseOrderItemSchema(), q.$get$promotionSchema(), q.$get$productPosOverrideV4ItemSchema(), q.$get$purchaseOrderTemplateSchema(), q.$get$purchaseOrderTemplateItemSchema(), q.$get$purchaseOrderDeliveryOrderSchema(), q.$get$purchaseOrderDeliveryOrderSkuSchema(), q.$get$purchaseOrderDeliveryFulfillmentSchema(), q.$get$purchaseOrderDeliveryFulfillmentSkuSchema(), q.$get$restaurantSchema(), q.$get$restaurantFeatureSchema(), q.$get$businessSchema(), q.$get$userSchema(), q.$get$voucherClaimSchema(), q.$get$voucherClaimRedemptionSchema(), q.$get$restaurantLocationSchema(), q.$get$warehouseLocationSchema(), q.$get$memberSchema(), q.$get$memberV2Schema(), q.$get$memberStorePurchaseSchema(), q.$get$memberStorePurchasePaymentSchema(), q.$get$membershipSchema(), q.$get$membershipTitleSchema(), q.$get$memberTitleSchema(), q.$get$menuV3GroupSchema(), q.$get$menuV4GroupSchema(), q.$get$menuV3SkuSchema(), q.$get$menuV4SkuSchema(), q.$get$menuV3ItemSchema(), q.$get$menuV4ItemSchema(), q.$get$menuV4CatalogItemSchema(), q.$get$creditTransactionSchema(), q.$get$stockSchema(), q.$get$recommendationCallSchema(), q.$get$reviewSchema(), q.$get$campaignSchema(), q.$get$collectibleConfigSchema(), q.$get$collectibleTransactionSchema(), q.$get$campaignTierSchema(), q.$get$storeTransactionSchema(), q.$get$storeBundleSchema(), q.$get$collectibleCollectionSchema(), q.$get$titleCollectionSchema(), q.$get$kitchenStationSchema(), q.$get$refundBillSchema(), q.$get$timesheetRecordSchema(), q.$get$inventoryAdjustmentPhysicalSkuSchema(), q.$get$menuV4ItemInventoryBindingSchema(), q.$get$inventoryV1FlattenInventorySchema(), q.$get$inventoryV1SkuSchema(), q.$get$inventoryV1RecipeSchema(), q.$get$itemMovementSchema(), q.$get$closingSkuSchema(), q.$get$closingDraftSchema(), q.$get$closingDraftSkuSchema(), q.$get$unitCostHistorySchema(), q.$get$vnEInvoiceSubmissionSchema(), q.$get$dailyForecastSalesSchema(), q.$get$hourlyForecastSalesSchema(), q.$get$changePaymentActivitySchema(), q.$get$salePaymentSchema(), q.$get$saleTransactionSchema(), q.$get$posOverrideItemLogSchema(), q.$get$wastageItemSchema(), q.$get$inventorySkuBalanceSchema(), q.$get$smsCreditTransactionSchema(), q.$get$remoteOrderSchema(), q.$get$remoteOrderFlattenItemSchema(), q.$get$remoteOrderAddonFlattenItemSchema(), q.$get$remoteOrderParentFlattenItemSchema(), q.$get$tplGrabfoodOrderSchema(), q.$get$tplFoodpandaOrderSchema(), q.$get$tplShopeeFoodOrderSchema(), q.$get$tplOrderSchema(), q.$get$tplGrabfoodSettingSchema(), q.$get$tplFoodpandaSettingSchema(), q.$get$tplShopeeFoodSettingSchema(), q.$get$remotePickupOrderSchema(), q.$get$remotePickupOrderFlattenItemSchema(), q.$get$internalMyEInvoiceSubmissionSchema(), q.$get$internalMyEInvoiceSubmissionDocumentSchema(), q.$get$internalMyEInvoiceDocumentSchema(), q.$get$myEInvoiceSubmissionSchema(), q.$get$thEInvoiceSubmissionSchema(), q.$get$printActivitySchema(), q.$get$depositSchema(), q.$get$depositTransactionSchema(), q.$get$billAuditLogSchema()], t.findType("JSArray<Schema>"))), e(q, "internalMyEInvoiceDocumentSchema", "$get$internalMyEInvoiceDocumentSchema", () => {
|
|
11662
|
+
return t.Schema_Schema$build(!1, "forecast", u.List_empty, 3, s, t._setArrayType(["restaurantId"], p), "One row per outlet per forecast hour per model run, where predicted is the forecast sales figure. created_at is the hour being forecast, not when the model ran. Rows repeat across training_period, forecast_period and model_version, so pin one combination before summing. daily_forecast_sale is the same forecast by day.", new t.hourlyForecastSalesSchema_closure(), u.List_empty0, s, b, 43200, !0, !0, !1, !1, !1, !1, new t.hourlyForecastSalesSchema_closure0(), "Hourly Forecast Sale", i, i, u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_85, l, s, a, a, t.ReadPiece$(7, 24), !0, _, u.List_empty1, s, M);
|
|
11663
|
+
}), e(q, "defaultSchemas", "$get$defaultSchemas", () => t._setArrayType([q.$get$billSchema(), q.$get$completeTimeBillSchema(), q.$get$counterSchema(), q.$get$drawerSchema(), q.$get$flattenItemSchema(), q.$get$addonFlattenItemSchema(), q.$get$parentFlattenItemSchema(), q.$get$itemSchema(), q.$get$subItemSchema(), q.$get$paymentSchema(), q.$get$chargeSchema(), q.$get$paymentTimePaymentSchema(), q.$get$recordSchema(), q.$get$slotSchema(), q.$get$staffSchema(), q.$get$timesheetSchema(), q.$get$adjustmentSchema(), q.$get$discountSchema(), q.$get$inventoryAdjustmentSchema(), q.$get$inventoryAdjustmentSkuSchema(), q.$get$internalPurchaseOrderSchema(), q.$get$internalPurchaseOrderItemSchema(), q.$get$internalPurchaseOrderDeliveryOrderSchema(), q.$get$internalPurchaseOrderDeliveryOrderSkuSchema(), q.$get$internalPurchaseOrderDeliveryFulfillmentSchema(), q.$get$internalPurchaseOrderDeliveryFulfillmentSkuSchema(), q.$get$purchaseOrderSchema(), q.$get$purchaseOrderItemSchema(), q.$get$promotionSchema(), q.$get$productPosOverrideV4ItemSchema(), q.$get$purchaseOrderTemplateSchema(), q.$get$purchaseOrderTemplateItemSchema(), q.$get$purchaseOrderDeliveryOrderSchema(), q.$get$purchaseOrderDeliveryOrderSkuSchema(), q.$get$purchaseOrderDeliveryFulfillmentSchema(), q.$get$purchaseOrderDeliveryFulfillmentSkuSchema(), q.$get$restaurantSchema(), q.$get$restaurantFeatureSchema(), q.$get$businessSchema(), q.$get$userSchema(), q.$get$voucherClaimSchema(), q.$get$voucherClaimRedemptionSchema(), q.$get$restaurantLocationSchema(), q.$get$warehouseLocationSchema(), q.$get$memberSchema(), q.$get$memberV2Schema(), q.$get$memberStorePurchaseSchema(), q.$get$memberStorePurchasePaymentSchema(), q.$get$membershipSchema(), q.$get$membershipTitleSchema(), q.$get$memberTitleSchema(), q.$get$menuV3GroupSchema(), q.$get$menuV4GroupSchema(), q.$get$menuV3SkuSchema(), q.$get$menuV4SkuSchema(), q.$get$menuV3ItemSchema(), q.$get$menuV4ItemSchema(), q.$get$menuV4CatalogItemSchema(), q.$get$creditTransactionSchema(), q.$get$stockSchema(), q.$get$recommendationCallSchema(), q.$get$reviewSchema(), q.$get$campaignSchema(), q.$get$collectibleConfigSchema(), q.$get$collectibleTransactionSchema(), q.$get$campaignTierSchema(), q.$get$storeTransactionSchema(), q.$get$storeBundleSchema(), q.$get$collectibleCollectionSchema(), q.$get$titleCollectionSchema(), q.$get$kitchenStationSchema(), q.$get$refundBillSchema(), q.$get$timesheetRecordSchema(), q.$get$inventoryAdjustmentPhysicalSkuSchema(), q.$get$menuV4ItemInventoryBindingSchema(), q.$get$inventoryV1FlattenInventorySchema(), q.$get$inventoryV1SkuSchema(), q.$get$inventoryV1RecipeSchema(), q.$get$itemMovementSchema(), q.$get$closingSkuSchema(), q.$get$closingDraftSchema(), q.$get$closingDraftSkuSchema(), q.$get$unitCostHistorySchema(), q.$get$vnEInvoiceSubmissionSchema(), q.$get$dailyForecastSalesSchema(), q.$get$hourlyForecastSalesSchema(), q.$get$changePaymentActivitySchema(), q.$get$salePaymentSchema(), q.$get$saleTransactionSchema(), q.$get$posOverrideItemLogSchema(), q.$get$wastageItemSchema(), q.$get$inventorySkuBalanceSchema(), q.$get$smsCreditTransactionSchema(), q.$get$remoteOrderSchema(), q.$get$remoteOrderFlattenItemSchema(), q.$get$remoteOrderAddonFlattenItemSchema(), q.$get$remoteOrderParentFlattenItemSchema(), q.$get$tplGrabfoodOrderSchema(), q.$get$tplFoodpandaOrderSchema(), q.$get$tplShopeeFoodOrderSchema(), q.$get$tplOrderSchema(), q.$get$tplGrabfoodSettingSchema(), q.$get$tplFoodpandaSettingSchema(), q.$get$tplShopeeFoodSettingSchema(), q.$get$remotePickupOrderSchema(), q.$get$remotePickupOrderFlattenItemSchema(), q.$get$internalMyEInvoiceSubmissionSchema(), q.$get$internalMyEInvoiceSubmissionDocumentSchema(), q.$get$internalMyEInvoiceDocumentSchema(), q.$get$myEInvoiceSubmissionSchema(), q.$get$thEInvoiceSubmissionSchema(), q.$get$printActivitySchema(), q.$get$depositSchema(), q.$get$depositTransactionSchema(), q.$get$billAuditLogSchema(), q.$get$masterUserSchema()], t.findType("JSArray<Schema>"))), e(q, "internalMyEInvoiceDocumentSchema", "$get$internalMyEInvoiceDocumentSchema", () => {
|
|
11649
11664
|
var a = "createdAt", i = null, s = t.Source_Source$mongodb("bills", "EInvoiceDocuments"), l = t.TopLevelFilters$(t._setArrayType([], d.JSArray_Permission), a), p = d.JSArray_String, _ = t._setArrayType([t.Index$(t._setArrayType(["id"], p), i, i, i), t.Index$(t._setArrayType(["doc_id"], p), i, i, i), t.Index$(t._setArrayType(["document_id"], p), i, i, i), t.Index$(t._setArrayType(["bill_id"], p), i, i, i)], d.JSArray_Index), M = t._setArrayType([], p);
|
|
11650
|
-
return t.Schema_Schema$build(!1, "compliance", t._setArrayType(["invoice", "e-invoice", "document", "my", "malaysia", "lhdn", "myinvois", "consolidated"], p), 3, i, M, "Malaysia LHDN e-invoice document, internal pipeline detail — prefer my_e_invoice_submission for merchant reporting.", new t.internalMyEInvoiceDocumentSchema_closure(), u.
|
|
11665
|
+
return t.Schema_Schema$build(!1, "compliance", t._setArrayType(["invoice", "e-invoice", "document", "my", "malaysia", "lhdn", "myinvois", "consolidated"], p), 3, i, M, "Malaysia LHDN e-invoice document, internal pipeline detail — prefer my_e_invoice_submission for merchant reporting.", new t.internalMyEInvoiceDocumentSchema_closure(), u.List_empty0, i, _, i, !1, !0, !1, !1, !1, !0, new t.internalMyEInvoiceDocumentSchema_closure0(), "MY E-Invoice Document", "my_e_invoice_documents", "my_e_invoice_document", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_112, a, i, "mongodb_e_invoice_documents", "mongodb_company_db_e_invoice_documents", i, !0, s, u.List_empty1, i, l);
|
|
11651
11666
|
}), e(q, "internalMyEInvoiceSubmissionSchema", "$get$internalMyEInvoiceSubmissionSchema", () => {
|
|
11652
11667
|
var a = null, i = "createdAt", s = t.Source_Source$mongodb(a, "EInvoiceSubmissions"), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), i), p = d.JSArray_String, _ = t._setArrayType([t.Index$(t._setArrayType(["id"], p), a, a, a), t.Index$(t._setArrayType(["doc_id"], p), a, a, a), t.Index$(t._setArrayType(["restaurant_id", "created_at"], p), "idx_myeinvoicesub_select_index", a, a), t.Index$(t._setArrayType(["submission_uid"], p), a, a, a)], d.JSArray_Index), M = t._setArrayType([], p);
|
|
11653
|
-
return t.Schema_Schema$build(!1, "compliance", t._setArrayType(["invoice", "e-invoice", "submission", "my", "malaysia", "lhdn", "myinvois"], p), 3, a, M, "Malaysia LHDN e-invoice submission, internal pipeline detail — prefer my_e_invoice_submission for merchant reporting.", new t.internalMyEInvoiceSubmissionSchema_closure(), u.
|
|
11668
|
+
return t.Schema_Schema$build(!1, "compliance", t._setArrayType(["invoice", "e-invoice", "submission", "my", "malaysia", "lhdn", "myinvois"], p), 3, a, M, "Malaysia LHDN e-invoice submission, internal pipeline detail — prefer my_e_invoice_submission for merchant reporting.", new t.internalMyEInvoiceSubmissionSchema_closure(), u.List_empty0, a, _, a, !1, !0, !1, !1, !1, !0, new t.internalMyEInvoiceSubmissionSchema_closure0(), "MY E-Invoice Submission", "my_e_invoice_submissions", "my_e_invoice_submission", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_110, i, a, "mongodb_e_invoice_submissions", "mongodb_company_db_e_invoice_submissions", a, !0, s, u.List_empty1, a, l);
|
|
11654
11669
|
}), e(q, "internalMyEInvoiceSubmissionDocumentSchema", "$get$internalMyEInvoiceSubmissionDocumentSchema", () => {
|
|
11655
11670
|
var a = "createdAt", i = null, s = t.Source_Source$mongodb("documents", "EInvoiceSubmissions"), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), a), p = d.JSArray_String, _ = t._setArrayType([t.Index$(t._setArrayType(["id"], p), i, i, i), t.Index$(t._setArrayType(["doc_id"], p), i, i, i), t.Index$(t._setArrayType(["restaurant_id", "created_at"], p), "idx_myeinvoicesubdoc_select_index", i, i), t.Index$(t._setArrayType(["submission_id"], p), i, i, i), t.Index$(t._setArrayType(["document_id"], p), i, i, i)], d.JSArray_Index), M = t._setArrayType([], p);
|
|
11656
|
-
return t.Schema_Schema$build(!1, "compliance", t._setArrayType(["invoice", "e-invoice", "submission", "document", "my", "malaysia", "lhdn", "myinvois"], p), 3, i, M, "Documents inside an internal Malaysia LHDN e-invoice submission.", new t.internalMyEInvoiceSubmissionDocumentSchema_closure(), u.
|
|
11671
|
+
return t.Schema_Schema$build(!1, "compliance", t._setArrayType(["invoice", "e-invoice", "submission", "document", "my", "malaysia", "lhdn", "myinvois"], p), 3, i, M, "Documents inside an internal Malaysia LHDN e-invoice submission.", new t.internalMyEInvoiceSubmissionDocumentSchema_closure(), u.List_empty0, i, _, i, !1, !0, !1, !1, !1, !0, new t.internalMyEInvoiceSubmissionDocumentSchema_closure0(), "MY E-Invoice Submission Document", "my_e_invoice_submission_documents", "my_e_invoice_submission_document", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_111, a, i, "mongodb_e_invoice_submissions", "mongodb_company_db_e_invoice_submissions", i, !0, s, u.List_empty1, i, l);
|
|
11657
11672
|
}), e(q, "internalPurchaseOrderSchema", "$get$internalPurchaseOrderSchema", () => {
|
|
11658
11673
|
var a = "couchdb_purchase_order", i = null, s = "createdAt", l = t.Source_Source$couchdb(i, "purchaseOrder"), p = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId"), t.Permission_Permission$warehouse("warehouseId")], d.JSArray_Permission), s), _ = d.JSArray_String, M = t._setArrayType([t.Index$(t._setArrayType(["id"], _), i, i, i), t.Index$(t._setArrayType(["doc_id"], _), i, i, i), t.Index$(t._setArrayType(["created_at"], _), i, i, i), t.Index$(t._setArrayType(["effective_at"], _), i, i, i), t.Index$(t._setArrayType(["location_id"], _), i, i, i)], d.JSArray_Index);
|
|
11659
|
-
return t.Schema_Schema$build(!1, i, u.
|
|
11674
|
+
return t.Schema_Schema$build(!1, i, u.List_empty, 3, i, t._setArrayType(["restaurantId"], _), i, new t.internalPurchaseOrderSchema_closure(), u.List_empty0, i, M, i, !0, !0, !1, !1, !1, !0, new t.internalPurchaseOrderSchema_closure0(), "Purchase order", "purchase_orders", "purchase_order", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_36, s, i, a, a, i, !0, l, u.List_empty1, i, p);
|
|
11660
11675
|
}), e(q, "internalPurchaseOrderDeliveryFulfillmentSchema", "$get$internalPurchaseOrderDeliveryFulfillmentSchema", () => {
|
|
11661
11676
|
var a = "couchdb_purchase_order", i = "createdAt", s = null, l = t.Source_Source$couchdb("deliveryFulfillments", "purchaseOrder"), p = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId"), t.Permission_Permission$warehouse("warehouseId")], d.JSArray_Permission), i), _ = d.JSArray_String, M = t._setArrayType([t.Index$(t._setArrayType(["id"], _), s, s, s), t.Index$(t._setArrayType(["doc_id"], _), s, s, s), t.Index$(t._setArrayType(["created_at"], _), s, s, s), t.Index$(t._setArrayType(["effective_at"], _), s, s, s), t.Index$(t._setArrayType(["location_id"], _), s, s, s)], d.JSArray_Index);
|
|
11662
|
-
return t.Schema_Schema$build(!1, s, u.
|
|
11677
|
+
return t.Schema_Schema$build(!1, s, u.List_empty, 3, s, t._setArrayType(["restaurantId"], _), s, new t.internalPurchaseOrderDeliveryFulfillmentSchema_closure(), u.List_empty0, s, M, s, !0, !0, !1, !1, !1, !0, new t.internalPurchaseOrderDeliveryFulfillmentSchema_closure0(), "Purchase order delivery fulfillment", "purchase_order_delivery_fulfillments", "purchase_order_delivery_fulfillment", u.MERGE_FILTER_TYPE_1, u.SCHEMA_NAME_39, i, s, a, a, s, !0, l, u.List_empty1, s, p);
|
|
11663
11678
|
}), e(q, "internalPurchaseOrderDeliveryFulfillmentSkuSchema", "$get$internalPurchaseOrderDeliveryFulfillmentSkuSchema", () => {
|
|
11664
11679
|
var a = "couchdb_purchase_order", i = "createdAt", s = null, l = t.Source_Source$couchdb("deliveryFulfillmentSkus", "purchaseOrder"), p = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId"), t.Permission_Permission$warehouse("warehouseId")], d.JSArray_Permission), i), _ = d.JSArray_String, M = t._setArrayType([t.Index$(t._setArrayType(["id"], _), s, s, s), t.Index$(t._setArrayType(["doc_id"], _), s, s, s), t.Index$(t._setArrayType(["created_at"], _), s, s, s), t.Index$(t._setArrayType(["effective_at"], _), s, s, s), t.Index$(t._setArrayType(["location_id"], _), s, s, s), t.Index$(t._setArrayType(["purchase_order_id"], _), s, s, s), t.Index$(t._setArrayType(["purchase_order_delivery_fulfillment_id"], _), T.idx_pof, s, s), t.Index$(t._setArrayType(["published_at"], _), s, s, s)], d.JSArray_Index);
|
|
11665
|
-
return t.Schema_Schema$build(!1, s, u.
|
|
11680
|
+
return t.Schema_Schema$build(!1, s, u.List_empty, 3, s, t._setArrayType(["restaurantId"], _), s, new t.internalPurchaseOrderDeliveryFulfillmentSkuSchema_closure(), u.List_empty0, s, M, s, !0, !0, !1, !1, !1, !0, new t.internalPurchaseOrderDeliveryFulfillmentSkuSchema_closure0(), "Purchase order delivery fulfillment sku", "purchase_order_delivery_fulfillment_skus", "purchase_order_delivery_fulfillment_sku", u.MERGE_FILTER_TYPE_1, u.SCHEMA_NAME_41, i, s, a, a, s, !0, l, u.List_empty1, s, p);
|
|
11666
11681
|
}), e(q, "internalPurchaseOrderDeliveryOrderSchema", "$get$internalPurchaseOrderDeliveryOrderSchema", () => {
|
|
11667
11682
|
var a = "couchdb_purchase_order", i = "createdAt", s = null, l = t.Source_Source$couchdb("deliveryOrders", "purchaseOrder"), p = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId"), t.Permission_Permission$warehouse("warehouseId")], d.JSArray_Permission), i), _ = d.JSArray_String, M = t._setArrayType([t.Index$(t._setArrayType(["id"], _), s, s, s), t.Index$(t._setArrayType(["doc_id"], _), s, s, s), t.Index$(t._setArrayType(["created_at"], _), s, s, s), t.Index$(t._setArrayType(["effective_at"], _), s, s, s), t.Index$(t._setArrayType(["location_id"], _), s, s, s), t.Index$(t._setArrayType(["purchase_order_id", "location_id"], _), "idx_podo_poidlid_index", s, s)], d.JSArray_Index);
|
|
11668
|
-
return t.Schema_Schema$build(!1, s, u.
|
|
11683
|
+
return t.Schema_Schema$build(!1, s, u.List_empty, 3, s, t._setArrayType(["restaurantId"], _), s, new t.internalPurchaseOrderDeliveryOrderSchema_closure(), u.List_empty0, s, M, s, !0, !0, !1, !1, !1, !0, new t.internalPurchaseOrderDeliveryOrderSchema_closure0(), "Purchase order delivery order", "purchase_order_delivery_orders", "purchase_order_delivery_order", u.MERGE_FILTER_TYPE_1, u.SCHEMA_NAME_38, i, s, a, a, s, !0, l, u.List_empty1, s, p);
|
|
11669
11684
|
}), e(q, "internalPurchaseOrderDeliveryOrderSkuSchema", "$get$internalPurchaseOrderDeliveryOrderSkuSchema", () => {
|
|
11670
11685
|
var a = "couchdb_purchase_order", i = "createdAt", s = null, l = t.Source_Source$couchdb("deliveryOrderSkus", "purchaseOrder"), p = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId"), t.Permission_Permission$warehouse("warehouseId")], d.JSArray_Permission), i), _ = d.JSArray_String, M = t._setArrayType([t.Index$(t._setArrayType(["id"], _), s, s, s), t.Index$(t._setArrayType(["doc_id"], _), s, s, s), t.Index$(t._setArrayType(["created_at"], _), s, s, s), t.Index$(t._setArrayType(["effective_at"], _), s, s, s), t.Index$(t._setArrayType(["location_id"], _), s, s, s), t.Index$(t._setArrayType(["purchase_order_id"], _), s, s, s), t.Index$(t._setArrayType(["purchase_order_delivery_order_id"], _), T.idx_poo, s, s), t.Index$(t._setArrayType(["published_at"], _), s, s, s)], d.JSArray_Index);
|
|
11671
|
-
return t.Schema_Schema$build(!1, s, u.
|
|
11686
|
+
return t.Schema_Schema$build(!1, s, u.List_empty, 3, s, t._setArrayType(["restaurantId"], _), s, new t.internalPurchaseOrderDeliveryOrderSkuSchema_closure(), u.List_empty0, s, M, s, !0, !0, !1, !1, !1, !0, new t.internalPurchaseOrderDeliveryOrderSkuSchema_closure0(), "Purchase order delivery order sku", "purchase_order_delivery_order_skus", "purchase_order_delivery_order_sku", u.MERGE_FILTER_TYPE_1, u.SCHEMA_NAME_40, i, s, a, a, s, !0, l, u.List_empty1, s, p);
|
|
11672
11687
|
}), e(q, "internalPurchaseOrderItemSchema", "$get$internalPurchaseOrderItemSchema", () => {
|
|
11673
11688
|
var a = "couchdb_purchase_order", i = "createdAt", s = null, l = t.Source_Source$couchdb("items", "purchaseOrder"), p = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId"), t.Permission_Permission$warehouse("warehouseId")], d.JSArray_Permission), i), _ = d.JSArray_String, M = t._setArrayType([t.Index$(t._setArrayType(["id"], _), s, s, s), t.Index$(t._setArrayType(["doc_id"], _), s, s, s), t.Index$(t._setArrayType(["created_at"], _), s, s, s), t.Index$(t._setArrayType(["effective_at"], _), s, s, s), t.Index$(t._setArrayType(["purchase_order_id"], _), s, s, s), t.Index$(t._setArrayType(["location_id"], _), s, s, s), t.Index$(t._setArrayType(["published_at"], _), s, s, s)], d.JSArray_Index);
|
|
11674
|
-
return t.Schema_Schema$build(!1, s, u.
|
|
11689
|
+
return t.Schema_Schema$build(!1, s, u.List_empty, 3, s, t._setArrayType(["restaurantId"], _), s, new t.internalPurchaseOrderItemSchema_closure(), u.List_empty0, s, M, s, !0, !0, !1, !1, !1, !0, new t.internalPurchaseOrderItemSchema_closure0(), "Purchase order item", "purchase_order_items", "purchase_order_item", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_37, i, s, a, a, s, !0, l, u.List_empty1, s, p);
|
|
11675
11690
|
}), e(q, "inventoryAdjustmentSchema", "$get$inventoryAdjustmentSchema", () => {
|
|
11676
11691
|
var a = "couchdb_inventory_adjustment", i = null, s = "createdAt", l = t.Source_Source$couchdb(i, "inventoryAdjustment"), p = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId"), t.Permission_Permission$warehouse("warehouseId")], d.JSArray_Permission), s), _ = d.JSArray_String, M = t._setArrayType([t.Index$(t._setArrayType(["id"], _), i, i, i), t.Index$(t._setArrayType(["doc_id"], _), i, i, i), t.Index$(t._setArrayType(["location_id", "created_at"], _), "idx_ias_select_index", i, i), t.Index$(t._setArrayType(["published_at"], _), i, i, i), t.Index$(t._setArrayType(["ref"], _), i, i, i)], d.JSArray_Index), b = t._setArrayType(["restaurantId"], _);
|
|
11677
|
-
return t.Schema_Schema$build(!1, "inventory", t._setArrayType(["stock", "inventory", "stock adjustment", "available stock", "stock balance"], _), 2, i, b, "Stock movement event header; per-SKU quantities live in inventory_adjustment_sku.", new t.inventoryAdjustmentSchema_closure(), u.
|
|
11692
|
+
return t.Schema_Schema$build(!1, "inventory", t._setArrayType(["stock", "inventory", "stock adjustment", "available stock", "stock balance"], _), 2, i, b, "Stock movement event header; per-SKU quantities live in inventory_adjustment_sku.", new t.inventoryAdjustmentSchema_closure(), u.List_empty0, i, M, i, !1, !0, !1, !1, !1, !1, new t.inventoryAdjustmentSchema_closure0(), "Inventory", "inventory_adjustments", "inventory_adjustment", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_22, s, i, a, a, i, !0, l, u.List_empty1, i, p);
|
|
11678
11693
|
}), e(q, "inventoryAdjustmentPhysicalSkuSchema", "$get$inventoryAdjustmentPhysicalSkuSchema", () => {
|
|
11679
11694
|
var a = "couchdb_inventory_adjustment", i = "createdAt", s = null, l = t.Source_Source$couchdb("physicalSkus", "inventoryAdjustment"), p = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId"), t.Permission_Permission$warehouse("warehouseId")], d.JSArray_Permission), i), _ = d.JSArray_String, M = t._setArrayType([t.Index$(t._setArrayType(["id"], _), s, s, s), t.Index$(t._setArrayType(["doc_id"], _), s, s, s), t.Index$(t._setArrayType(["published_at"], _), s, s, s), t.Index$(t._setArrayType(["inventory_adjustment_id"], _), s, s, s), t.Index$(t._setArrayType(["location_id", "created_at"], _), "idx_iapss_select_index", s, s), t.Index$(t._setArrayType(["inventory_adjustment_sku_id"], _), "idx_iapss_inventory_adjustment_sku_id", s, s)], d.JSArray_Index);
|
|
11680
|
-
return t.Schema_Schema$build(!1, "inventory", u.
|
|
11695
|
+
return t.Schema_Schema$build(!1, "inventory", u.List_empty, 3, s, t._setArrayType(["restaurantId"], _), "One row per physical count line behind an inventory adjustment SKU: the amount as counted, its unit, and the tracking unit and conversion back to the base unit. Answers how a stock take figure was entered; inventory_adjustment_sku holds the quantity delta and cost it produced, which is what stock movement questions want. created_at is the adjustment time.", new t.inventoryAdjustmentPhysicalSkuSchema_closure(), u.List_empty0, s, M, s, !0, !0, !1, !1, !1, !1, new t.inventoryAdjustmentPhysicalSkuSchema_closure0(), "Inventory physical sku", "inventory_adjustment_physical_skus", "inventory_adjustment_physical_sku", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_24, i, s, a, a, s, !0, l, u.List_empty1, s, p);
|
|
11681
11696
|
}), e(q, "inventoryAdjustmentSkuSchema", "$get$inventoryAdjustmentSkuSchema", () => {
|
|
11682
11697
|
var a = "couchdb_inventory_adjustment", i = "createdAt", s = null, l = t.Source_Source$couchdb("skus", "inventoryAdjustment"), p = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId"), t.Permission_Permission$warehouse("warehouseId")], d.JSArray_Permission), i), _ = d.JSArray_String, M = t._setArrayType([t.Index$(t._setArrayType(["id"], _), s, s, s), t.Index$(t._setArrayType(["doc_id"], _), s, s, s), t.Index$(t._setArrayType(["location_id", "created_at"], _), "idx_iass_select_index", s, s), t.Index$(t._setArrayType(["location_id", "sku_id", "created_at DESC"], _), "idx_iass_latest_balance", t._setArrayType(["to_balance"], _), s), t.Index$(t._setArrayType(["(CASE WHEN remark = 'WASTAGE_REVERSAL' THEN 'WASTAGE' ELSE type END)", "location_id", "created_at"], _), "idx_iass_select_type", s, s), t.Index$(t._setArrayType(["published_at"], _), s, s, s), t.Index$(t._setArrayType(["inventory_adjustment_id"], _), s, s, s), t.Index$(t._setArrayType(["ref"], _), s, s, s)], d.JSArray_Index), b = t._setArrayType(["restaurantId"], _);
|
|
11683
|
-
return t.Schema_Schema$build(!1, "inventory", t._setArrayType(["stock", "inventory", "stock adjustment", "available stock", "stock balance"], _), 2, t.Canonical$(u.Map_empty, t._setArrayType(["amount", "amount_cost"], _), u.
|
|
11698
|
+
return t.Schema_Schema$build(!1, "inventory", t._setArrayType(["stock", "inventory", "stock adjustment", "available stock", "stock balance"], _), 2, t.Canonical$(u.Map_empty, t._setArrayType(["amount", "amount_cost"], _), u.List_empty), b, "Stock movement per SKU per adjustment: quantity delta and cost. The main inventory fact.", new t.inventoryAdjustmentSkuSchema_closure(), u.List_empty0, s, M, 120, !1, !0, !1, !1, !1, !1, new t.inventoryAdjustmentSkuSchema_closure0(), "Inventory sku", "inventory_adjustment_skus", "inventory_adjustment_sku", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_23, i, s, a, a, s, !0, l, u.List_empty1, s, p);
|
|
11684
11699
|
}), e(q, "inventorySkuBalanceSchema", "$get$inventorySkuBalanceSchema", () => {
|
|
11685
11700
|
var a = null, i = "locationId", s = t.Source_Source$couchdb(a, ""), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant(i), t.Permission_Permission$warehouse(i)], d.JSArray_Permission), a), p = d.JSArray_String, _ = t._setArrayType([], p);
|
|
11686
|
-
return t.Schema_Schema$build(!1, "inventory", t._setArrayType(["stock", "inventory", "stock balance", "current stock", "available stock", "stock level"], p), 2, a, _, "Current stock level per SKU per location.", new t.inventorySkuBalanceSchema_closure(), u.
|
|
11701
|
+
return t.Schema_Schema$build(!1, "inventory", t._setArrayType(["stock", "inventory", "stock balance", "current stock", "available stock", "stock level"], p), 2, a, _, "Current stock level per SKU per location.", new t.inventorySkuBalanceSchema_closure(), u.List_empty0, a, a, a, !1, !1, !1, !1, !1, !1, new t.inventorySkuBalanceSchema_closure0(), "Inventory SKU Balance", "inventory_sku_balances", "inventory_sku_balance", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_91, a, `WITH days AS (
|
|
11687
11702
|
SELECT generate_series(
|
|
11688
11703
|
date_trunc('day', (!start AT TIME ZONE 'UTC') AT TIME ZONE @TIMEZONE),
|
|
11689
11704
|
date_trunc('day', (!end AT TIME ZONE 'UTC') AT TIME ZONE @TIMEZONE),
|
|
@@ -11726,7 +11741,7 @@ SELECT * FROM (
|
|
|
11726
11741
|
WHERE isk.location_id IN (!locationIds)
|
|
11727
11742
|
) g
|
|
11728
11743
|
WHERE g.adj_day_count = 0 OR g.created_at IS NOT NULL
|
|
11729
|
-
`, "", "", a, !1, s, u.
|
|
11744
|
+
`, "", "", a, !1, s, u.List_empty1, `WITH RECURSIVE bounds AS (
|
|
11730
11745
|
SELECT
|
|
11731
11746
|
strftime('%Y-%m-%dT%H:%M:%fZ', date(!start, @TZ_TO_LOCAL), @TZ_TO_UTC) AS first_day,
|
|
11732
11747
|
strftime('%Y-%m-%dT%H:%M:%fZ', date(!end, @TZ_TO_LOCAL), @TZ_TO_UTC) AS last_day,
|
|
@@ -11775,40 +11790,43 @@ WHERE g.adjDayCount = 0 OR g.createdAt IS NOT NULL
|
|
|
11775
11790
|
`, l);
|
|
11776
11791
|
}), e(q, "inventoryV1FlattenInventorySchema", "$get$inventoryV1FlattenInventorySchema", () => {
|
|
11777
11792
|
var a = "couchdb_m_inventory_v1", i = null, s = t.Source_Source$couchdb("flattenInventories", "mInventoryV1"), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId"), t.Permission_Permission$warehouse("warehouseId")], d.JSArray_Permission), i), p = d.JSArray_String, _ = t._setArrayType([t.Index$(t._setArrayType(["id"], p), i, i, i), t.Index$(t._setArrayType(["doc_id"], p), i, i, i), t.Index$(t._setArrayType(["published_at"], p), i, i, i), t.Index$(t._setArrayType(["location_id"], p), i, i, i), t.Index$(t._setArrayType(["link_id"], p), i, i, i)], d.JSArray_Index);
|
|
11778
|
-
return t.Schema_Schema$build(!1, "inventory", u.
|
|
11793
|
+
return t.Schema_Schema$build(!1, "inventory", u.List_empty, 3, i, t._setArrayType(["restaurantId"], p), "Legacy inventory V1 — prefer inventory_adjustment_sku and inventory_sku_balance.", new t.inventoryV1FlattenInventorySchema_closure(), u.List_empty0, i, _, 120, !0, !0, !1, !1, !1, !1, new t.inventoryV1FlattenInventorySchema_closure0(), "Inventory (V1)", "inventory_flatten_inventories", "inventory_flatten_inventory", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_74, i, i, a, a, i, !1, s, u.List_empty1, i, l);
|
|
11779
11794
|
}), e(q, "itemSchema", "$get$itemSchema", () => {
|
|
11780
11795
|
var a = "createdAt", i = null, s = t.Source_Source$couchdb("", ""), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), a);
|
|
11781
|
-
return t.Schema_Schema$build(!1, "sales", u.
|
|
11796
|
+
return t.Schema_Schema$build(!1, "sales", u.List_empty, 3, i, t._setArrayType(["restaurantId"], d.JSArray_String), "Deprecated product line-item table — use flatten_item.", new t.itemSchema_closure(), t._setArrayType([t.QueryRequestFilter$(i, i, "layer", u.COMPARISON_OPERATOR_0, i, u.SCHEMA_NAME_8, ["0"])], d.JSArray_QueryRequestFilter), i, i, i, !0, !1, !0, !1, !0, !1, new t.itemSchema_closure0(), "Product (Deprecated)", "flatten_items", "flatten_item", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_8, a, i, "", "", i, !0, s, u.List_empty1, i, l);
|
|
11782
11797
|
}), e(q, "itemMovementSchema", "$get$itemMovementSchema", () => {
|
|
11783
11798
|
var a = "couchdb_bill", i = "createdAt", s = null, l = t.Source_Source$couchdb("itemMovements", "bill"), p = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), i), _ = d.JSArray_String, M = t._setArrayType([t.Index$(t._setArrayType(["id"], _), s, s, s), t.Index$(t._setArrayType(["doc_id"], _), s, s, s), t.Index$(t._setArrayType(["restaurant_id", "created_at"], _), "idx_item_movement_select_index", s, s), t.Index$(t._setArrayType(["item_id"], _), s, s, s), t.Index$(t._setArrayType(["bill_id"], _), s, s, s), t.Index$(t._setArrayType(["move_from_bill_id"], _), s, s, s)], d.JSArray_Index), b = t._setArrayType(["restaurantId"], _), O = t.ReadPiece$(7, 24);
|
|
11784
|
-
return t.Schema_Schema$build(!1, "operations", t._setArrayType(["item movement", "stock movement", "transfer", "stock transfer", "change table", "table move"], _), 2, s, b, "One row per bill item moved at the POS: move_type CHANGE_TABLE means the whole bill was relocated to another table, MOVE_ITEM that the item came from another bill. Answers table-change and item-transfer activity — who moved it, and when, in moved_at. Time control is created_at, the bill time; joins to bill, flatten_item and restaurant.", new t.itemMovementSchema_closure(), u.
|
|
11799
|
+
return t.Schema_Schema$build(!1, "operations", t._setArrayType(["item movement", "stock movement", "transfer", "stock transfer", "change table", "table move"], _), 2, s, b, "One row per bill item moved at the POS: move_type CHANGE_TABLE means the whole bill was relocated to another table, MOVE_ITEM that the item came from another bill. Answers table-change and item-transfer activity — who moved it, and when, in moved_at. Time control is created_at, the bill time; joins to bill, flatten_item and restaurant.", new t.itemMovementSchema_closure(), u.List_empty0, s, M, 120, !0, !0, !1, !1, !1, !1, new t.itemMovementSchema_closure0(), "Item Movement", "item_movements", "item_movement", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_76, i, s, a, a, O, !0, l, u.List_empty1, s, p);
|
|
11785
11800
|
}), e(q, "kitchenStationSchema", "$get$kitchenStationSchema", () => {
|
|
11786
11801
|
var a = "couchdb_bill", i = "createdAt", s = null, l = t.Source_Source$couchdb("kitchenStations", "bill"), p = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), i), _ = d.JSArray_String, M = t._setArrayType([t.Index$(t._setArrayType(["id"], _), s, s, s), t.Index$(t._setArrayType(["doc_id"], _), s, s, s), t.Index$(t._setArrayType(["restaurant_id", "created_at"], _), "idx_kitchen_stations_select_index", s, s), t.Index$(t._setArrayType(["bill_id"], _), s, s, s), t.Index$(t._setArrayType(["published_at"], _), s, s, s)], d.JSArray_Index), b = t._setArrayType(["restaurantId"], _);
|
|
11787
|
-
return t.Schema_Schema$build(!1, "specialized", t._setArrayType(["kitchen", "kitchen station", "prep time", "cook time"], _), 3, s, b, "One row per kitchen station ticket for an item: when the station started and finished cooking it. seconds measures start to finish, while preparation_seconds runs from the item being sent to the kitchen until the station finished. created_at is when the bill was opened, which the page date range binds; bound started_at or finished_at yourself to filter by cook time. Joins to bill and flatten_item.", new t.kitchenStationSchema_closure(), u.
|
|
11802
|
+
return t.Schema_Schema$build(!1, "specialized", t._setArrayType(["kitchen", "kitchen station", "prep time", "cook time"], _), 3, s, b, "One row per kitchen station ticket for an item: when the station started and finished cooking it. seconds measures start to finish, while preparation_seconds runs from the item being sent to the kitchen until the station finished. created_at is when the bill was opened, which the page date range binds; bound started_at or finished_at yourself to filter by cook time. Joins to bill and flatten_item.", new t.kitchenStationSchema_closure(), u.List_empty0, s, M, 120, !0, !0, !1, !1, !1, !1, new t.kitchenStationSchema_closure0(), "Kitchen station", "kitchen_stations", "kitchen_station", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_71, i, s, a, a, s, !0, l, u.List_empty1, s, p);
|
|
11803
|
+
}), e(q, "masterUserSchema", "$get$masterUserSchema", () => {
|
|
11804
|
+
var a = "couchdb_master_user", i = null, s = t.Source_Source$couchdb(i, "masterUser"), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), i), p = d.JSArray_String, _ = t._setArrayType([t.Index$(t._setArrayType(["id"], p), i, i, i), t.Index$(t._setArrayType(["doc_id"], p), i, i, i), t.Index$(t._setArrayType(["restaurant_id"], p), i, i, i)], d.JSArray_Index);
|
|
11805
|
+
return t.Schema_Schema$build(!1, "operations", u.List_empty, 3, i, t._setArrayType(["restaurantId"], p), "masterUser pipeline over the same staff table — use staff.", new t.masterUserSchema_closure(), u.List_empty0, i, _, i, !0, !0, !1, !1, !1, !0, new t.masterUserSchema_closure0(), "Staff", "staffs", "staff", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_119, i, i, a, a, i, !1, s, u.List_empty1, i, l);
|
|
11788
11806
|
}), e(q, "memberSchema", "$get$memberSchema", () => {
|
|
11789
11807
|
var a = null, i = t.Source_Source$mongodb(a, "Members"), s = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$business("businessId")], d.JSArray_Permission), a), l = d.JSArray_String, p = t._setArrayType([t.Index$(t._setArrayType(["id"], l), a, a, a), t.Index$(t._setArrayType(["doc_id"], l), a, a, a), t.Index$(t._setArrayType(["user_id"], l), a, a, a), t.Index$(t._setArrayType(["business_id"], l), a, a, a)], d.JSArray_Index), _ = t._setArrayType([], l);
|
|
11790
|
-
return t.Schema_Schema$build(!1, "loyalty", t._setArrayType(["member", "customer", "loyalty", "membership", "registered customer"], l), 2, a, _, "Member (registered customer) master: profile, and the stats as they stand now. No time control, so a date range cannot narrow it — for movement over a period read credit_transaction or bill.", new t.memberSchema_closure(), u.
|
|
11808
|
+
return t.Schema_Schema$build(!1, "loyalty", t._setArrayType(["member", "customer", "loyalty", "membership", "registered customer"], l), 2, a, _, "Member (registered customer) master: profile, and the stats as they stand now. No time control, so a date range cannot narrow it — for movement over a period read credit_transaction or bill.", new t.memberSchema_closure(), u.List_empty0, a, p, a, !1, !0, !1, !1, !1, !1, new t.memberSchema_closure0(), "Member", "members", "member", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_45, a, a, "mongodb_members", "mongodb_company_db_members", a, !1, i, u.List_empty1, a, s);
|
|
11791
11809
|
}), e(q, "memberStorePurchaseSchema", "$get$memberStorePurchaseSchema", () => {
|
|
11792
11810
|
var a = "couchdb_member_store_purchase", i = null, s = "createdAt", l = t.Source_Source$couchdb(i, "memberStorePurchase"), p = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), s), _ = d.JSArray_String, M = t._setArrayType([t.Index$(t._setArrayType(["id"], _), i, i, i), t.Index$(t._setArrayType(["doc_id"], _), i, i, i), t.Index$(t._setArrayType(["created_at"], _), i, i, i), t.Index$(t._setArrayType(["restaurant_id"], _), i, i, i), t.Index$(t._setArrayType(["member_id"], _), i, i, i), t.Index$(t._setArrayType(["member_user_id"], _), i, i, i)], d.JSArray_Index);
|
|
11793
|
-
return t.Schema_Schema$build(!1, "loyalty", u.
|
|
11811
|
+
return t.Schema_Schema$build(!1, "loyalty", u.List_empty, 3, i, t._setArrayType(["restaurantId"], _), "One row per member store bundle sold at the POS — prepaid credit, vouchers or titles bought by a member. Refunds are their own rows with is_refund true, and gross_total, tax_total and nett_total already arrive negative on them, so sum them as they stand. created_at is the purchase time and the tender lines are in member_store_purchase_payment; a POS purchase is also recorded in store_transaction with source POS, so never add the two tables together.", new t.memberStorePurchaseSchema_closure(), u.List_empty0, i, M, i, !0, !0, !1, !1, !1, !1, new t.memberStorePurchaseSchema_closure0(), "Member store purchase", "member_store_purchases", "member_store_purchase", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_49, s, i, a, a, i, !0, l, u.List_empty1, i, p);
|
|
11794
11812
|
}), e(q, "memberStorePurchasePaymentSchema", "$get$memberStorePurchasePaymentSchema", () => {
|
|
11795
11813
|
var a = "couchdb_member_store_purchase", i = "createdAt", s = null, l = t.Source_Source$couchdb("payments", "memberStorePurchase"), p = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), i), _ = d.JSArray_String, M = t._setArrayType([t.Index$(t._setArrayType(["id"], _), s, s, s), t.Index$(t._setArrayType(["doc_id"], _), s, s, s), t.Index$(t._setArrayType(["created_at"], _), s, s, s), t.Index$(t._setArrayType(["restaurant_id"], _), s, s, s), t.Index$(t._setArrayType(["member_store_purchase_id"], _), s, s, s)], d.JSArray_Index);
|
|
11796
|
-
return t.Schema_Schema$build(!1, "loyalty", u.
|
|
11814
|
+
return t.Schema_Schema$build(!1, "loyalty", u.List_empty, 3, s, t._setArrayType(["restaurantId"], _), "One row per tender line on a member store purchase: method name, counter, amount received, paid and change. Answers how members paid for credit bundles at the POS. created_at is the purchase time and is_refund is copied from the purchase; sale_payment unions these rows with bill payments.", new t.memberStorePurchasePaymentSchema_closure(), u.List_empty0, s, M, s, !0, !0, !1, !1, !1, !1, new t.memberStorePurchasePaymentSchema_closure0(), "Member store purchase payment", "member_store_purchase_payments", "member_store_purchase_payment", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_50, i, s, a, a, s, !0, l, u.List_empty1, s, p);
|
|
11797
11815
|
}), e(q, "memberTitleSchema", "$get$memberTitleSchema", () => {
|
|
11798
11816
|
var a = null, i = t.Source_Source$mongodb("titles", "Members"), s = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$business("businessId")], d.JSArray_Permission), a), l = d.JSArray_String, p = t._setArrayType([t.Index$(t._setArrayType(["id"], l), a, a, a), t.Index$(t._setArrayType(["doc_id"], l), a, a, a), t.Index$(t._setArrayType(["business_id"], l), a, a, a), t.Index$(t._setArrayType(["member_id"], l), a, a, a)], d.JSArray_Index);
|
|
11799
|
-
return t.Schema_Schema$build(!1, "loyalty", u.
|
|
11817
|
+
return t.Schema_Schema$build(!1, "loyalty", u.List_empty, 3, a, t._setArrayType([], l), "Member title/tier master (V1) — title_collection is the V2 equivalent.", new t.memberTitleSchema_closure(), u.List_empty0, a, p, a, !0, !0, !1, !1, !1, !1, new t.memberTitleSchema_closure0(), "Member title", "member_titles", "member_title", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_51, "createdAt", a, "mongodb_members", "mongodb_company_db_members", a, !0, i, u.List_empty1, a, s);
|
|
11800
11818
|
}), e(q, "memberV2Schema", "$get$memberV2Schema", () => {
|
|
11801
11819
|
var a = "mongodb_marketing_db_users_v2", i = null, s = t.Source_Source$mongodb("members", "UsersV2"), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$business("businessId")], d.JSArray_Permission), i), p = d.JSArray_String, _ = t._setArrayType([t.Index$(t._setArrayType(["id"], p), i, i, i), t.Index$(t._setArrayType(["doc_id"], p), i, i, i), t.Index$(t._setArrayType(["user_id"], p), i, i, i), t.Index$(t._setArrayType(["business_id"], p), i, i, i)], d.JSArray_Index);
|
|
11802
|
-
return t.Schema_Schema$build(!1, "loyalty", u.
|
|
11820
|
+
return t.Schema_Schema$build(!1, "loyalty", u.List_empty, 3, i, t._setArrayType([], p), "V2 member pipeline over the same members table — use member.", new t.memberV2Schema_closure(), u.List_empty0, i, _, i, !0, !0, !1, !1, !1, !0, new t.memberV2Schema_closure0(), "Member", "members", "member", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_46, i, i, a, a, i, !1, s, u.List_empty1, i, l);
|
|
11803
11821
|
}), e(q, "membershipSchema", "$get$membershipSchema", () => {
|
|
11804
11822
|
var a = null, i = t.Source_Source$mongodb(a, "Memberships"), s = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$business("businessId")], d.JSArray_Permission), a), l = d.JSArray_String, p = t._setArrayType([t.Index$(t._setArrayType(["id"], l), a, a, a), t.Index$(t._setArrayType(["doc_id"], l), a, a, a), t.Index$(t._setArrayType(["business_id"], l), a, a, a)], d.JSArray_Index);
|
|
11805
|
-
return t.Schema_Schema$build(!1, "loyalty", u.
|
|
11823
|
+
return t.Schema_Schema$build(!1, "loyalty", u.List_empty, 3, a, t._setArrayType([], l), "The v1 membership programme of the business, one row per business, name only. A lookup for the programme name; membership_title holds its tiers and member the members themselves. No time control.", new t.membershipSchema_closure(), u.List_empty0, a, p, a, !0, !0, !1, !1, !1, !1, new t.membershipSchema_closure0(), "Membership", "memberships", "membership", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_52, a, a, "mongodb_memberships", "mongodb_company_db_memberships", a, !1, i, u.List_empty1, a, s);
|
|
11806
11824
|
}), e(q, "membershipTitleSchema", "$get$membershipTitleSchema", () => {
|
|
11807
11825
|
var a = null, i = t.Source_Source$mongodb("titles", "Memberships"), s = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$business("businessId")], d.JSArray_Permission), a), l = d.JSArray_String, p = t._setArrayType([t.Index$(t._setArrayType(["id"], l), a, a, a), t.Index$(t._setArrayType(["doc_id"], l), a, a, a)], d.JSArray_Index);
|
|
11808
|
-
return t.Schema_Schema$build(!1, "loyalty", u.
|
|
11826
|
+
return t.Schema_Schema$build(!1, "loyalty", u.List_empty, 3, a, t._setArrayType([], l), "One row per tier (title) defined in the v1 membership programme of the business, with whether it is internal. Join it for tier names; member_title records which member holds which title and when it expires, and title_collection holds the v2 titles. No time control.", new t.membershipTitleSchema_closure(), u.List_empty0, a, p, a, !0, !0, !1, !1, !1, !1, new t.membershipTitleSchema_closure0(), "Membership title", "membership_titles", "membership_title", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_53, a, a, "mongodb_memberships", "mongodb_company_db_memberships", a, !1, i, u.List_empty1, a, s);
|
|
11809
11827
|
}), e(q, "menuV3GroupSchema", "$get$menuV3GroupSchema", () => {
|
|
11810
11828
|
var a = "couchdb_m_menu_v3", i = null, s = t.Source_Source$couchdb("addonGroups", "mMenuV3"), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), i), p = d.JSArray_String, _ = t._setArrayType([t.Index$(t._setArrayType(["id"], p), i, i, i), t.Index$(t._setArrayType(["doc_id"], p), i, i, i), t.Index$(t._setArrayType(["restaurant_id"], p), i, i, i)], d.JSArray_Index);
|
|
11811
|
-
return t.Schema_Schema$build(!1, "menu", u.
|
|
11829
|
+
return t.Schema_Schema$build(!1, "menu", u.List_empty, 3, i, t._setArrayType(["restaurantId"], p), "Menu option group master (older V3 menu): one row per add-on group a menu offers, not a product category — an option line (flatten_item layer 1+) names its group in flatten_item.group_id; a product line's category is flatten_item.category_name. flatten_item joins V3, menus browse V4.", new t.menuV3GroupSchema_closure(), u.List_empty0, i, _, 900, !1, !0, !1, !1, !1, !1, new t.menuV3GroupSchema_closure0(), "Menu Group", "menu_groups", "menu_group", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_55, i, `SELECT *
|
|
11812
11830
|
FROM menu_groups
|
|
11813
11831
|
WHERE (
|
|
11814
11832
|
doc_id LIKE (
|
|
@@ -11822,10 +11840,10 @@ WHERE (
|
|
|
11822
11840
|
end
|
|
11823
11841
|
)
|
|
11824
11842
|
)
|
|
11825
|
-
`, a, a, i, !1, s, u.
|
|
11843
|
+
`, a, a, i, !1, s, u.List_empty1, i, l);
|
|
11826
11844
|
}), e(q, "menuV3ItemSchema", "$get$menuV3ItemSchema", () => {
|
|
11827
11845
|
var a = "couchdb_m_menu_v3", i = null, s = t.Source_Source$couchdb("products", "mMenuV3"), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), i), p = d.JSArray_String, _ = t._setArrayType([t.Index$(t._setArrayType(["id"], p), i, i, i), t.Index$(t._setArrayType(["doc_id"], p), i, i, i), t.Index$(t._setArrayType(["restaurant_id"], p), i, i, i), t.Index$(t._setArrayType(["published_at"], p), i, i, i)], d.JSArray_Index);
|
|
11828
|
-
return t.Schema_Schema$build(!1, "menu", u.
|
|
11846
|
+
return t.Schema_Schema$build(!1, "menu", u.List_empty, 3, i, t._setArrayType(["restaurantId"], p), "Menu product master (older V3 menu) — classic sales flows still reference V3; menus browse V4.", new t.menuV3ItemSchema_closure(), u.List_empty0, i, _, 900, !1, !0, !1, !1, !1, !1, new t.menuV3ItemSchema_closure0(), "Menu Product", "menu_items", "menu_item", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_59, i, `SELECT menu_items.*
|
|
11829
11847
|
FROM menu_items
|
|
11830
11848
|
LEFT JOIN LATERAL (
|
|
11831
11849
|
select id from menu_items sub where sub.restaurant_id=menu_items.restaurant_id
|
|
@@ -11840,28 +11858,28 @@ WHERE (
|
|
|
11840
11858
|
end
|
|
11841
11859
|
)
|
|
11842
11860
|
)
|
|
11843
|
-
`, a, a, i, !1, s, u.
|
|
11861
|
+
`, a, a, i, !1, s, u.List_empty1, i, l);
|
|
11844
11862
|
}), e(q, "menuV3SkuSchema", "$get$menuV3SkuSchema", () => {
|
|
11845
11863
|
var a = "couchdb_m_menu_v3", i = null, s = t.Source_Source$couchdb("skus", "mMenuV3"), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId"), t.Permission_Permission$warehouse("warehouseId")], d.JSArray_Permission), i), p = d.JSArray_String, _ = t._setArrayType([t.Index$(t._setArrayType(["id"], p), i, i, i), t.Index$(t._setArrayType(["doc_id"], p), i, i, i), t.Index$(t._setArrayType(["restaurant_id"], p), i, i, i), t.Index$(t._setArrayType(["location_id"], p), i, i, i)], d.JSArray_Index);
|
|
11846
|
-
return t.Schema_Schema$build(!1, "menu", u.
|
|
11864
|
+
return t.Schema_Schema$build(!1, "menu", u.List_empty, 3, i, t._setArrayType(["restaurantId"], p), "Menu SKU master (older V3 menu).", new t.menuV3SkuSchema_closure(), u.List_empty0, i, _, 900, !1, !0, !1, !1, !1, !1, new t.menuV3SkuSchema_closure0(), "Menu SKU", "menu_skus", "menu_sku", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_57, i, i, a, a, i, !1, s, u.List_empty1, i, l);
|
|
11847
11865
|
}), e(q, "menuV4CatalogItemSchema", "$get$menuV4CatalogItemSchema", () => {
|
|
11848
11866
|
var a = "couchdb_catalog", i = null, s = t.Source_Source$couchdb("items", "catalog"), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId"), t.Permission_Permission$restaurant("warehouseId")], d.JSArray_Permission), i), p = d.JSArray_String, _ = t._setArrayType([t.Index$(t._setArrayType(["id"], p), i, i, i), t.Index$(t._setArrayType(["doc_id"], p), i, i, i), t.Index$(t._setArrayType(["published_at"], p), i, i, i), t.Index$(t._setArrayType(["location_id"], p), i, i, i), t.Index$(t._setArrayType(["restaurant_id"], p), i, i, i)], d.JSArray_Index);
|
|
11849
|
-
return t.Schema_Schema$build(!1, "menu", u.
|
|
11867
|
+
return t.Schema_Schema$build(!1, "menu", u.List_empty, 3, i, t._setArrayType(["restaurantId"], p), "Menu product per catalog (V4): catalog-specific price/visibility of an item.", new t.menuV4CatalogItemSchema_closure(), u.List_empty0, i, _, i, !0, !0, !1, !1, !0, !0, new t.menuV4CatalogItemSchema_closure0(), "Menu Catalog Product", "menu_catalog_items", "menu_catalog_item", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_61, i, i, a, a, i, !1, s, u.List_empty1, i, l);
|
|
11850
11868
|
}), e(q, "menuV4GroupSchema", "$get$menuV4GroupSchema", () => {
|
|
11851
11869
|
var a = "couchdb_m_menu_v4", i = null, s = t.Source_Source$couchdb("addonGroups", "mMenuV4"), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), i), p = d.JSArray_String, _ = t._setArrayType(["restaurantId"], p);
|
|
11852
|
-
return t.Schema_Schema$build(!1, "menu", t._setArrayType(["category", "menu group", "food category"], p), 2, i, _, "Menu category master (current V4 menu).", new t.menuV4GroupSchema_closure(), u.
|
|
11870
|
+
return t.Schema_Schema$build(!1, "menu", t._setArrayType(["category", "menu group", "food category"], p), 2, i, _, "Menu category master (current V4 menu).", new t.menuV4GroupSchema_closure(), u.List_empty0, i, i, i, !0, !0, !1, !1, !1, !0, new t.menuV4GroupSchema_closure0(), "Menu Group", "menu_groups", "menu_group", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_56, i, i, a, a, i, !1, s, u.List_empty1, i, l);
|
|
11853
11871
|
}), e(q, "menuV4ItemSchema", "$get$menuV4ItemSchema", () => {
|
|
11854
11872
|
var a = "couchdb_m_menu_v4", i = null, s = t.Source_Source$couchdb("items", "mMenuV4"), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), i), p = d.JSArray_String, _ = t._setArrayType(["restaurantId"], p);
|
|
11855
|
-
return t.Schema_Schema$build(!1, "menu", t._setArrayType(["menu item", "product", "dish", "food item", "menu"], p), 2, i, _, "Menu product master (current V4 menu) — product attributes, not sales; sales are flatten_item.", new t.menuV4ItemSchema_closure(), u.
|
|
11873
|
+
return t.Schema_Schema$build(!1, "menu", t._setArrayType(["menu item", "product", "dish", "food item", "menu"], p), 2, i, _, "Menu product master (current V4 menu) — product attributes, not sales; sales are flatten_item.", new t.menuV4ItemSchema_closure(), u.List_empty0, i, i, i, !0, !0, !1, !1, !1, !0, new t.menuV4ItemSchema_closure0(), "Menu Product", "menu_items", "menu_item", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_60, i, i, a, a, i, !1, s, u.List_empty1, i, l);
|
|
11856
11874
|
}), e(q, "menuV4ItemInventoryBindingSchema", "$get$menuV4ItemInventoryBindingSchema", () => {
|
|
11857
11875
|
var a = "couchdb_m_menu_v4", i = null, s = t.Source_Source$couchdb("itemInventoryBindings", "mMenuV4"), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId"), t.Permission_Permission$warehouse("warehouseId")], d.JSArray_Permission), i), p = d.JSArray_String, _ = t._setArrayType([t.Index$(t._setArrayType(["id"], p), i, i, i), t.Index$(t._setArrayType(["doc_id"], p), i, i, i), t.Index$(t._setArrayType(["published_at"], p), i, i, i), t.Index$(t._setArrayType(["location_id"], p), i, i, i), t.Index$(t._setArrayType(["product_id"], p), i, i, i), t.Index$(t._setArrayType(["inventory_id"], p), i, i, i)], d.JSArray_Index);
|
|
11858
|
-
return t.Schema_Schema$build(!1, "menu", u.
|
|
11876
|
+
return t.Schema_Schema$build(!1, "menu", u.List_empty, 3, i, t._setArrayType(["restaurantId"], p), "Recipe link between a V4 menu item and the inventory SKUs it consumes.", new t.menuV4ItemInventoryBindingSchema_closure(), u.List_empty0, i, _, i, !0, !0, !1, !1, !1, !1, new t.menuV4ItemInventoryBindingSchema_closure0(), "Menu Inventory Binding", "menu_item_inventory_bindings", "menu_item_inventory_binding", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_73, i, i, a, a, i, !1, s, u.List_empty1, i, l);
|
|
11859
11877
|
}), e(q, "menuV4SkuSchema", "$get$menuV4SkuSchema", () => {
|
|
11860
11878
|
var a = "couchdb_m_menu_v4", i = null, s = t.Source_Source$couchdb("skus", "mMenuV4"), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), i);
|
|
11861
|
-
return t.Schema_Schema$build(!1, "menu", u.
|
|
11879
|
+
return t.Schema_Schema$build(!1, "menu", u.List_empty, 3, i, t._setArrayType(["restaurantId"], d.JSArray_String), "Menu SKU master (current V4 menu).", new t.menuV4SkuSchema_closure(), u.List_empty0, i, i, i, !0, !0, !1, !1, !1, !0, new t.menuV4SkuSchema_closure0(), "Menu SKU", "menu_skus", "menu_sku", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_58, i, i, a, a, i, !1, s, u.List_empty1, i, l);
|
|
11862
11880
|
}), e(q, "myEInvoiceSubmissionSchema", "$get$myEInvoiceSubmissionSchema", () => {
|
|
11863
11881
|
var a = "my_e_invoice_submission_view", i = null, s = "createdAt", l = t.Source_Source$mongodb(i, ""), p = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), s), _ = d.JSArray_String, M = t._setArrayType([], _), b = t.ReadPiece$(7, 24);
|
|
11864
|
-
return t.Schema_Schema$build(!1, "compliance", t._setArrayType(["invoice", "e-invoice", "submission", "my", "malaysia", "lhdn", "myinvois", "consolidated"], _), 2, i, M, "Malaysia LHDN MyInvois e-invoice submission per bill or consolidated run.", new t.myEInvoiceSubmissionSchema_closure(), u.
|
|
11882
|
+
return t.Schema_Schema$build(!1, "compliance", t._setArrayType(["invoice", "e-invoice", "submission", "my", "malaysia", "lhdn", "myinvois", "consolidated"], _), 2, i, M, "Malaysia LHDN MyInvois e-invoice submission per bill or consolidated run.", new t.myEInvoiceSubmissionSchema_closure(), u.List_empty0, i, i, i, !1, !1, !1, !1, !1, !1, new t.myEInvoiceSubmissionSchema_closure0(), "MY E-Invoice Submission", a, a, u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_109, s, `select
|
|
11865
11883
|
d.id,
|
|
11866
11884
|
d.doc_id,
|
|
11867
11885
|
s.created_at,
|
|
@@ -11897,84 +11915,84 @@ WHERE (
|
|
|
11897
11915
|
from my_e_invoice_submissions s
|
|
11898
11916
|
join my_e_invoice_submission_documents sd on sd.submission_id = s.id
|
|
11899
11917
|
join my_e_invoice_documents d on d.document_id = sd.document_id
|
|
11900
|
-
`, "", "", b, !0, l, u.
|
|
11918
|
+
`, "", "", b, !0, l, u.List_empty1, i, p);
|
|
11901
11919
|
}), e(q, "parentFlattenItemSchema", "$get$parentFlattenItemSchema", () => {
|
|
11902
11920
|
var a = "createdAt", i = null, s = t.Source_Source$couchdb("", ""), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), a);
|
|
11903
|
-
return t.Schema_Schema$build(!1, "sales", u.
|
|
11921
|
+
return t.Schema_Schema$build(!1, "sales", u.List_empty, 3, i, t._setArrayType(["restaurantId"], d.JSArray_String), "flatten_item under a parent-item name for classic addon joins — query flatten_item directly instead.", new t.parentFlattenItemSchema_closure(), u.List_empty0, i, i, i, !0, !1, !1, !1, !0, !1, new t.parentFlattenItemSchema_closure0(), "Parent Product", "flatten_items", "flatten_item", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_6, a, i, "", "", i, !0, s, u.List_empty1, i, l);
|
|
11904
11922
|
}), e(q, "paymentSchema", "$get$paymentSchema", () => {
|
|
11905
11923
|
var a = "couchdb_bill", i = "payments", s = "createdAt", l = null, p = t.Source_Source$couchdb(i, "bill"), _ = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), s), M = d.JSArray_String, b = t._setArrayType([t.Index$(t._setArrayType(["id"], M), l, l, l), t.Index$(t._setArrayType(["doc_id"], M), l, l, l), t.Index$(t._setArrayType(["restaurant_id", "created_at"], M), "idx_payments_select_index", l, l), t.Index$(t._setArrayType(["restaurant_id", "payment_created_at"], M), "idx_payments_time_select_index", l, l), t.Index$(t._setArrayType(["bill_id"], M), l, l, l), t.Index$(t._setArrayType(["published_at"], M), l, l, l)], d.JSArray_Index), O = t._setArrayType(["restaurantId"], M);
|
|
11906
|
-
return t.Schema_Schema$build(!1, "sales", t._setArrayType(["payment", "pay", "cash", "card", "credit card", "ewallet", "payment method", "tender"], M), 1, t.Canonical$(u.Map_empty, t._setArrayType(["total"], M), t._setArrayType(["bill.status IN ('COMPLETED', 'REFUNDED')"], M)), O, "One row per tender on a bill (a bill can have several): method name, amount, gateway/terminal identifiers.", new t.paymentSchema_closure(), u.
|
|
11924
|
+
return t.Schema_Schema$build(!1, "sales", t._setArrayType(["payment", "pay", "cash", "card", "credit card", "ewallet", "payment method", "tender"], M), 1, t.Canonical$(u.Map_empty, t._setArrayType(["total"], M), t._setArrayType(["bill.status IN ('COMPLETED', 'REFUNDED')"], M)), O, "One row per tender on a bill (a bill can have several): method name, amount, gateway/terminal identifiers.", new t.paymentSchema_closure(), u.List_empty0, l, b, 120, !1, !0, !1, !1, !1, !1, new t.paymentSchema_closure0(), "Payment", i, "payment", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_10, s, l, a, a, l, !0, p, u.List_empty1, l, _);
|
|
11907
11925
|
}), e(q, "paymentTimePaymentSchema", "$get$paymentTimePaymentSchema", () => {
|
|
11908
11926
|
var a = null, i = t.Source_Source$couchdb("", ""), s = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), "paymentCreatedAt");
|
|
11909
|
-
return t.Schema_Schema$build(!1, "sales", u.
|
|
11927
|
+
return t.Schema_Schema$build(!1, "sales", u.List_empty, 3, a, t._setArrayType(["restaurantId"], d.JSArray_String), "payment keyed by payment time instead of bill creation — use for settlement/shift cut-off questions.", new t.paymentTimePaymentSchema_closure(), u.List_empty0, a, a, a, !0, !1, !1, !1, !1, !1, new t.paymentTimePaymentSchema_closure0(), "Payment (Payment time)", "payments", "payment", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_11, "createdAt", a, "", "", a, !0, i, u.List_empty1, a, s);
|
|
11910
11928
|
}), e(q, "posOverrideItemLogSchema", "$get$posOverrideItemLogSchema", () => {
|
|
11911
11929
|
var a = "couchdb_pos_override_audit_logs", i = "createdAt", s = null, l = t.Source_Source$couchdb("itemLogs", "posOverrideAuditLogs"), p = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), i), _ = d.JSArray_String, M = t._setArrayType([t.Index$(t._setArrayType(["id"], _), s, s, s), t.Index$(t._setArrayType(["doc_id"], _), s, s, s), t.Index$(t._setArrayType(["restaurant_id", "created_at"], _), "idx_poil_select_index", s, s), t.Index$(t._setArrayType(["restaurant_id", "item_id", "created_at"], _), "idx_poil_item_state_index", s, s)], d.JSArray_Index), b = t._setArrayType(["restaurantId"], _), O = t.ReadPiece$(7, 24);
|
|
11912
|
-
return t.Schema_Schema$build(!1, "operations", t._setArrayType(["sold out", "out of stock", "availability", "disable item", "item off"], _), 2, s, b, "Audit log of POS menu-item availability changes: from/to visibility, who changed it, why, and how long the state lasted.", new t.posOverrideItemLogSchema_closure(), u.
|
|
11930
|
+
return t.Schema_Schema$build(!1, "operations", t._setArrayType(["sold out", "out of stock", "availability", "disable item", "item off"], _), 2, s, b, "Audit log of POS menu-item availability changes: from/to visibility, who changed it, why, and how long the state lasted.", new t.posOverrideItemLogSchema_closure(), u.List_empty0, s, M, s, !1, !0, !1, !1, !1, !1, new t.posOverrideItemLogSchema_closure0(), "POS Override Item Log", "pos_override_item_logs", "pos_override_item_log", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_89, i, s, a, a, O, !0, l, u.List_empty1, s, p);
|
|
11913
11931
|
}), e(q, "printActivitySchema", "$get$printActivitySchema", () => {
|
|
11914
11932
|
var a = "couchdb_bill", i = null, s = t.Source_Source$couchdb("printActivities", "bill"), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), "printedAt"), p = d.JSArray_String, _ = t._setArrayType([t.Index$(t._setArrayType(["id"], p), i, i, i), t.Index$(t._setArrayType(["doc_id"], p), i, i, i), t.Index$(t._setArrayType(["restaurant_id", "printed_at"], p), "idx_print_activity_select_index", i, i), t.Index$(t._setArrayType(["bill_id"], p), i, i, i), t.Index$(t._setArrayType(["item_id"], p), i, i, i)], d.JSArray_Index), M = t._setArrayType(["restaurantId"], p), b = t.ReadPiece$(7, 12);
|
|
11915
|
-
return t.Schema_Schema$build(!1, "sales", t._setArrayType(["receipt print", "print activity", "reprint", "print count", "receipt template"], p), 3, i, M, "One row per item on a printed receipt; print_id is shared by every item of one print, so count distinct print_id for prints. Time control is printed_at, when the print happened, while created_at is the bill time. Answers reprint and template questions — who printed, on which template, who approved a reprint. Joins to bill and flatten_item.", new t.printActivitySchema_closure(), u.
|
|
11933
|
+
return t.Schema_Schema$build(!1, "sales", t._setArrayType(["receipt print", "print activity", "reprint", "print count", "receipt template"], p), 3, i, M, "One row per item on a printed receipt; print_id is shared by every item of one print, so count distinct print_id for prints. Time control is printed_at, when the print happened, while created_at is the bill time. Answers reprint and template questions — who printed, on which template, who approved a reprint. Joins to bill and flatten_item.", new t.printActivitySchema_closure(), u.List_empty0, i, _, 120, !1, !0, !1, !1, !1, !1, new t.printActivitySchema_closure0(), "Print Activity", "print_activities", "print_activity", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_115, "createdAt", i, a, a, b, !0, s, u.List_empty1, i, l);
|
|
11916
11934
|
}), e(q, "productPosOverrideV4ItemSchema", "$get$productPosOverrideV4ItemSchema", () => {
|
|
11917
11935
|
var a = "couchdb_m_product_pos_override_v4", i = null, s = t.Source_Source$couchdb("items", "mProductPosOverrideV4"), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), i), p = d.JSArray_String, _ = t._setArrayType([t.Index$(t._setArrayType(["id"], p), i, i, i), t.Index$(t._setArrayType(["doc_id"], p), i, i, i), t.Index$(t._setArrayType(["restaurant_id", "product_id"], p), i, i, i)], d.JSArray_Index), M = t._setArrayType(["restaurantId"], p);
|
|
11918
|
-
return t.Schema_Schema$build(!1, "menu", t._setArrayType(["product pos override", "pos override", "item override", "menu override"], p), 3, i, M, i, new t.productPosOverrideV4ItemSchema_closure(), u.
|
|
11936
|
+
return t.Schema_Schema$build(!1, "menu", t._setArrayType(["product pos override", "pos override", "item override", "menu override"], p), 3, i, M, i, new t.productPosOverrideV4ItemSchema_closure(), u.List_empty0, i, _, i, !1, !0, !1, !1, !1, !1, new t.productPosOverrideV4ItemSchema_closure0(), "Product POS override", "product_pos_override_items", "product_pos_override_item", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_94, i, i, a, a, i, !1, s, u.List_empty1, i, l);
|
|
11919
11937
|
}), e(q, "promotionSchema", "$get$promotionSchema", () => {
|
|
11920
11938
|
var a = "couchdb_promotion", i = "promotion", s = null, l = t.Source_Source$couchdb(s, i), p = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), s), _ = d.JSArray_String, M = t._setArrayType([t.Index$(t._setArrayType(["id"], _), s, s, s), t.Index$(t._setArrayType(["doc_id"], _), s, s, s), t.Index$(t._setArrayType(["published_at"], _), s, s, s), t.Index$(t._setArrayType(["restaurant_id"], _), s, s, s)], d.JSArray_Index), b = t._setArrayType(["restaurantId"], _);
|
|
11921
|
-
return t.Schema_Schema$build(!1, "sales", t._setArrayType(["promotion", "promo", "discount campaign", "offer"], _), 3, s, b, s, new t.promotionSchema_closure(), u.
|
|
11939
|
+
return t.Schema_Schema$build(!1, "sales", t._setArrayType(["promotion", "promo", "discount campaign", "offer"], _), 3, s, b, s, new t.promotionSchema_closure(), u.List_empty0, s, M, s, !1, !0, !1, !1, !1, !1, new t.promotionSchema_closure0(), "Promotion", "promotions", i, u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_93, s, s, a, a, s, !1, l, u.List_empty1, s, p);
|
|
11922
11940
|
}), e(q, "purchaseOrderSchema", "$get$purchaseOrderSchema", () => {
|
|
11923
11941
|
var a = "couchdb_purchase_order", i = null, s = t.Source_Source$couchdb(i, "purchaseOrder"), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId"), t.Permission_Permission$warehouse("warehouseId")], d.JSArray_Permission), "effectiveAt"), p = d.JSArray_String, _ = t._setArrayType([t.Index$(t._setArrayType(["id"], p), i, i, i), t.Index$(t._setArrayType(["doc_id"], p), i, i, i), t.Index$(t._setArrayType(["created_at"], p), i, i, i), t.Index$(t._setArrayType(["effective_at"], p), i, i, i), t.Index$(t._setArrayType(["location_id"], p), i, i, i)], d.JSArray_Index), M = t._setArrayType(["restaurantId"], p);
|
|
11924
|
-
return t.Schema_Schema$build(!1, "inventory", t._setArrayType(["purchase order", "po", "supplier order", "procurement", "restock"], p), 2, i, M, "Supplier purchase order header.", new t.purchaseOrderSchema_closure(), u.
|
|
11942
|
+
return t.Schema_Schema$build(!1, "inventory", t._setArrayType(["purchase order", "po", "supplier order", "procurement", "restock"], p), 2, i, M, "Supplier purchase order header.", new t.purchaseOrderSchema_closure(), u.List_empty0, i, _, i, !1, !1, !1, !1, !1, !1, new t.purchaseOrderSchema_closure0(), "Purchase order", "purchase_orders", "purchase_order", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_28, "createdAt", i, a, a, i, !0, s, u.List_empty1, i, l);
|
|
11925
11943
|
}), e(q, "purchaseOrderDeliveryFulfillmentSchema", "$get$purchaseOrderDeliveryFulfillmentSchema", () => {
|
|
11926
11944
|
var a = "couchdb_purchase_order", i = null, s = t.Source_Source$couchdb("deliveryFulfillments", "purchaseOrder"), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId"), t.Permission_Permission$warehouse("warehouseId")], d.JSArray_Permission), "effectiveAt"), p = d.JSArray_String, _ = t._setArrayType([t.Index$(t._setArrayType(["id"], p), i, i, i), t.Index$(t._setArrayType(["doc_id"], p), i, i, i), t.Index$(t._setArrayType(["created_at"], p), i, i, i), t.Index$(t._setArrayType(["effective_at"], p), i, i, i), t.Index$(t._setArrayType(["location_id"], p), i, i, i)], d.JSArray_Index);
|
|
11927
|
-
return t.Schema_Schema$build(!1, "inventory", u.
|
|
11945
|
+
return t.Schema_Schema$build(!1, "inventory", u.List_empty, 3, i, t._setArrayType(["restaurantId"], p), "One row per fulfillment entry on a purchase order, carrying no quantity or cost of its own; its SKU lines are in purchase_order_delivery_fulfillment_sku. Goods actually received are the delivery order tables, not these. Time control is effective_at, taken from the purchase order.", new t.purchaseOrderDeliveryFulfillmentSchema_closure(), u.List_empty0, i, _, i, !0, !1, !1, !1, !1, !1, new t.purchaseOrderDeliveryFulfillmentSchema_closure0(), "Purchase order delivery fulfillment", "purchase_order_delivery_fulfillments", "purchase_order_delivery_fulfillment", u.MERGE_FILTER_TYPE_1, u.SCHEMA_NAME_33, "createdAt", i, a, a, i, !0, s, u.List_empty1, i, l);
|
|
11928
11946
|
}), e(q, "purchaseOrderDeliveryFulfillmentSkuSchema", "$get$purchaseOrderDeliveryFulfillmentSkuSchema", () => {
|
|
11929
11947
|
var a = "couchdb_purchase_order", i = null, s = t.Source_Source$couchdb("deliveryFulfillmentSkus", "purchaseOrder"), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId"), t.Permission_Permission$warehouse("warehouseId")], d.JSArray_Permission), "effectiveAt"), p = d.JSArray_String, _ = t._setArrayType([t.Index$(t._setArrayType(["id"], p), i, i, i), t.Index$(t._setArrayType(["doc_id"], p), i, i, i), t.Index$(t._setArrayType(["created_at"], p), i, i, i), t.Index$(t._setArrayType(["effective_at"], p), i, i, i), t.Index$(t._setArrayType(["location_id"], p), i, i, i), t.Index$(t._setArrayType(["purchase_order_id"], p), i, i, i), t.Index$(t._setArrayType(["purchase_order_delivery_fulfillment_id"], p), T.idx_pof, i, i), t.Index$(t._setArrayType(["published_at"], p), i, i, i)], d.JSArray_Index);
|
|
11930
|
-
return t.Schema_Schema$build(!1, "inventory", u.
|
|
11948
|
+
return t.Schema_Schema$build(!1, "inventory", u.List_empty, 3, i, t._setArrayType(["restaurantId"], p), "One row per SKU line on a purchase order fulfillment: quantity in the SKU base unit, and no cost column — the delivery order SKU line is the one that carries cost. Time control is effective_at, taken from the purchase order.", new t.purchaseOrderDeliveryFulfillmentSkuSchema_closure(), u.List_empty0, i, _, i, !0, !1, !1, !1, !1, !1, new t.purchaseOrderDeliveryFulfillmentSkuSchema_closure0(), "Purchase order delivery fulfillment sku", "purchase_order_delivery_fulfillment_skus", "purchase_order_delivery_fulfillment_sku", u.MERGE_FILTER_TYPE_1, u.SCHEMA_NAME_35, "createdAt", i, a, a, i, !0, s, u.List_empty1, i, l);
|
|
11931
11949
|
}), e(q, "purchaseOrderDeliveryOrderSchema", "$get$purchaseOrderDeliveryOrderSchema", () => {
|
|
11932
11950
|
var a = "couchdb_purchase_order", i = null, s = t.Source_Source$couchdb("deliveryOrders", "purchaseOrder"), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId"), t.Permission_Permission$warehouse("warehouseId")], d.JSArray_Permission), "effectiveAt"), p = d.JSArray_String, _ = t._setArrayType([t.Index$(t._setArrayType(["id"], p), i, i, i), t.Index$(t._setArrayType(["doc_id"], p), i, i, i), t.Index$(t._setArrayType(["created_at"], p), i, i, i), t.Index$(t._setArrayType(["effective_at"], p), i, i, i), t.Index$(t._setArrayType(["location_id"], p), i, i, i), t.Index$(t._setArrayType(["purchase_order_id", "location_id"], p), "idx_podo_poidlid_index", i, i)], d.JSArray_Index);
|
|
11933
|
-
return t.Schema_Schema$build(!1, "inventory", u.
|
|
11951
|
+
return t.Schema_Schema$build(!1, "inventory", u.List_empty, 3, i, t._setArrayType(["restaurantId"], p), "One row per delivery received against a purchase order, with its delivery order number and who recorded it; a purchase order with one of these reads as partially received. The SKU lines and quantities are in purchase_order_delivery_order_sku, and purchase_order_item.received_quantity already sums them per order line. Time control is effective_at, taken from the purchase order, so every delivery of one order shares it; created_at is when the delivery itself was entered.", new t.purchaseOrderDeliveryOrderSchema_closure(), u.List_empty0, i, _, i, !0, !1, !1, !1, !1, !1, new t.purchaseOrderDeliveryOrderSchema_closure0(), "Purchase order delivery order", "purchase_order_delivery_orders", "purchase_order_delivery_order", u.MERGE_FILTER_TYPE_1, u.SCHEMA_NAME_32, "createdAt", i, a, a, i, !0, s, u.List_empty1, i, l);
|
|
11934
11952
|
}), e(q, "purchaseOrderDeliveryOrderSkuSchema", "$get$purchaseOrderDeliveryOrderSkuSchema", () => {
|
|
11935
11953
|
var a = "couchdb_purchase_order", i = null, s = t.Source_Source$couchdb("deliveryOrderSkus", "purchaseOrder"), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId"), t.Permission_Permission$warehouse("warehouseId")], d.JSArray_Permission), "effectiveAt"), p = d.JSArray_String, _ = t._setArrayType([t.Index$(t._setArrayType(["id"], p), i, i, i), t.Index$(t._setArrayType(["doc_id"], p), i, i, i), t.Index$(t._setArrayType(["created_at"], p), i, i, i), t.Index$(t._setArrayType(["effective_at"], p), i, i, i), t.Index$(t._setArrayType(["location_id"], p), i, i, i), t.Index$(t._setArrayType(["purchase_order_id"], p), i, i, i), t.Index$(t._setArrayType(["purchase_order_delivery_order_id"], p), T.idx_poo, i, i), t.Index$(t._setArrayType(["published_at"], p), i, i, i)], d.JSArray_Index);
|
|
11936
|
-
return t.Schema_Schema$build(!1, "inventory", u.
|
|
11954
|
+
return t.Schema_Schema$build(!1, "inventory", u.List_empty, 3, i, t._setArrayType(["restaurantId"], p), "One row per SKU line on a delivery received against a purchase order: quantity in the SKU base unit and the cost recorded for it. Answers what arrived per SKU per delivery; purchase_order_item.received_quantity is the same quantity already summed per order line. Time control is effective_at, taken from the purchase order.", new t.purchaseOrderDeliveryOrderSkuSchema_closure(), u.List_empty0, i, _, i, !0, !1, !1, !1, !1, !1, new t.purchaseOrderDeliveryOrderSkuSchema_closure0(), "Purchase order delivery order sku", "purchase_order_delivery_order_skus", "purchase_order_delivery_order_sku", u.MERGE_FILTER_TYPE_1, u.SCHEMA_NAME_34, "createdAt", i, a, a, i, !0, s, u.List_empty1, i, l);
|
|
11937
11955
|
}), e(q, "purchaseOrderItemSchema", "$get$purchaseOrderItemSchema", () => {
|
|
11938
11956
|
var a = "couchdb_purchase_order", i = null, s = t.Source_Source$couchdb("items", "purchaseOrder"), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId"), t.Permission_Permission$warehouse("warehouseId")], d.JSArray_Permission), "effectiveAt"), p = d.JSArray_String, _ = t._setArrayType([t.Index$(t._setArrayType(["id"], p), i, i, i), t.Index$(t._setArrayType(["doc_id"], p), i, i, i), t.Index$(t._setArrayType(["created_at"], p), i, i, i), t.Index$(t._setArrayType(["effective_at"], p), i, i, i), t.Index$(t._setArrayType(["purchase_order_id"], p), i, i, i), t.Index$(t._setArrayType(["location_id"], p), i, i, i), t.Index$(t._setArrayType(["published_at"], p), i, i, i)], d.JSArray_Index), M = t._setArrayType(["restaurantId"], p);
|
|
11939
|
-
return t.Schema_Schema$build(!1, "inventory", t._setArrayType(["purchase order", "po", "supplier order", "procurement", "restock"], p), 2, i, M, "Purchase order line per SKU: ordered/received quantity and cost.", new t.purchaseOrderItemSchema_closure(), u.
|
|
11957
|
+
return t.Schema_Schema$build(!1, "inventory", t._setArrayType(["purchase order", "po", "supplier order", "procurement", "restock"], p), 2, i, M, "Purchase order line per SKU: ordered/received quantity and cost.", new t.purchaseOrderItemSchema_closure(), u.List_empty0, i, _, i, !1, !1, !1, !1, !1, !1, new t.purchaseOrderItemSchema_closure0(), "Purchase order item", "purchase_order_items", "purchase_order_item", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_29, "createdAt", i, a, a, i, !0, s, u.List_empty1, i, l);
|
|
11940
11958
|
}), e(q, "purchaseOrderTemplateSchema", "$get$purchaseOrderTemplateSchema", () => {
|
|
11941
11959
|
var a = "couchdb_purchase_order_template", i = null, s = t.Source_Source$couchdb("locations", "purchaseOrderTemplate"), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId"), t.Permission_Permission$warehouse("warehouseId")], d.JSArray_Permission), i), p = d.JSArray_String, _ = t._setArrayType([t.Index$(t._setArrayType(["id"], p), i, i, i), t.Index$(t._setArrayType(["doc_id"], p), i, i, i), t.Index$(t._setArrayType(["location_id", "created_at"], p), "idx_pot_select_index", i, i), t.Index$(t._setArrayType(["published_at"], p), i, i, i), t.Index$(t._setArrayType(["business_id", "purchase_order_template_id"], p), "idx_pot_template_index", i, i)], d.JSArray_Index), M = t._setArrayType(["restaurantId"], p);
|
|
11942
|
-
return t.Schema_Schema$build(!1, "inventory", t._setArrayType(["purchase order template", "po template", "procurement template", "supplier order template"], p), 3, i, M, i, new t.purchaseOrderTemplateSchema_closure(), u.
|
|
11960
|
+
return t.Schema_Schema$build(!1, "inventory", t._setArrayType(["purchase order template", "po template", "procurement template", "supplier order template"], p), 3, i, M, i, new t.purchaseOrderTemplateSchema_closure(), u.List_empty0, i, _, i, !1, !0, !1, !1, !1, !1, new t.purchaseOrderTemplateSchema_closure0(), "Purchase order template", "purchase_order_templates", "purchase_order_template", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_30, i, i, a, a, i, !1, s, u.List_empty1, i, l);
|
|
11943
11961
|
}), e(q, "purchaseOrderTemplateItemSchema", "$get$purchaseOrderTemplateItemSchema", () => {
|
|
11944
11962
|
var a = "couchdb_purchase_order_template", i = null, s = t.Source_Source$couchdb("items", "purchaseOrderTemplate"), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$business("businessId")], d.JSArray_Permission), i), p = d.JSArray_String, _ = t._setArrayType([t.Index$(t._setArrayType(["id"], p), i, i, i), t.Index$(t._setArrayType(["doc_id"], p), i, i, i), t.Index$(t._setArrayType(["created_at"], p), i, i, i), t.Index$(t._setArrayType(["business_id", "purchase_order_template_id"], p), "idx_poti_template_index", i, i)], d.JSArray_Index), M = t._setArrayType([], p);
|
|
11945
|
-
return t.Schema_Schema$build(!1, "inventory", t._setArrayType(["purchase order template item", "po template item", "procurement template item", "template sku"], p), 3, i, M, i, new t.purchaseOrderTemplateItemSchema_closure(), u.
|
|
11963
|
+
return t.Schema_Schema$build(!1, "inventory", t._setArrayType(["purchase order template item", "po template item", "procurement template item", "template sku"], p), 3, i, M, i, new t.purchaseOrderTemplateItemSchema_closure(), u.List_empty0, i, _, i, !1, !0, !1, !1, !1, !1, new t.purchaseOrderTemplateItemSchema_closure0(), "Purchase order template item", "purchase_order_template_items", "purchase_order_template_item", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_31, i, i, a, a, i, !1, s, u.List_empty1, i, l);
|
|
11946
11964
|
}), e(q, "inventoryV1RecipeSchema", "$get$inventoryV1RecipeSchema", () => {
|
|
11947
11965
|
var a = "couchdb_m_inventory_v1", i = null, s = t.Source_Source$couchdb("recipes", "mInventoryV1"), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId"), t.Permission_Permission$warehouse("warehouseId")], d.JSArray_Permission), i), p = d.JSArray_String, _ = t._setArrayType([t.Index$(t._setArrayType(["id"], p), i, i, i), t.Index$(t._setArrayType(["doc_id"], p), i, i, i), t.Index$(t._setArrayType(["published_at"], p), i, i, i), t.Index$(t._setArrayType(["location_id"], p), i, i, i), t.Index$(t._setArrayType(["recipe_id"], p), i, i, i)], d.JSArray_Index);
|
|
11948
|
-
return t.Schema_Schema$build(!1, "inventory", u.
|
|
11966
|
+
return t.Schema_Schema$build(!1, "inventory", u.List_empty, 3, i, t._setArrayType(["restaurantId"], p), "Legacy inventory V1 recipe — prefer menu_v4_item_inventory_binding.", new t.inventoryV1RecipeSchema_closure(), u.List_empty0, i, _, i, !1, !0, !1, !1, !1, !1, new t.inventoryV1RecipeSchema_closure0(), "Recipe", "inventory_recipes", "inventory_recipe", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_75, i, i, a, a, i, !1, s, u.List_empty1, i, l);
|
|
11949
11967
|
}), e(q, "recommendationCallSchema", "$get$recommendationCallSchema", () => {
|
|
11950
11968
|
var a = "recommendation_call", i = null, s = t.Source_Source$mongodb(i, a), l = t.TopLevelFilters$(t._setArrayType([], d.JSArray_Permission), i), p = t._setArrayType([], d.JSArray_Index);
|
|
11951
|
-
return t.Schema_Schema$build(!1, i, u.
|
|
11969
|
+
return t.Schema_Schema$build(!1, i, u.List_empty, 3, i, t._setArrayType([], d.JSArray_String), i, new t.recommendationCallSchema_closure(), u.List_empty0, i, p, i, !0, !1, !1, !1, !0, !0, new t.recommendationCallSchema_closure0(), "Recommendation call", "recommendation_calls", a, u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_82, i, i, "mongodb_recommendation_call", "mongodb_company_db_recommendation_call", i, !1, s, u.List_empty1, i, l);
|
|
11952
11970
|
}), e(q, "recordSchema", "$get$recordSchema", () => {
|
|
11953
11971
|
var a = "couchdb_record", i = null, s = "createdAt", l = t.Source_Source$couchdb(i, "record"), p = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), s), _ = d.JSArray_String, M = t._setArrayType([t.Index$(t._setArrayType(["id"], _), i, i, i), t.Index$(t._setArrayType(["doc_id"], _), i, i, i), t.Index$(t._setArrayType(["created_at"], _), i, i, i), t.Index$(t._setArrayType(["restaurant_id"], _), i, i, i), t.Index$(t._setArrayType(["restaurant_id", "created_at"], _), "idx_records_select_index", i, i)], d.JSArray_Index), b = t._setArrayType(["restaurantId"], _), O = t.Canonical$(u.Map_empty, t._setArrayType(["amount", "open_amount", "cash_sale", "cash_refund", "cash_in", "cash_out"], _), t._setArrayType(["closed_at IS NOT NULL"], _));
|
|
11954
|
-
return t.Schema_Schema$build(!1, "operations", t._setArrayType(["cash drawer", "counter session", "opening float", "closing balance", "cash balance"], _), 2, O, b, "Counter cash session: opening float, the cash counted at close, and the cash movements in between, per counter per session.", new t.recordSchema_closure(), u.
|
|
11972
|
+
return t.Schema_Schema$build(!1, "operations", t._setArrayType(["cash drawer", "counter session", "opening float", "closing balance", "cash balance"], _), 2, O, b, "Counter cash session: opening float, the cash counted at close, and the cash movements in between, per counter per session.", new t.recordSchema_closure(), u.List_empty0, i, M, i, !0, !0, !1, !1, !1, !1, new t.recordSchema_closure0(), "Counter record", "records", "record", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_13, s, i, a, a, i, !0, l, u.List_empty1, i, p);
|
|
11955
11973
|
}), e(q, "refundBillSchema", "$get$refundBillSchema", () => {
|
|
11956
11974
|
var a = null, i = t.Source_Source$couchdb(a, ""), s = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), a), l = d.JSArray_String, p = t._setArrayType([t.Index$(t._setArrayType(["id"], l), a, a, a), t.Index$(t._setArrayType(["doc_id"], l), a, a, a), t.Index$(t._setArrayType(["restaurant_id", "created_at"], l), "idx_bills_select_index", a, a), t.Index$(t._setArrayType(["member_id"], l), a, a, a), t.Index$(t._setArrayType(["member_user_id"], l), a, a, a), t.Index$(t._setArrayType(["published_at"], l), a, a, a)], d.JSArray_Index), _ = t._setArrayType(["restaurantId"], l);
|
|
11957
|
-
return t.Schema_Schema$build(!1, "specialized", t._setArrayType(["refund", "return"], l), 3, a, _, "Bill rows for refunds; bill.refund_from points here.", new t.refundBillSchema_closure(), u.
|
|
11975
|
+
return t.Schema_Schema$build(!1, "specialized", t._setArrayType(["refund", "return"], l), 3, a, _, "Bill rows for refunds; bill.refund_from points here.", new t.refundBillSchema_closure(), u.List_empty0, a, p, a, !0, !1, !1, !1, !0, !1, new t.refundBillSchema_closure0(), "Refund Bill", "bills", "bill", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_72, "createdAt", a, "", "", a, !0, i, u.List_empty1, a, s);
|
|
11958
11976
|
}), e(q, "remoteOrderSchema", "$get$remoteOrderSchema", () => {
|
|
11959
11977
|
var a = null, i = t.Source_Source$mongodb(a, "Orders"), s = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), "orderAt"), l = d.JSArray_String, p = t._setArrayType([t.Index$(t._setArrayType(["id"], l), a, a, a), t.Index$(t._setArrayType(["doc_id"], l), a, a, a), t.Index$(t._setArrayType(["restaurant_id", "created_at"], l), "idx_remote_orders_select_index", a, a), t.Index$(t._setArrayType(["restaurant_id", "order_at"], l), "idx_remote_orders_order_index", a, a), t.Index$(t._setArrayType(["restaurant_id", "pickup_at"], l), "idx_remote_orders_pickup_index", a, a), t.Index$(t._setArrayType(["member_id"], l), a, a, a), t.Index$(t._setArrayType(["published_at"], l), a, a, a)], d.JSArray_Index), _ = t._setArrayType(["restaurantId"], l);
|
|
11960
|
-
return t.Schema_Schema$build(!1, "sales", t._setArrayType(["order", "self order", "online order", "pending payment", "rejected order", "accepted order"], l), 2, a, _, "Self-order (QR/kiosk/web) order header before it becomes a bill — includes pending/rejected states bills never see.", new t.remoteOrderSchema_closure(), u.
|
|
11978
|
+
return t.Schema_Schema$build(!1, "sales", t._setArrayType(["order", "self order", "online order", "pending payment", "rejected order", "accepted order"], l), 2, a, _, "Self-order (QR/kiosk/web) order header before it becomes a bill — includes pending/rejected states bills never see.", new t.remoteOrderSchema_closure(), u.List_empty0, a, p, a, !1, !0, !1, !1, !1, !1, new t.remoteOrderSchema_closure0(), "Order", "remote_orders", "remote_order", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_96, "createdAt", a, "mongodb_orders", "mongodb_company_db_orders", a, !0, i, u.List_empty1, a, s);
|
|
11961
11979
|
}), e(q, "remoteOrderAddonFlattenItemSchema", "$get$remoteOrderAddonFlattenItemSchema", () => {
|
|
11962
11980
|
var a = null, i = "createdAt", s = t.Source_Source$mongodb(a, ""), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), i);
|
|
11963
|
-
return t.Schema_Schema$build(!1, "sales", u.
|
|
11981
|
+
return t.Schema_Schema$build(!1, "sales", u.List_empty, 3, a, t._setArrayType(["restaurantId"], d.JSArray_String), "remote_order_flatten_item under an addon oriented name for classic joins — query remote_order_flatten_item directly instead.", new t.remoteOrderAddonFlattenItemSchema_closure(), u.List_empty0, a, a, a, !0, !1, !1, !1, !0, !1, new t.remoteOrderAddonFlattenItemSchema_closure0(), "Order addon", "remote_order_flatten_items", "remote_order_flatten_item", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_105, i, a, "", "", t.ReadPiece$(7, 12), !0, s, u.List_empty1, a, l);
|
|
11964
11982
|
}), e(q, "remoteOrderFlattenItemSchema", "$get$remoteOrderFlattenItemSchema", () => {
|
|
11965
11983
|
var a = null, i = t.Source_Source$mongodb("flattenItems", "Orders"), s = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), "orderAt"), l = d.JSArray_String, p = t._setArrayType([t.Index$(t._setArrayType(["id"], l), a, a, a), t.Index$(t._setArrayType(["doc_id"], l), a, a, a), t.Index$(t._setArrayType(["restaurant_id", "created_at"], l), "idx_remote_order_flatten_items_select_index", a, a), t.Index$(t._setArrayType(["order_id"], l), a, a, a), t.Index$(t._setArrayType(["parent_id"], l), a, a, a), t.Index$(t._setArrayType(["published_at"], l), a, a, a)], d.JSArray_Index), _ = t._setArrayType(["restaurantId"], l);
|
|
11966
|
-
return t.Schema_Schema$build(!1, "sales", t._setArrayType(["order item", "order product", "kiosk item", "ordered item", "order modifier", "order addon"], l), 2, a, _, "Line items of self-order (QR/kiosk/web) orders.", new t.remoteOrderFlattenItemSchema_closure(), u.
|
|
11984
|
+
return t.Schema_Schema$build(!1, "sales", t._setArrayType(["order item", "order product", "kiosk item", "ordered item", "order modifier", "order addon"], l), 2, a, _, "Line items of self-order (QR/kiosk/web) orders.", new t.remoteOrderFlattenItemSchema_closure(), u.List_empty0, a, p, a, !1, !0, !1, !1, !1, !1, new t.remoteOrderFlattenItemSchema_closure0(), "Order product", "remote_order_flatten_items", "remote_order_flatten_item", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_97, "createdAt", `select i.*, o.order_at
|
|
11967
11985
|
from remote_order_flatten_items i
|
|
11968
11986
|
join remote_orders o
|
|
11969
11987
|
on o.id = i.order_id
|
|
11970
11988
|
and o.restaurant_id = i.restaurant_id
|
|
11971
|
-
`, "mongodb_orders", "mongodb_company_db_orders", a, !0, i, u.
|
|
11989
|
+
`, "mongodb_orders", "mongodb_company_db_orders", a, !0, i, u.List_empty1, a, s);
|
|
11972
11990
|
}), e(q, "remoteOrderParentFlattenItemSchema", "$get$remoteOrderParentFlattenItemSchema", () => {
|
|
11973
11991
|
var a = null, i = "createdAt", s = t.Source_Source$mongodb(a, ""), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), i);
|
|
11974
|
-
return t.Schema_Schema$build(!1, "sales", u.
|
|
11992
|
+
return t.Schema_Schema$build(!1, "sales", u.List_empty, 3, a, t._setArrayType(["restaurantId"], d.JSArray_String), "remote_order_flatten_item under a parent item name for classic addon joins — query remote_order_flatten_item directly instead.", new t.remoteOrderParentFlattenItemSchema_closure(), u.List_empty0, a, a, a, !0, !1, !1, !1, !0, !1, new t.remoteOrderParentFlattenItemSchema_closure0(), "Order parent product", "remote_order_flatten_items", "remote_order_flatten_item", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_106, i, a, "", "", a, !0, s, u.List_empty1, a, l);
|
|
11975
11993
|
}), e(q, "remotePickupOrderSchema", "$get$remotePickupOrderSchema", () => {
|
|
11976
11994
|
var a = null, i = "pickupAt", s = t.Source_Source$mongodb(a, ""), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), i), p = d.JSArray_String, _ = t._setArrayType(["restaurantId"], p);
|
|
11977
|
-
return t.Schema_Schema$build(!1, "sales", t._setArrayType(["pickup order", "pickup", "self pickup", "collection order", "scheduled pickup"], p), 2, a, _, "Scheduled pickup order header, including states before a bill exists.", new t.remotePickupOrderSchema_closure(), u.
|
|
11995
|
+
return t.Schema_Schema$build(!1, "sales", t._setArrayType(["pickup order", "pickup", "self pickup", "collection order", "scheduled pickup"], p), 2, a, _, "Scheduled pickup order header, including states before a bill exists.", new t.remotePickupOrderSchema_closure(), u.List_empty0, a, a, a, !1, !1, !1, !1, !1, !1, new t.remotePickupOrderSchema_closure0(), "Pickup order", "remote_pickup_orders", "remote_pickup_order", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_107, i, `select
|
|
11978
11996
|
id,
|
|
11979
11997
|
doc_id,
|
|
11980
11998
|
created_at,
|
|
@@ -11996,10 +12014,10 @@ join remote_orders o
|
|
|
11996
12014
|
slot
|
|
11997
12015
|
from remote_orders
|
|
11998
12016
|
where option_type = 'PICKUP'
|
|
11999
|
-
`, "", "", a, !0, s, u.
|
|
12017
|
+
`, "", "", a, !0, s, u.List_empty1, a, l);
|
|
12000
12018
|
}), e(q, "remotePickupOrderFlattenItemSchema", "$get$remotePickupOrderFlattenItemSchema", () => {
|
|
12001
12019
|
var a = null, i = "pickupAt", s = t.Source_Source$mongodb(a, ""), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), i), p = d.JSArray_String, _ = t._setArrayType(["restaurantId"], p);
|
|
12002
|
-
return t.Schema_Schema$build(!1, "sales", t._setArrayType(["pickup order item", "pickup order product", "pickup item", "collection order item", "scheduled pickup item"], p), 2, a, _, "Line items of scheduled pickup orders.", new t.remotePickupOrderFlattenItemSchema_closure(), u.
|
|
12020
|
+
return t.Schema_Schema$build(!1, "sales", t._setArrayType(["pickup order item", "pickup order product", "pickup item", "collection order item", "scheduled pickup item"], p), 2, a, _, "Line items of scheduled pickup orders.", new t.remotePickupOrderFlattenItemSchema_closure(), u.List_empty0, a, a, a, !1, !1, !1, !1, !1, !1, new t.remotePickupOrderFlattenItemSchema_closure0(), "Pickup order product", "remote_pickup_order_flatten_items", "remote_pickup_order_flatten_item", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_108, i, `select
|
|
12003
12021
|
i.*,
|
|
12004
12022
|
o.user_id,
|
|
12005
12023
|
o.pickup_at
|
|
@@ -12008,22 +12026,22 @@ join remote_orders o
|
|
|
12008
12026
|
on o.id = i.order_id
|
|
12009
12027
|
and o.restaurant_id = i.restaurant_id
|
|
12010
12028
|
where o.option_type = 'PICKUP'
|
|
12011
|
-
`, "", "", a, !0, s, u.
|
|
12029
|
+
`, "", "", a, !0, s, u.List_empty1, a, l);
|
|
12012
12030
|
}), e(q, "restaurantSchema", "$get$restaurantSchema", () => {
|
|
12013
12031
|
var a = null, i = t.Source_Source$mongodb(a, "Restaurants"), s = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("id")], d.JSArray_Permission), a), l = d.JSArray_String, p = t._setArrayType([t.Index$(t._setArrayType(["id"], l), a, a, a), t.Index$(t._setArrayType(["doc_id"], l), a, a, a), t.Index$(t._setArrayType(["business_id"], l), a, a, a)], d.JSArray_Index), _ = t._setArrayType(["id"], l);
|
|
12014
|
-
return t.Schema_Schema$build(!1, "sales", t._setArrayType(["restaurant", "outlet", "branch", "location", "store"], l), 1, a, _, "Outlet master, one row per outlet. Join it for outlet names; not a fact table.", new t.restaurantSchema_closure(), u.
|
|
12032
|
+
return t.Schema_Schema$build(!1, "sales", t._setArrayType(["restaurant", "outlet", "branch", "location", "store"], l), 1, a, _, "Outlet master, one row per outlet. Join it for outlet names; not a fact table.", new t.restaurantSchema_closure(), u.List_empty0, a, p, a, !1, !0, !1, !1, !1, !1, new t.restaurantSchema_closure0(), "Restaurant", "restaurants", "restaurant", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_14, a, a, "mongodb_restaurants", "mongodb_company_db_restaurants", a, !1, i, u.List_empty1, a, s);
|
|
12015
12033
|
}), e(q, "restaurantFeatureSchema", "$get$restaurantFeatureSchema", () => {
|
|
12016
12034
|
var a = null, i = t.Source_Source$mongodb("features", "Restaurants"), s = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), a), l = d.JSArray_String, p = t._setArrayType([t.Index$(t._setArrayType(["id"], l), a, a, a), t.Index$(t._setArrayType(["doc_id"], l), a, a, a), t.Index$(t._setArrayType(["restaurant_id"], l), a, a, a)], d.JSArray_Index);
|
|
12017
|
-
return t.Schema_Schema$build(!1, "operations", u.
|
|
12035
|
+
return t.Schema_Schema$build(!1, "operations", u.List_empty, 3, a, t._setArrayType(["restaurantId"], l), "One row per feature listed on an outlet, name only. Answers which outlets carry a feature; it is configuration rather than a fact table, and has no time control.", new t.restaurantFeatureSchema_closure(), u.List_empty0, a, p, a, !0, !0, !1, !1, !1, !1, new t.restaurantFeatureSchema_closure0(), "Restaurant feature", "restaurant_features", "restaurant_feature", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_15, a, a, "mongodb_restaurants", "mongodb_company_db_restaurants", a, !1, i, u.List_empty1, a, s);
|
|
12018
12036
|
}), e(q, "restaurantLocationSchema", "$get$restaurantLocationSchema", () => {
|
|
12019
12037
|
var a = null, i = t.Source_Source$mongodb(a, "Restaurants"), s = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("id")], d.JSArray_Permission), a), l = d.JSArray_String, p = t._setArrayType([t.Index$(t._setArrayType(["id"], l), a, a, a), t.Index$(t._setArrayType(["doc_id"], l), a, a, a), t.Index$(t._setArrayType(["business_id"], l), a, a, a)], d.JSArray_Index);
|
|
12020
|
-
return t.Schema_Schema$build(!1, "inventory", u.
|
|
12038
|
+
return t.Schema_Schema$build(!1, "inventory", u.List_empty, 3, a, t._setArrayType(["id"], l), "Inventory location master for restaurant-held stock.", new t.restaurantLocationSchema_closure(), u.List_empty0, a, p, a, !1, !0, !1, !1, !1, !0, new t.restaurantLocationSchema_closure0(), "Location", "locations", "location", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_48, a, a, "mongodb_restaurants", "mongodb_company_db_restaurants", a, !1, i, u.List_empty1, a, s);
|
|
12021
12039
|
}), e(q, "reviewSchema", "$get$reviewSchema", () => {
|
|
12022
12040
|
var a = "mongodb_marketing_db_reviews", i = null, s = "createdAt", l = t.Source_Source$mongodb(i, "Reviews"), p = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), s), _ = d.JSArray_String, M = t._setArrayType([t.Index$(t._setArrayType(["id"], _), i, i, i), t.Index$(t._setArrayType(["doc_id"], _), i, i, i), t.Index$(t._setArrayType(["created_at"], _), i, i, i), t.Index$(t._setArrayType(["user_id"], _), i, i, i), t.Index$(t._setArrayType(["bill_id"], _), i, i, i), t.Index$(t._setArrayType(["restaurant_id"], _), i, i, i)], d.JSArray_Index), b = t._setArrayType([], _);
|
|
12023
|
-
return t.Schema_Schema$build(!1, "specialized", t._setArrayType(["review", "rating", "feedback", "star", "google review"], _), 3, i, b, "One row per customer review of an outlet, from three sources (source): feedme (left after a FeedMe bill), google (synced from Google Business Profile) and feedvibe. created_at is when the customer left the review. rating is the overall 1 to 5 stars for every source; food_rating, service_rating and atmosphere_rating exist only for feedvibe. bill_id and user_id are set only for feedme. replied_at and deleted_at are set only for google; a row with deleted_at was removed on Google, so exclude it from counts and averages. Joins to bill, restaurant and the reviewing user.", new t.reviewSchema_closure(), u.
|
|
12041
|
+
return t.Schema_Schema$build(!1, "specialized", t._setArrayType(["review", "rating", "feedback", "star", "google review"], _), 3, i, b, "One row per customer review of an outlet, from three sources (source): feedme (left after a FeedMe bill), google (synced from Google Business Profile) and feedvibe. created_at is when the customer left the review. rating is the overall 1 to 5 stars for every source; food_rating, service_rating and atmosphere_rating exist only for feedvibe. bill_id and user_id are set only for feedme. replied_at and deleted_at are set only for google; a row with deleted_at was removed on Google, so exclude it from counts and averages. Joins to bill, restaurant and the reviewing user.", new t.reviewSchema_closure(), u.List_empty0, i, M, i, !1, !0, !1, !1, !1, !1, new t.reviewSchema_closure0(), "Review", "reviews", "review", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_63, s, i, a, a, i, !0, l, u.List_empty1, i, p);
|
|
12024
12042
|
}), e(q, "salePaymentSchema", "$get$salePaymentSchema", () => {
|
|
12025
12043
|
var a = null, i = "createdAt", s = t.Source_Source$couchdb(a, ""), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), i);
|
|
12026
|
-
return t.Schema_Schema$build(!1, "sales", u.
|
|
12044
|
+
return t.Schema_Schema$build(!1, "sales", u.List_empty, 3, a, t._setArrayType(["restaurantId"], d.JSArray_String), "Bill payments and member store purchase payments in one table, one row per tender line; type says which side a row came from and transaction_id points at the bill or the member store purchase. Use it only when a question spans both — payment is the bill side and carries far more detail. created_at is the payment time.", new t.salePaymentSchema_closure(), u.List_empty0, a, a, a, !0, !1, !1, !1, !1, !1, new t.salePaymentSchema_closure0(), "Sale Payment", "sale_payments", "sale_payment", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_87, i, `select
|
|
12027
12045
|
id,
|
|
12028
12046
|
restaurant_id,
|
|
12029
12047
|
created_at,
|
|
@@ -12054,10 +12072,10 @@ select
|
|
|
12054
12072
|
member_store_purchase_id as transaction_id,
|
|
12055
12073
|
'MEMBER_STORE_PURCHASE' as type
|
|
12056
12074
|
from member_store_purchase_payments
|
|
12057
|
-
`, "", "", t.ReadPiece$(7, 12), !0, s, u.
|
|
12075
|
+
`, "", "", t.ReadPiece$(7, 12), !0, s, u.List_empty1, a, l);
|
|
12058
12076
|
}), e(q, "saleTransactionSchema", "$get$saleTransactionSchema", () => {
|
|
12059
12077
|
var a = null, i = "createdAt", s = t.Source_Source$couchdb(a, ""), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), i);
|
|
12060
|
-
return t.Schema_Schema$build(!1, "sales", u.
|
|
12078
|
+
return t.Schema_Schema$build(!1, "sales", u.List_empty, 3, a, t._setArrayType(["restaurantId"], d.JSArray_String), "Bills and member store purchases in one table, one row per document; type says which side a row came from. Refund rows arrive already negative on gross_total, tax_total, nett_total and discount_total, so sum them as they stand, and every bill status is included, so filter status yourself. Use bill when the question is only about bills — it carries the channel, table, staff and member detail this union drops.", new t.saleTransactionSchema_closure(), u.List_empty0, a, a, a, !0, !1, !1, !1, !1, !1, new t.saleTransactionSchema_closure0(), "Sale Transaction", "sale_transactions", "sale_transaction", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_88, i, `select
|
|
12061
12079
|
id,
|
|
12062
12080
|
restaurant_id,
|
|
12063
12081
|
created_at,
|
|
@@ -12090,40 +12108,40 @@ select
|
|
|
12090
12108
|
null as seq_number,
|
|
12091
12109
|
'MEMBER_STORE_PURCHASE' as type
|
|
12092
12110
|
from member_store_purchases
|
|
12093
|
-
`, "", "", t.ReadPiece$(7, 12), !0, s, u.
|
|
12111
|
+
`, "", "", t.ReadPiece$(7, 12), !0, s, u.List_empty1, a, l);
|
|
12094
12112
|
}), e(q, "inventoryV1SkuSchema", "$get$inventoryV1SkuSchema", () => {
|
|
12095
12113
|
var a = "couchdb_m_inventory_v1", i = null, s = t.Source_Source$couchdb("skus", "mInventoryV1"), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId"), t.Permission_Permission$warehouse("warehouseId")], d.JSArray_Permission), i), p = d.JSArray_String, _ = t._setArrayType([t.Index$(t._setArrayType(["id"], p), i, i, i), t.Index$(t._setArrayType(["doc_id"], p), i, i, i), t.Index$(t._setArrayType(["published_at"], p), i, i, i), t.Index$(t._setArrayType(["location_id"], p), i, i, i), t.Index$(t._setArrayType(["sku_id"], p), i, i, i)], d.JSArray_Index);
|
|
12096
|
-
return t.Schema_Schema$build(!1, "inventory", u.
|
|
12114
|
+
return t.Schema_Schema$build(!1, "inventory", u.List_empty, 3, i, t._setArrayType(["restaurantId"], p), "Legacy inventory V1 SKU master.", new t.inventoryV1SkuSchema_closure(), u.List_empty0, i, _, i, !0, !0, !1, !1, !1, !1, new t.inventoryV1SkuSchema_closure0(), "SKU", "inventory_skus", "inventory_sku", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_92, i, i, a, a, i, !1, s, u.List_empty1, i, l);
|
|
12097
12115
|
}), e(q, "slotSchema", "$get$slotSchema", () => {
|
|
12098
12116
|
var a = "couchdb_m_slot", i = null, s = t.Source_Source$couchdb(i, "slot"), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), i), p = d.JSArray_String, _ = t._setArrayType([t.Index$(t._setArrayType(["id"], p), i, i, i), t.Index$(t._setArrayType(["doc_id"], p), i, i, i), t.Index$(t._setArrayType(["restaurant_id"], p), i, i, i)], d.JSArray_Index), M = t._setArrayType(["restaurantId"], p);
|
|
12099
|
-
return t.Schema_Schema$build(!1, "operations", t._setArrayType(["slot", "time slot", "booking", "reservation"], p), 2, i, M, "Dine-in table master.", new t.slotSchema_closure(), u.
|
|
12117
|
+
return t.Schema_Schema$build(!1, "operations", t._setArrayType(["slot", "time slot", "booking", "reservation"], p), 2, i, M, "Dine-in table master.", new t.slotSchema_closure(), u.List_empty0, i, _, i, !0, !0, !1, !1, !1, !1, new t.slotSchema_closure0(), "Table", "slots", "slot", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_16, i, i, a, a, i, !1, s, u.List_empty1, i, l);
|
|
12100
12118
|
}), e(q, "smsCreditTransactionSchema", "$get$smsCreditTransactionSchema", () => {
|
|
12101
12119
|
var a = null, i = "createdAt", s = t.Source_Source$mongodb(a, "SmsCreditTransactions"), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$business("businessId")], d.JSArray_Permission), i), p = d.JSArray_String, _ = t._setArrayType([t.Index$(t._setArrayType(["id"], p), a, a, a), t.Index$(t._setArrayType(["doc_id"], p), a, a, a), t.Index$(t._setArrayType(["campaign_id"], p), a, a, a), t.Index$(t._setArrayType(["member_id"], p), a, a, a), t.Index$(t._setArrayType(["business_id", "created_at"], p), "idx_sct_select_index", a, a)], d.JSArray_Index), M = t._setArrayType([], p);
|
|
12102
|
-
return t.Schema_Schema$build(!1, "marketing", t._setArrayType(["sms", "sms credit", "sms balance", "message", "blast"], p), 2, a, M, "SMS credit ledger for message blasts.", new t.smsCreditTransactionSchema_closure(), u.
|
|
12120
|
+
return t.Schema_Schema$build(!1, "marketing", t._setArrayType(["sms", "sms credit", "sms balance", "message", "blast"], p), 2, a, M, "SMS credit ledger for message blasts.", new t.smsCreditTransactionSchema_closure(), u.List_empty0, a, _, a, !0, !0, !1, !1, !1, !1, new t.smsCreditTransactionSchema_closure0(), "SMS credit transaction", "sms_credit_transactions", "sms_credit_transaction", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_95, i, a, "mongodb_sms_credit_transactions", "mongodb_company_db_sms_credit_transactions", a, !0, s, u.List_empty1, a, l);
|
|
12103
12121
|
}), e(q, "staffSchema", "$get$staffSchema", () => {
|
|
12104
12122
|
var a = "couchdb_user", i = null, s = t.Source_Source$couchdb(i, "user"), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), i), p = d.JSArray_String, _ = t._setArrayType([t.Index$(t._setArrayType(["id"], p), i, i, i), t.Index$(t._setArrayType(["doc_id"], p), i, i, i), t.Index$(t._setArrayType(["restaurant_id"], p), i, i, i)], d.JSArray_Index), M = t._setArrayType(["restaurantId"], p);
|
|
12105
|
-
return t.Schema_Schema$build(!1, "operations", t._setArrayType(["staff", "employee", "cashier", "waiter", "server"], p), 2, i, M, "Staff master, one row per
|
|
12123
|
+
return t.Schema_Schema$build(!1, "operations", t._setArrayType(["staff", "employee", "cashier", "waiter", "server", "staff code", "user code"], p), 2, i, M, "Staff master, one row per staff per outlet; join on id and restaurantId. Holds both POS staff kinds: user_ ids (outlet staff, no code) and masterUser_ ids (business-wide staff, with code). Join it for staff names and codes; not a fact table.", new t.staffSchema_closure(), u.List_empty0, i, _, i, !1, !0, !1, !1, !1, !1, new t.staffSchema_closure0(), "Staff", "staffs", "staff", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_17, i, i, a, a, i, !1, s, u.List_empty1, i, l);
|
|
12106
12124
|
}), e(q, "stockSchema", "$get$stockSchema", () => {
|
|
12107
12125
|
var a = "couchdb_stock", i = null, s = t.Source_Source$couchdb("stocks", "stock"), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId"), t.Permission_Permission$warehouse("warehouseId")], d.JSArray_Permission), i), p = d.JSArray_String, _ = t._setArrayType([t.Index$(t._setArrayType(["restaurant_id"], p), i, i, i), t.Index$(t._setArrayType(["warehouse_id"], p), i, i, i), t.Index$(t._setArrayType(["location_id"], p), i, i, i), t.Index$(t._setArrayType(["doc_id"], p), i, i, i), t.Index$(t._setArrayType(["id"], p), i, i, i), t.Index$(t._setArrayType(["published_at"], p), i, i, i)], d.JSArray_Index), M = t._setArrayType([], p);
|
|
12108
|
-
return t.Schema_Schema$build(!1, "inventory", t._setArrayType(["stock", "inventory", "stock level", "available stock", "stock balance"], p), 2, i, M, "POS stock countdown per menu item — prefer inventory_sku_balance for warehouse stock levels.", new t.stockSchema_closure(), u.
|
|
12126
|
+
return t.Schema_Schema$build(!1, "inventory", t._setArrayType(["stock", "inventory", "stock level", "available stock", "stock balance"], p), 2, i, M, "POS stock countdown per menu item — prefer inventory_sku_balance for warehouse stock levels.", new t.stockSchema_closure(), u.List_empty0, i, _, 900, !0, !1, !0, !1, !1, !0, new t.stockSchema_closure0(), "Stock", "stocks", "stock", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_62, i, i, a, a, i, !1, s, u.List_empty1, i, l);
|
|
12109
12127
|
}), e(q, "storeBundleSchema", "$get$storeBundleSchema", () => {
|
|
12110
12128
|
var a = "mongodb_marketing_db_stores", i = null, s = t.Source_Source$mongodb("bundles", "Stores"), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$business("businessId")], d.JSArray_Permission), i), p = d.JSArray_String, _ = t._setArrayType([t.Index$(t._setArrayType(["id"], p), i, i, i), t.Index$(t._setArrayType(["doc_id"], p), i, i, i), t.Index$(t._setArrayType(["created_at"], p), i, i, i), t.Index$(t._setArrayType(["business_id"], p), i, i, i)], d.JSArray_Index);
|
|
12111
|
-
return t.Schema_Schema$build(!1, "loyalty", u.
|
|
12129
|
+
return t.Schema_Schema$build(!1, "loyalty", u.List_empty, 3, i, t._setArrayType([], p), "One row per bundle offered in the online member store, with its category, money price and coin price. A catalogue for bundle names and prices; store_transaction holds the purchases. No time control.", new t.storeBundleSchema_closure(), u.List_empty0, i, _, i, !0, !0, !1, !1, !1, !1, new t.storeBundleSchema_closure0(), "Store bundle", "store_bundles", "store_bundle", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_69, "createdAt", i, a, a, i, !0, s, u.List_empty1, i, l);
|
|
12112
12130
|
}), e(q, "storeTransactionSchema", "$get$storeTransactionSchema", () => {
|
|
12113
12131
|
var a = "mongodb_marketing_db_store_transactions", i = null, s = "createdAt", l = t.Source_Source$mongodb(i, "StoreTransactions"), p = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$business("businessId")], d.JSArray_Permission), s), _ = d.JSArray_String, M = t._setArrayType([t.Index$(t._setArrayType(["id"], _), i, i, i), t.Index$(t._setArrayType(["doc_id"], _), i, i, i), t.Index$(t._setArrayType(["created_at"], _), i, i, i), t.Index$(t._setArrayType(["business_id"], _), i, i, i)], d.JSArray_Index);
|
|
12114
|
-
return t.Schema_Schema$build(!1, "loyalty", u.
|
|
12132
|
+
return t.Schema_Schema$build(!1, "loyalty", u.List_empty, 3, i, t._setArrayType([], _), "One row per member store purchase, from the app, the POS or an admin (source) — POS purchases also appear in member_store_purchase, so never add the two tables together. status is PENDING_PAYMENT, PENDING_TRANSACTION, COMPLETED, REFUNDED, PAYMENT_EXPIRED or PAYMENT_CANCEL, so filter status = COMPLETED for sales. The money columns are the price of one bundle: the purchase quantity (1 to 10) is not projected, so a multi-unit purchase reads as one. payment_amount, cash_amount and coin_amount are filled only for ONLINE, OFFLINE and COIN payments; a STRIPE, CARD, FEEDVIBE or ADMIN payment reads 0 in all three, so use nett_total there.", new t.storeTransactionSchema_closure(), u.List_empty0, i, M, i, !0, !0, !1, !1, !1, !1, new t.storeTransactionSchema_closure0(), "Store transaction", "store_transactions", "store_transaction", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_68, s, i, a, a, i, !0, l, u.List_empty1, i, p);
|
|
12115
12133
|
}), e(q, "subItemSchema", "$get$subItemSchema", () => {
|
|
12116
12134
|
var a = "createdAt", i = null, s = t.Source_Source$couchdb("", ""), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), a);
|
|
12117
|
-
return t.Schema_Schema$build(!1, "sales", u.
|
|
12135
|
+
return t.Schema_Schema$build(!1, "sales", u.List_empty, 3, i, t._setArrayType(["restaurantId"], d.JSArray_String), "Deprecated addon table — use flatten_item with layer >= 1.", new t.subItemSchema_closure(), t._setArrayType([t.QueryRequestFilter$(i, i, "layer", u.COMPARISON_OPERATOR_2, i, u.SCHEMA_NAME_9, ["0"])], d.JSArray_QueryRequestFilter), i, i, i, !0, !1, !0, !1, !0, !1, new t.subItemSchema_closure0(), "Addon (Deprecated)", "flatten_items", "flatten_item", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_9, a, i, "", "", i, !0, s, u.List_empty1, i, l);
|
|
12118
12136
|
}), e(q, "thEInvoiceSubmissionSchema", "$get$thEInvoiceSubmissionSchema", () => {
|
|
12119
12137
|
var a = null, i = "createdAt", s = t.Source_Source$mongodb(a, "EInvoiceSubmissions"), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), i), p = d.JSArray_String, _ = t._setArrayType([t.Index$(t._setArrayType(["id"], p), a, a, a), t.Index$(t._setArrayType(["doc_id"], p), a, a, a), t.Index$(t._setArrayType(["restaurant_id", "created_at"], p), "idx_theinvoice_select_index", a, a), t.Index$(t._setArrayType(["bill_id"], p), a, a, a)], d.JSArray_Index), M = t._setArrayType([], p);
|
|
12120
|
-
return t.Schema_Schema$build(!1, "compliance", t._setArrayType(["invoice", "e-invoice", "e-tax", "submission", "th", "thailand"], p), 2, a, M, "Thailand e-tax invoice submission per bill.", new t.thEInvoiceSubmissionSchema_closure(), u.
|
|
12138
|
+
return t.Schema_Schema$build(!1, "compliance", t._setArrayType(["invoice", "e-invoice", "e-tax", "submission", "th", "thailand"], p), 2, a, M, "Thailand e-tax invoice submission per bill.", new t.thEInvoiceSubmissionSchema_closure(), u.List_empty0, a, _, a, !1, !0, !1, !1, !0, !1, new t.thEInvoiceSubmissionSchema_closure0(), "TH E-Invoice Submission", "th_e_invoice_submissions", "th_e_invoice_submission", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_114, i, a, "mongodb_e_invoice_submissions", "mongodb_company_db_e_invoice_submissions", a, !0, s, u.List_empty1, a, l);
|
|
12121
12139
|
}), e(q, "timesheetSchema", "$get$timesheetSchema", () => {
|
|
12122
12140
|
var a = "couchdb_timesheet", i = "timesheet", s = null, l = "createdAt", p = t.Source_Source$couchdb(s, i), _ = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), l), M = d.JSArray_String, b = t._setArrayType([t.Index$(t._setArrayType(["id"], M), s, s, s), t.Index$(t._setArrayType(["doc_id"], M), s, s, s), t.Index$(t._setArrayType(["created_at"], M), s, s, s), t.Index$(t._setArrayType(["restaurant_id"], M), s, s, s)], d.JSArray_Index), O = t._setArrayType(["restaurantId"], M);
|
|
12123
|
-
return t.Schema_Schema$build(!1, "operations", t._setArrayType(["timesheet", "attendance", "clock in", "clock out", "shift", "working hour"], M), 2, t.Canonical$(u.Map_empty, t._setArrayType(["hours"], M), t._setArrayType(["ended_at IS NOT NULL"], M)), O, "One row per staff clock-in/out shift, with its worked duration. No time control: the page window cannot narrow it, so bound started_at yourself.", new t.timesheetSchema_closure(), u.
|
|
12141
|
+
return t.Schema_Schema$build(!1, "operations", t._setArrayType(["timesheet", "attendance", "clock in", "clock out", "shift", "working hour"], M), 2, t.Canonical$(u.Map_empty, t._setArrayType(["hours"], M), t._setArrayType(["ended_at IS NOT NULL"], M)), O, "One row per staff clock-in/out shift, with its worked duration. No time control: the page window cannot narrow it, so bound started_at yourself.", new t.timesheetSchema_closure(), u.List_empty0, s, b, s, !1, !0, !1, !1, !1, !1, new t.timesheetSchema_closure0(), "Timesheet", "timesheets", i, u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_18, l, s, a, a, s, !0, p, u.List_empty1, s, _);
|
|
12124
12142
|
}), e(q, "timesheetRecordSchema", "$get$timesheetRecordSchema", () => {
|
|
12125
12143
|
var a = null, i = "createdAt", s = t.Source_Source$couchdb(a, ""), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), i);
|
|
12126
|
-
return t.Schema_Schema$build(!1, "operations", u.
|
|
12144
|
+
return t.Schema_Schema$build(!1, "operations", u.List_empty, 3, a, t._setArrayType(["restaurantId"], d.JSArray_String), "Two rows per staff shift — one for the clock in and one for the clock out — each stamped timestamp. Use it to count who was on the floor at a moment; timesheet is the same shift as one row with its worked hours, and the only place a duration may be summed. An open shift still emits its clock-out row, with a null timestamp. The table projects no time column, so bound timestamp yourself.", new t.timesheetRecordSchema_closure(), u.List_empty0, a, a, a, !0, !1, !1, !1, !1, !1, new t.timesheetRecordSchema_closure0(), "Timesheet record", "timesheets", "timesheet", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_19, i, `select
|
|
12127
12145
|
id,doc_id,created_at,published_at,restaurant_id,user_id,user_name,
|
|
12128
12146
|
started_at timestamp
|
|
12129
12147
|
FROM timesheets
|
|
@@ -12132,10 +12150,10 @@ from member_store_purchases
|
|
|
12132
12150
|
id,doc_id,created_at,published_at,restaurant_id,user_id,user_name,
|
|
12133
12151
|
ended_at timestamp
|
|
12134
12152
|
FROM timesheets
|
|
12135
|
-
`, "", "", a, !0, s, u.
|
|
12153
|
+
`, "", "", a, !0, s, u.List_empty1, a, l);
|
|
12136
12154
|
}), e(q, "titleCollectionSchema", "$get$titleCollectionSchema", () => {
|
|
12137
12155
|
var a = null, i = t.Source_Source$mongodb(a, ""), s = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$business("businessId")], d.JSArray_Permission), a), l = d.JSArray_String, p = t._setArrayType([], l);
|
|
12138
|
-
return t.Schema_Schema$build(!1, "loyalty", t._setArrayType(["title", "member title", "badge", "achievement", "collectible title"], l), 3, a, p, "Member title/badge master (V2), replacing member_title.", new t.titleCollectionSchema_closure(), u.
|
|
12156
|
+
return t.Schema_Schema$build(!1, "loyalty", t._setArrayType(["title", "member title", "badge", "achievement", "collectible title"], l), 3, a, p, "Member title/badge master (V2), replacing member_title.", new t.titleCollectionSchema_closure(), u.List_empty0, a, a, a, !1, !1, !1, !1, !1, !1, new t.titleCollectionSchema_closure0(), "Member title (V2)", "title_collections", "title_collection", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_113, a, `select
|
|
12139
12157
|
id,
|
|
12140
12158
|
doc_id,
|
|
12141
12159
|
created_at,
|
|
@@ -12147,10 +12165,10 @@ from member_store_purchases
|
|
|
12147
12165
|
expired_at
|
|
12148
12166
|
from collectible_collections
|
|
12149
12167
|
where type = 'TITLE'
|
|
12150
|
-
`, "", "", a, !1, i, u.
|
|
12168
|
+
`, "", "", a, !1, i, u.List_empty1, a, s);
|
|
12151
12169
|
}), e(q, "tplGrabfoodOrderSchema", "$get$tplGrabfoodOrderSchema", () => t._tplOrderSource("GFOrders", "Raw GrabFood order feed — use tpl_order for cross-vendor reporting.", u.SCHEMA_NAME_98, !0, "mongodb_gf_orders", "mongodb_company_db_gf_orders")), e(q, "tplFoodpandaOrderSchema", "$get$tplFoodpandaOrderSchema", () => t._tplOrderSource("FPOrders", "Raw foodpanda order feed — use tpl_order for cross-vendor reporting.", u.SCHEMA_NAME_99, !1, "mongodb_fp_orders", "mongodb_company_db_fp_orders")), e(q, "tplShopeeFoodOrderSchema", "$get$tplShopeeFoodOrderSchema", () => t._tplOrderSource("SFOrders", "Raw ShopeeFood order feed — use tpl_order for cross-vendor reporting.", u.SCHEMA_NAME_100, !1, "mongodb_sf_orders", "mongodb_company_db_sf_orders")), e(q, "tplOrderSchema", "$get$tplOrderSchema", () => {
|
|
12152
12170
|
var a = null, i = "createdAt", s = t.Source_Source$mongodb(a, ""), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), i), p = d.JSArray_String, _ = t._setArrayType(["restaurantId"], p);
|
|
12153
|
-
return t.Schema_Schema$build(!1, "sales", t._setArrayType(["tpl order", "third party order", "grabfood", "foodpanda", "shopee food", "delivery platform", "integration order", "rejected order", "cancelled order"], p), 2, a, _, "One row per third-party delivery order, unified across vendors — includes the cancelled and rejected orders bills never see. Carries no amount: a figure here is a count of orders, and money comes from the bill it links to.", new t.tplOrderSchema_closure(), u.
|
|
12171
|
+
return t.Schema_Schema$build(!1, "sales", t._setArrayType(["tpl order", "third party order", "grabfood", "foodpanda", "shopee food", "delivery platform", "integration order", "rejected order", "cancelled order"], p), 2, a, _, "One row per third-party delivery order, unified across vendors — includes the cancelled and rejected orders bills never see. Carries no amount: a figure here is a count of orders, and money comes from the bill it links to.", new t.tplOrderSchema_closure(), u.List_empty0, a, a, a, !1, !1, !1, !1, !1, !1, new t.tplOrderSchema_closure0(), "TPL Order", "tpl_orders", "tpl_order", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_101, i, `SELECT
|
|
12154
12172
|
o.id,
|
|
12155
12173
|
o.doc_id,
|
|
12156
12174
|
o.created_at,
|
|
@@ -12168,31 +12186,31 @@ FROM tpl_orders o
|
|
|
12168
12186
|
LEFT JOIN tpl_settings s
|
|
12169
12187
|
ON s.type = o.type
|
|
12170
12188
|
AND s.link_id = o.link_id
|
|
12171
|
-
`, "", "", a, !0, s, u.
|
|
12189
|
+
`, "", "", a, !0, s, u.List_empty1, a, l);
|
|
12172
12190
|
}), e(q, "tplGrabfoodSettingSchema", "$get$tplGrabfoodSettingSchema", () => t._tplSettingSource("GFSettings", "Store link settings for the GrabFood integration.", u.SCHEMA_NAME_102, !0, "mongodb_gf_settings", "mongodb_company_db_gf_settings")), e(q, "tplFoodpandaSettingSchema", "$get$tplFoodpandaSettingSchema", () => t._tplSettingSource("FPSettings", "Store link settings for the foodpanda integration.", u.SCHEMA_NAME_103, !1, "mongodb_fp_settings", "mongodb_company_db_fp_settings")), e(q, "tplShopeeFoodSettingSchema", "$get$tplShopeeFoodSettingSchema", () => t._tplSettingSource("SFSettings", "Store link settings for the ShopeeFood integration.", u.SCHEMA_NAME_104, !1, "mongodb_sf_settings", "mongodb_company_db_sf_settings")), e(q, "unitCostHistorySchema", "$get$unitCostHistorySchema", () => {
|
|
12173
12191
|
var a = null, i = t.Source_Source$mongodb(a, "UnitCostHistory"), s = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId"), t.Permission_Permission$warehouse("warehouseId")], d.JSArray_Permission), a), l = d.JSArray_String, p = t._setArrayType([t.Index$(t._setArrayType(["id"], l), a, a, a), t.Index$(t._setArrayType(["doc_id"], l), a, a, a), t.Index$(t._setArrayType(["published_at"], l), a, a, a), t.Index$(t._setArrayType(["location_id", "snapshotted_at"], l), a, a, a), t.Index$(t._setArrayType(["sku_id", "location_id", "snapshotted_at"], l), a, a, a)], d.JSArray_Index);
|
|
12174
|
-
return t.Schema_Schema$build(!1, "inventory", u.
|
|
12192
|
+
return t.Schema_Schema$build(!1, "inventory", u.List_empty, 3, a, t._setArrayType([], l), "One row per change to the unit cost of a SKU at a location: the cost before, the cost after, and the mechanism and source document that moved it. Answers when and why a SKU costing changed. It has no time control, so bound snapshotted_at yourself; created_at carries the same snapshot moment.", new t.unitCostHistorySchema_closure(), u.List_empty0, a, p, a, !0, !0, !1, !1, !1, !1, new t.unitCostHistorySchema_closure0(), "Unit Cost History", "unit_cost_histories", "unit_cost_history", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_77, a, a, "mongodb_unit_cost_history", "mongodb_company_db_unit_cost_history", a, !1, i, u.List_empty1, a, s);
|
|
12175
12193
|
}), e(q, "userSchema", "$get$userSchema", () => {
|
|
12176
12194
|
var a = null, i = t.Source_Source$mongodb(a, "Users"), s = t.TopLevelFilters$(t._setArrayType([], d.JSArray_Permission), a), l = d.JSArray_String, p = t._setArrayType([t.Index$(t._setArrayType(["id"], l), a, a, a), t.Index$(t._setArrayType(["doc_id"], l), a, a, a), t.Index$(t._setArrayType(["phone_number"], l), a, a, a)], d.JSArray_Index);
|
|
12177
|
-
return t.Schema_Schema$build(!1, "loyalty", u.
|
|
12195
|
+
return t.Schema_Schema$build(!1, "loyalty", u.List_empty, 3, a, t._setArrayType([], l), 'POS user master; bills and payments reference it by id. Reserved word — write it quoted: FROM "user".', new t.userSchema_closure(), u.List_empty0, a, p, a, !0, !0, !1, !0, !0, !1, new t.userSchema_closure0(), "User", "users", "user", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_44, a, a, "mongodb_users", "mongodb_company_db_users", a, !1, i, u.List_empty1, a, s);
|
|
12178
12196
|
}), e(q, "vnEInvoiceSubmissionSchema", "$get$vnEInvoiceSubmissionSchema", () => {
|
|
12179
12197
|
var a = null, i = "createdAt", s = t.Source_Source$mongodb(a, "VNEInvoiceSubmissions"), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), i), p = d.JSArray_String, _ = t._setArrayType([t.Index$(t._setArrayType(["id"], p), a, a, a), t.Index$(t._setArrayType(["doc_id"], p), a, a, a), t.Index$(t._setArrayType(["restaurant_id", "created_at"], p), "idx_vneinvoice_select_index", a, a), t.Index$(t._setArrayType(["bill_id"], p), a, a, a)], d.JSArray_Index), M = t._setArrayType([], p);
|
|
12180
|
-
return t.Schema_Schema$build(!1, "compliance", t._setArrayType(["invoice", "e-invoice", "submission", "vn", "vietnam"], p), 2, a, M, "Vietnam e-invoice submission per bill.", new t.vnEInvoiceSubmissionSchema_closure(), u.
|
|
12198
|
+
return t.Schema_Schema$build(!1, "compliance", t._setArrayType(["invoice", "e-invoice", "submission", "vn", "vietnam"], p), 2, a, M, "Vietnam e-invoice submission per bill.", new t.vnEInvoiceSubmissionSchema_closure(), u.List_empty0, a, _, a, !1, !0, !1, !1, !0, !1, new t.vnEInvoiceSubmissionSchema_closure0(), "VN E-Invoice Submission", "vn_e_invoice_submissions", "vn_e_invoice_submission", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_83, i, a, "mongodb_vne_invoice_submissions", "mongodb_company_db_vne_invoice_submissions", a, !0, s, u.List_empty1, a, l);
|
|
12181
12199
|
}), e(q, "voucherClaimSchema", "$get$voucherClaimSchema", () => {
|
|
12182
12200
|
var a = null, i = "createdAt", s = t.Source_Source$mongodb(a, "VoucherClaims"), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$business("businessId")], d.JSArray_Permission), i), p = d.JSArray_String, _ = t._setArrayType([t.Index$(t._setArrayType(["id"], p), a, a, a), t.Index$(t._setArrayType(["doc_id"], p), a, a, a), t.Index$(t._setArrayType(["created_at"], p), a, a, a), t.Index$(t._setArrayType(["business_id"], p), a, a, a), t.Index$(t._setArrayType(["user_id"], p), a, a, a), t.Index$(t._setArrayType(["bill_id"], p), a, a, a), t.Index$(t._setArrayType(["restaurant_id"], p), a, a, a)], d.JSArray_Index), M = t._setArrayType([], p);
|
|
12183
|
-
return t.Schema_Schema$build(!1, "loyalty", t._setArrayType(["voucher", "coupon", "redeem", "redemption", "claim"], p), 2, t.Canonical$(u.Map_empty, t._setArrayType(["redeemed_count", "expired_count"], p), u.
|
|
12201
|
+
return t.Schema_Schema$build(!1, "loyalty", t._setArrayType(["voucher", "coupon", "redeem", "redemption", "claim"], p), 2, t.Canonical$(u.Map_empty, t._setArrayType(["redeemed_count", "expired_count"], p), u.List_empty), M, "One row per voucher claimed by a member, with its redemption state. Reaches bill, restaurant and the member user, but carries no campaign key — group by the voucher name it holds. These are the v1 vouchers; a v2 voucher is a collectible_transaction row whose collectible is of type VOUCHER.", new t.voucherClaimSchema_closure(), u.List_empty0, a, _, a, !1, !0, !1, !1, !1, !1, new t.voucherClaimSchema_closure0(), "Voucher Claim", "voucher_claims", "voucher_claim", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_42, i, a, "mongodb_voucher_claims", "mongodb_company_db_voucher_claims", a, !0, s, u.List_empty1, a, l);
|
|
12184
12202
|
}), e(q, "voucherClaimRedemptionSchema", "$get$voucherClaimRedemptionSchema", () => {
|
|
12185
12203
|
var a = "createdAt", i = null, s = t.Source_Source$mongodb("redemptions", "VoucherClaims"), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$business("businessId")], d.JSArray_Permission), a), p = d.JSArray_String, _ = t._setArrayType([t.Index$(t._setArrayType(["id"], p), i, i, i), t.Index$(t._setArrayType(["doc_id"], p), i, i, i), t.Index$(t._setArrayType(["created_at"], p), i, i, i), t.Index$(t._setArrayType(["voucher_claim_id"], p), i, i, i), t.Index$(t._setArrayType(["bill_id"], p), i, i, i), t.Index$(t._setArrayType(["restaurant_id"], p), i, i, i)], d.JSArray_Index);
|
|
12186
|
-
return t.Schema_Schema$build(!1, "loyalty", u.
|
|
12204
|
+
return t.Schema_Schema$build(!1, "loyalty", u.List_empty, 3, i, t._setArrayType([], p), "One row per time a claimed v1 voucher was applied to a bill — the claim applied history plus its redeemed moment, so one claim can appear more than once. created_at is when the voucher was applied. Count rows here for redemptions in a period; voucher_claim.redeemed_count is that same count per claim, and voucher_claim.is_redeemed only says whether it ever was. Joins to voucher_claim, bill and restaurant.", new t.voucherClaimRedemptionSchema_closure(), u.List_empty0, i, _, i, !0, !0, !1, !1, !1, !1, new t.voucherClaimRedemptionSchema_closure0(), "Voucher Claim Redemption", "voucher_claim_redemptions", "voucher_claim_redemption", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_43, a, i, "mongodb_voucher_claims", "mongodb_company_db_voucher_claims", i, !0, s, u.List_empty1, i, l);
|
|
12187
12205
|
}), e(q, "warehouseLocationSchema", "$get$warehouseLocationSchema", () => {
|
|
12188
12206
|
var a = null, i = t.Source_Source$mongodb(a, "Warehouses"), s = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$warehouse("id")], d.JSArray_Permission), a);
|
|
12189
|
-
return t.Schema_Schema$build(!1, "inventory", u.
|
|
12207
|
+
return t.Schema_Schema$build(!1, "inventory", u.List_empty, 3, a, t._setArrayType([], d.JSArray_String), "Inventory location master for warehouse-held stock.", new t.warehouseLocationSchema_closure(), u.List_empty0, a, a, a, !1, !0, !1, !1, !1, !1, new t.warehouseLocationSchema_closure0(), "Location", "locations", "location", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_47, a, a, "mongodb_warehouses", "mongodb_company_db_warehouses", a, !1, i, u.List_empty1, `SELECT "id", "docId", "createdAt", "publishedAt", "name", "state", "postcode",
|
|
12190
12208
|
"country", "businessId", "customAttributes", "code"
|
|
12191
12209
|
FROM restaurants
|
|
12192
12210
|
`, s);
|
|
12193
12211
|
}), e(q, "wastageItemSchema", "$get$wastageItemSchema", () => {
|
|
12194
12212
|
var a = null, i = "createdAt", s = t.Source_Source$couchdb(a, ""), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("locationId")], d.JSArray_Permission), i);
|
|
12195
|
-
return t.Schema_Schema$build(!1, "inventory", u.
|
|
12213
|
+
return t.Schema_Schema$build(!1, "inventory", u.List_empty, 3, a, t._setArrayType(["locationId"], d.JSArray_String), "One row per product written off in an inventory adjustment: quantity in products, converted from the SKU amount through the recipe requirement, and its cost. It covers only adjustment lines that reference a menu product; inventory_adjustment_sku holds every other write-off. A canvas cannot read it today — the view behind it still carries the classic report placeholders !restaurantIds, !start and !end, which nothing here fills.", new t.wastageItemSchema_closure(), u.List_empty0, a, a, a, !1, !1, !1, !1, !1, !1, new t.wastageItemSchema_closure0(), "Wastage Product", "wastage_items", "wastage_item", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_90, i, `SELECT
|
|
12196
12214
|
CONCAT(ias.inventory_adjustment_id, '_', item_skus.product_id) AS id,
|
|
12197
12215
|
ias.inventory_adjustment_id AS doc_id,
|
|
12198
12216
|
ia.created_at,
|
|
@@ -12232,7 +12250,7 @@ GROUP BY
|
|
|
12232
12250
|
ia.created_at,
|
|
12233
12251
|
item_skus.product_id,
|
|
12234
12252
|
ias.inventory_adjustment_id
|
|
12235
|
-
`, "", "", a, !0, s, u.
|
|
12253
|
+
`, "", "", a, !0, s, u.List_empty1, a, l);
|
|
12236
12254
|
}), e(q, "_UTC", "$get$_UTC", () => {
|
|
12237
12255
|
var a = d.JSArray_int;
|
|
12238
12256
|
return t.Location$("UTC", t._setArrayType([-864e13], a), t._setArrayType([0], a), t._setArrayType([u.TimeZone_0_false_UTC], d.JSArray_TimeZone));
|