@pisell/pisellos 3.0.5 → 3.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/modules/Account/index.d.ts +2 -6
- package/dist/modules/Account/index.js +21 -103
- package/dist/modules/Account/types.d.ts +12 -1
- package/dist/modules/AccountList/index.d.ts +20 -1
- package/dist/modules/AccountList/index.js +243 -75
- package/dist/modules/AccountList/types.d.ts +33 -1
- package/dist/modules/AccountList/types.js +8 -0
- package/dist/modules/AccountList/utils.d.ts +9 -0
- package/dist/modules/AccountList/utils.js +25 -0
- package/dist/modules/BaseModule.d.ts +2 -2
- package/dist/modules/BaseModule.js +1 -1
- package/dist/modules/Cart/index.d.ts +8 -5
- package/dist/modules/Cart/index.js +101 -25
- package/dist/modules/Cart/types.d.ts +82 -5
- package/dist/modules/Cart/types.js +22 -0
- package/dist/modules/Cart/utils.d.ts +106 -13
- package/dist/modules/Cart/utils.js +289 -76
- package/dist/modules/Date/index.d.ts +6 -6
- package/dist/modules/Date/index.js +41 -58
- package/dist/modules/Date/types.d.ts +22 -6
- package/dist/modules/Date/utils.d.ts +4 -3
- package/dist/modules/Date/utils.js +81 -30
- package/dist/modules/Discount/index.d.ts +4 -4
- package/dist/modules/Discount/index.js +11 -11
- package/dist/modules/Order/index.d.ts +11 -5
- package/dist/modules/Order/index.js +47 -18
- package/dist/modules/Order/types.d.ts +10 -3
- package/dist/modules/Order/utils.d.ts +10 -0
- package/dist/modules/Order/utils.js +15 -0
- package/dist/modules/Product/index.d.ts +14 -1
- package/dist/modules/Product/index.js +35 -0
- package/dist/modules/Product/types.d.ts +27 -3
- package/dist/modules/ProductList/index.js +11 -5
- package/dist/modules/Resource/types.d.ts +1 -0
- package/dist/modules/Resource/utils.js +1 -1
- package/dist/modules/Rules/index.d.ts +3 -3
- package/dist/modules/Rules/index.js +121 -53
- package/dist/modules/Rules/types.d.ts +5 -1
- package/dist/modules/Schedule/index.d.ts +18 -0
- package/dist/modules/Schedule/index.js +111 -0
- package/dist/modules/Schedule/type.d.ts +157 -0
- package/dist/modules/Schedule/type.js +1 -0
- package/dist/modules/Schedule/types.d.ts +182 -0
- package/dist/modules/Schedule/types.js +1 -0
- package/dist/modules/Schedule/utils.d.ts +67 -0
- package/dist/modules/Schedule/utils.js +729 -0
- package/dist/modules/Step/index.d.ts +14 -3
- package/dist/modules/Step/index.js +54 -2
- package/dist/modules/Summary/index.d.ts +12 -5
- package/dist/modules/Summary/index.js +33 -7
- package/dist/modules/Summary/types.d.ts +23 -2
- package/dist/modules/Summary/utils.d.ts +14 -4
- package/dist/modules/Summary/utils.js +46 -4
- package/dist/modules/index.d.ts +10 -0
- package/dist/modules/index.js +11 -1
- package/dist/plugins/index.d.ts +3 -3
- package/dist/plugins/request.d.ts +3 -3
- package/dist/plugins/request.js +30 -30
- package/dist/plugins/shopStore.d.ts +1 -1
- package/dist/solution/BookingByStep/index.d.ts +97 -24
- package/dist/solution/BookingByStep/index.js +1024 -322
- package/dist/solution/BookingByStep/types.d.ts +3 -10
- package/dist/solution/BookingByStep/types.js +11 -15
- package/dist/solution/BookingByStep/utils/products.d.ts +1 -1
- package/dist/solution/BookingByStep/utils/products.js +3 -0
- package/dist/solution/BookingByStep/utils/resources.d.ts +60 -6
- package/dist/solution/BookingByStep/utils/resources.js +293 -52
- package/dist/solution/ShopDiscount/index.d.ts +4 -4
- package/dist/solution/ShopDiscount/index.js +16 -16
- package/dist/solution/ShopDiscount/types.d.ts +2 -2
- package/dist/solution/ShopDiscount/utils.js +1 -1
- package/lib/core/index.js +7 -2
- package/lib/modules/Account/index.d.ts +2 -6
- package/lib/modules/Account/index.js +15 -30
- package/lib/modules/Account/types.d.ts +12 -1
- package/lib/modules/AccountList/index.d.ts +20 -1
- package/lib/modules/AccountList/index.js +122 -13
- package/lib/modules/AccountList/types.d.ts +33 -1
- package/lib/modules/AccountList/utils.d.ts +9 -0
- package/lib/modules/AccountList/utils.js +39 -0
- package/lib/modules/BaseModule.d.ts +2 -2
- package/lib/modules/BaseModule.js +14 -3
- package/lib/modules/Cart/index.d.ts +8 -5
- package/lib/modules/Cart/index.js +81 -8
- package/lib/modules/Cart/types.d.ts +82 -5
- package/lib/modules/Cart/types.js +20 -2
- package/lib/modules/Cart/utils.d.ts +106 -13
- package/lib/modules/Cart/utils.js +188 -45
- package/lib/modules/Date/index.d.ts +6 -6
- package/lib/modules/Date/index.js +13 -28
- package/lib/modules/Date/types.d.ts +22 -6
- package/lib/modules/Date/utils.d.ts +4 -3
- package/lib/modules/Date/utils.js +47 -13
- package/lib/modules/Discount/index.d.ts +4 -4
- package/lib/modules/Discount/index.js +9 -2
- package/lib/modules/Guests/index.js +4 -1
- package/lib/modules/Order/index.d.ts +11 -5
- package/lib/modules/Order/index.js +24 -3
- package/lib/modules/Order/types.d.ts +10 -3
- package/lib/modules/Order/utils.d.ts +10 -0
- package/lib/modules/Order/utils.js +45 -0
- package/lib/modules/Payment/index.js +1 -6
- package/lib/modules/Product/index.d.ts +14 -1
- package/lib/modules/Product/index.js +19 -0
- package/lib/modules/Product/types.d.ts +27 -3
- package/lib/modules/ProductList/index.js +21 -7
- package/lib/modules/Resource/index.js +4 -1
- package/lib/modules/Resource/types.d.ts +1 -0
- package/lib/modules/Resource/utils.js +7 -4
- package/lib/modules/Rules/index.d.ts +3 -3
- package/lib/modules/Rules/index.js +118 -43
- package/lib/modules/Rules/types.d.ts +5 -1
- package/lib/modules/Schedule/index.d.ts +18 -0
- package/lib/modules/Schedule/index.js +81 -0
- package/lib/modules/Schedule/type.d.ts +157 -0
- package/lib/modules/Schedule/type.js +17 -0
- package/lib/modules/Schedule/types.d.ts +182 -0
- package/lib/modules/Schedule/types.js +17 -0
- package/lib/modules/Schedule/utils.d.ts +67 -0
- package/lib/modules/Schedule/utils.js +600 -0
- package/lib/modules/Step/index.d.ts +14 -3
- package/lib/modules/Step/index.js +38 -1
- package/lib/modules/Summary/index.d.ts +12 -5
- package/lib/modules/Summary/index.js +15 -1
- package/lib/modules/Summary/types.d.ts +23 -2
- package/lib/modules/Summary/utils.d.ts +14 -4
- package/lib/modules/Summary/utils.js +30 -1
- package/lib/modules/index.d.ts +10 -0
- package/lib/modules/index.js +21 -1
- package/lib/plugins/index.d.ts +3 -3
- package/lib/plugins/request.d.ts +3 -3
- package/lib/plugins/request.js +48 -11
- package/lib/plugins/shopStore.d.ts +1 -1
- package/lib/solution/BookingByStep/index.d.ts +97 -24
- package/lib/solution/BookingByStep/index.js +693 -145
- package/lib/solution/BookingByStep/types.d.ts +3 -10
- package/lib/solution/BookingByStep/types.js +37 -14
- package/lib/solution/BookingByStep/utils/products.d.ts +1 -1
- package/lib/solution/BookingByStep/utils/products.js +3 -0
- package/lib/solution/BookingByStep/utils/resources.d.ts +60 -6
- package/lib/solution/BookingByStep/utils/resources.js +286 -54
- package/lib/solution/BuyTickets/index.js +34 -20
- package/lib/solution/ShopDiscount/index.d.ts +4 -4
- package/lib/solution/ShopDiscount/index.js +10 -2
- package/lib/solution/ShopDiscount/types.d.ts +2 -2
- package/package.json +4 -2
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Module, PisellCore, ModuleOptions } from '../../types';
|
|
2
|
+
import { BaseModule } from '../BaseModule';
|
|
3
|
+
import { ScheduleModuleAPI, ScheduleAvailabilityDateItem, ScheduleItem } from './types';
|
|
4
|
+
export declare class ScheduleModule extends BaseModule implements Module, ScheduleModuleAPI {
|
|
5
|
+
protected defaultName: string;
|
|
6
|
+
protected defaultVersion: string;
|
|
7
|
+
private store;
|
|
8
|
+
private cacheId;
|
|
9
|
+
private openCache;
|
|
10
|
+
private fatherModule;
|
|
11
|
+
constructor(name?: string, version?: string);
|
|
12
|
+
initialize(core: PisellCore, options: ModuleOptions): Promise<void>;
|
|
13
|
+
setScheduleList(list: ScheduleItem[]): void;
|
|
14
|
+
getScheduleListByIds(ids: number[]): ScheduleItem[];
|
|
15
|
+
setAvailabilityScheduleDateList(list: ScheduleAvailabilityDateItem[]): void;
|
|
16
|
+
getAvailabilityScheduleDateList(): ScheduleAvailabilityDateItem[];
|
|
17
|
+
storeChange(): void;
|
|
18
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
3
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
4
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
5
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
7
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
8
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
9
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
10
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
11
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
12
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
13
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
14
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
15
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
16
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
17
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
18
|
+
import { cloneDeep } from 'lodash-es';
|
|
19
|
+
import { BaseModule } from "../BaseModule";
|
|
20
|
+
export var ScheduleModule = /*#__PURE__*/function (_BaseModule) {
|
|
21
|
+
_inherits(ScheduleModule, _BaseModule);
|
|
22
|
+
var _super = _createSuper(ScheduleModule);
|
|
23
|
+
function ScheduleModule(name, version) {
|
|
24
|
+
var _this;
|
|
25
|
+
_classCallCheck(this, ScheduleModule);
|
|
26
|
+
_this = _super.call(this, name, version);
|
|
27
|
+
_defineProperty(_assertThisInitialized(_this), "defaultName", 'schedule');
|
|
28
|
+
_defineProperty(_assertThisInitialized(_this), "defaultVersion", '1.0.0');
|
|
29
|
+
_defineProperty(_assertThisInitialized(_this), "store", {});
|
|
30
|
+
_defineProperty(_assertThisInitialized(_this), "cacheId", void 0);
|
|
31
|
+
_defineProperty(_assertThisInitialized(_this), "openCache", false);
|
|
32
|
+
_defineProperty(_assertThisInitialized(_this), "fatherModule", void 0);
|
|
33
|
+
return _this;
|
|
34
|
+
}
|
|
35
|
+
_createClass(ScheduleModule, [{
|
|
36
|
+
key: "initialize",
|
|
37
|
+
value: function () {
|
|
38
|
+
var _initialize = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(core, options) {
|
|
39
|
+
var _options$otherParams, _options$otherParams2;
|
|
40
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
41
|
+
while (1) switch (_context.prev = _context.next) {
|
|
42
|
+
case 0:
|
|
43
|
+
this.core = core;
|
|
44
|
+
// if (options?.initialState) {
|
|
45
|
+
// this.state = { ...this.state, ...options.initialState }
|
|
46
|
+
// }
|
|
47
|
+
this.store = options === null || options === void 0 ? void 0 : options.store;
|
|
48
|
+
if (options.initialState) {
|
|
49
|
+
this.store.scheduleList = options.initialState.scheduleList;
|
|
50
|
+
this.store.availabilityDateList = options.initialState.availabilityDateList;
|
|
51
|
+
} else {
|
|
52
|
+
this.store.scheduleList = [];
|
|
53
|
+
this.store.availabilityDateList = [];
|
|
54
|
+
}
|
|
55
|
+
if ((_options$otherParams = options.otherParams) !== null && _options$otherParams !== void 0 && _options$otherParams.cacheId) {
|
|
56
|
+
this.openCache = options.otherParams.openCache;
|
|
57
|
+
this.cacheId = options.otherParams.cacheId;
|
|
58
|
+
}
|
|
59
|
+
if ((_options$otherParams2 = options.otherParams) !== null && _options$otherParams2 !== void 0 && _options$otherParams2.fatherModule) {
|
|
60
|
+
this.fatherModule = options.otherParams.fatherModule;
|
|
61
|
+
}
|
|
62
|
+
case 5:
|
|
63
|
+
case "end":
|
|
64
|
+
return _context.stop();
|
|
65
|
+
}
|
|
66
|
+
}, _callee, this);
|
|
67
|
+
}));
|
|
68
|
+
function initialize(_x, _x2) {
|
|
69
|
+
return _initialize.apply(this, arguments);
|
|
70
|
+
}
|
|
71
|
+
return initialize;
|
|
72
|
+
}()
|
|
73
|
+
}, {
|
|
74
|
+
key: "setScheduleList",
|
|
75
|
+
value: function setScheduleList(list) {
|
|
76
|
+
this.store.scheduleList = list;
|
|
77
|
+
}
|
|
78
|
+
}, {
|
|
79
|
+
key: "getScheduleListByIds",
|
|
80
|
+
value: function getScheduleListByIds(ids) {
|
|
81
|
+
return this.store.scheduleList.filter(function (n) {
|
|
82
|
+
return ids.includes(n.id);
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
}, {
|
|
86
|
+
key: "setAvailabilityScheduleDateList",
|
|
87
|
+
value: function setAvailabilityScheduleDateList(list) {
|
|
88
|
+
this.store.availabilityDateList = list;
|
|
89
|
+
}
|
|
90
|
+
}, {
|
|
91
|
+
key: "getAvailabilityScheduleDateList",
|
|
92
|
+
value: function getAvailabilityScheduleDateList() {
|
|
93
|
+
return this.store.availabilityDateList;
|
|
94
|
+
}
|
|
95
|
+
}, {
|
|
96
|
+
key: "storeChange",
|
|
97
|
+
value: function storeChange() {
|
|
98
|
+
if (this.openCache) {
|
|
99
|
+
var store = cloneDeep(this.store);
|
|
100
|
+
// store里的 list 要主动基于 id 做下去重,避免重复写入
|
|
101
|
+
this.checkSaveCache({
|
|
102
|
+
cacheId: this.cacheId,
|
|
103
|
+
fatherModule: this.fatherModule,
|
|
104
|
+
store: store,
|
|
105
|
+
cacheKey: ['scheduleList', 'availabilityDateList']
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}]);
|
|
110
|
+
return ScheduleModule;
|
|
111
|
+
}(BaseModule);
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
export type ScheduleItem = {
|
|
2
|
+
/** 颜色 */
|
|
3
|
+
color: string;
|
|
4
|
+
/** 创建时间 */
|
|
5
|
+
created_at: string;
|
|
6
|
+
/** 更新时间 */
|
|
7
|
+
updated_at: string;
|
|
8
|
+
/** 开始时间 */
|
|
9
|
+
start_time: string;
|
|
10
|
+
/** 结束时间 */
|
|
11
|
+
end_time: string;
|
|
12
|
+
/** 日程名称 */
|
|
13
|
+
name: string;
|
|
14
|
+
/** 关联订单 */
|
|
15
|
+
order_count: number;
|
|
16
|
+
/** 关联项目数据*/
|
|
17
|
+
relation_count: number;
|
|
18
|
+
repeat_rule: {
|
|
19
|
+
end: {
|
|
20
|
+
/** 截止类型 */
|
|
21
|
+
type: 'date' | 'never';
|
|
22
|
+
/** 结束时间 */
|
|
23
|
+
end_date: string | null;
|
|
24
|
+
occurrence: any | null;
|
|
25
|
+
};
|
|
26
|
+
frequency: number;
|
|
27
|
+
excluded_date: ExcIncDate[];
|
|
28
|
+
included_date: ExcIncDate[];
|
|
29
|
+
frequency_date: number[];
|
|
30
|
+
};
|
|
31
|
+
repeat_type: 'daily' | 'none' | 'weekly';
|
|
32
|
+
/** 日程类型
|
|
33
|
+
* standard: 标准日程
|
|
34
|
+
* time-slots: 时间段日程
|
|
35
|
+
* designation: 指定日期日程
|
|
36
|
+
* */
|
|
37
|
+
type: 'standard' | 'time-slots' | 'designation';
|
|
38
|
+
conflict?: boolean;
|
|
39
|
+
time_slot: {
|
|
40
|
+
start_time: string;
|
|
41
|
+
end_time: string;
|
|
42
|
+
id: number;
|
|
43
|
+
}[];
|
|
44
|
+
id: number;
|
|
45
|
+
/** 指定的开始时间结束时间 */
|
|
46
|
+
designation: {
|
|
47
|
+
start_date: string;
|
|
48
|
+
end_date: string;
|
|
49
|
+
start_time: string;
|
|
50
|
+
end_time: string;
|
|
51
|
+
} | {
|
|
52
|
+
start_date: string;
|
|
53
|
+
end_date: string;
|
|
54
|
+
start_time: string;
|
|
55
|
+
end_time: string;
|
|
56
|
+
}[];
|
|
57
|
+
/** 是否全天 */
|
|
58
|
+
is_all: 1 | 0;
|
|
59
|
+
[key: string]: any;
|
|
60
|
+
relation?: {
|
|
61
|
+
id: number;
|
|
62
|
+
item_id: number;
|
|
63
|
+
item_type: string;
|
|
64
|
+
relation_table_type: string;
|
|
65
|
+
schedule_id: number;
|
|
66
|
+
}[];
|
|
67
|
+
};
|
|
68
|
+
export type ScheduleFormOtherValue = {
|
|
69
|
+
/** 截止模式
|
|
70
|
+
* 1: 永不截止
|
|
71
|
+
* 2: 按日期截止
|
|
72
|
+
* */
|
|
73
|
+
endRadio: 1 | 2;
|
|
74
|
+
/** 是否为全天 */
|
|
75
|
+
isAllDay: boolean;
|
|
76
|
+
/** 是否开启排除日期 */
|
|
77
|
+
excludedStatus: boolean;
|
|
78
|
+
/** 是否包含排除日期 */
|
|
79
|
+
includeStatus: boolean;
|
|
80
|
+
type: 'standard' | 'time-slots' | 'designation';
|
|
81
|
+
};
|
|
82
|
+
export type ExcIncDate = {
|
|
83
|
+
start: string;
|
|
84
|
+
end: string;
|
|
85
|
+
};
|
|
86
|
+
export type ScheduleFormData = {
|
|
87
|
+
/** 颜色 */
|
|
88
|
+
color: string;
|
|
89
|
+
/** 日程名称 */
|
|
90
|
+
name: {
|
|
91
|
+
en: string;
|
|
92
|
+
'zh-CN': string;
|
|
93
|
+
'zh-HK': string;
|
|
94
|
+
original: string;
|
|
95
|
+
} | string;
|
|
96
|
+
/** 重复模式
|
|
97
|
+
* 0:不重复
|
|
98
|
+
* 1:按天重复
|
|
99
|
+
* 2:按周重复 */
|
|
100
|
+
repeat_type: '0' | '1' | '2';
|
|
101
|
+
/** 备注 */
|
|
102
|
+
note: string;
|
|
103
|
+
/** 指定的开始时间结束时间 */
|
|
104
|
+
designation: {
|
|
105
|
+
start_date: string;
|
|
106
|
+
end_date: string;
|
|
107
|
+
start_time: string;
|
|
108
|
+
end_time: string;
|
|
109
|
+
} | {
|
|
110
|
+
start_date: string;
|
|
111
|
+
end_date: string;
|
|
112
|
+
start_time: string;
|
|
113
|
+
end_time: string;
|
|
114
|
+
}[];
|
|
115
|
+
time_slot: {
|
|
116
|
+
start_time: string;
|
|
117
|
+
end_time: string;
|
|
118
|
+
id: number;
|
|
119
|
+
}[];
|
|
120
|
+
/** 重复频率 */
|
|
121
|
+
frequency: number;
|
|
122
|
+
/** 按周重复时选择的周数据 */
|
|
123
|
+
frequency_date: number[];
|
|
124
|
+
/** 截止日期 */
|
|
125
|
+
end_date: string;
|
|
126
|
+
/** 排除的日期范围 */
|
|
127
|
+
excluded_date: ExcIncDate[];
|
|
128
|
+
/** 包含的日期范围 */
|
|
129
|
+
included_date: ExcIncDate[];
|
|
130
|
+
/** 多时间段的开始时间 */
|
|
131
|
+
start_time: any;
|
|
132
|
+
end_time: any;
|
|
133
|
+
};
|
|
134
|
+
export type CalendarDataItem = {
|
|
135
|
+
date: string;
|
|
136
|
+
color: string[];
|
|
137
|
+
isExcluded: boolean;
|
|
138
|
+
schedule_ids?: number[];
|
|
139
|
+
[key: string]: any;
|
|
140
|
+
};
|
|
141
|
+
export type RequestData<Data> = {
|
|
142
|
+
data: Data;
|
|
143
|
+
status: boolean;
|
|
144
|
+
message: string;
|
|
145
|
+
code: number;
|
|
146
|
+
};
|
|
147
|
+
export type ResponseListData<Data> = {
|
|
148
|
+
status: boolean;
|
|
149
|
+
message: string;
|
|
150
|
+
code: number;
|
|
151
|
+
data: {
|
|
152
|
+
list: Data;
|
|
153
|
+
count: number;
|
|
154
|
+
size: number;
|
|
155
|
+
skip: number;
|
|
156
|
+
};
|
|
157
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import dayjs from 'dayjs';
|
|
2
|
+
export interface ScheduleState {
|
|
3
|
+
scheduleList: ScheduleItem[];
|
|
4
|
+
availabilityDateList: ScheduleAvailabilityDateItem[];
|
|
5
|
+
}
|
|
6
|
+
export type ScheduleAvailabilityDateItem = {
|
|
7
|
+
date: string;
|
|
8
|
+
schedule_id: number[];
|
|
9
|
+
};
|
|
10
|
+
export interface ScheduleModuleAPI {
|
|
11
|
+
}
|
|
12
|
+
export type ScheduleItem = {
|
|
13
|
+
/** 颜色 */
|
|
14
|
+
color: string;
|
|
15
|
+
/** 创建时间 */
|
|
16
|
+
created_at: string;
|
|
17
|
+
/** 更新时间 */
|
|
18
|
+
updated_at: string;
|
|
19
|
+
/** 开始时间 */
|
|
20
|
+
start_time: string;
|
|
21
|
+
/** 结束时间 */
|
|
22
|
+
end_time: string;
|
|
23
|
+
/** 日程名称 */
|
|
24
|
+
name: string;
|
|
25
|
+
/** 关联订单 */
|
|
26
|
+
order_count: number;
|
|
27
|
+
/** 关联项目数据*/
|
|
28
|
+
relation_count: number;
|
|
29
|
+
repeat_rule: {
|
|
30
|
+
end: {
|
|
31
|
+
/** 截止类型 */
|
|
32
|
+
type: 'date' | 'never';
|
|
33
|
+
/** 结束时间 */
|
|
34
|
+
end_date: string | null;
|
|
35
|
+
occurrence: any | null;
|
|
36
|
+
};
|
|
37
|
+
frequency: number;
|
|
38
|
+
excluded_date: ExcIncDate[];
|
|
39
|
+
included_date: ExcIncDate[];
|
|
40
|
+
frequency_date: number[];
|
|
41
|
+
};
|
|
42
|
+
repeat_type: 'daily' | 'none' | 'weekly';
|
|
43
|
+
/** 日程类型
|
|
44
|
+
* standard: 标准日程
|
|
45
|
+
* time-slots: 时间段日程
|
|
46
|
+
* designation: 指定日期日程
|
|
47
|
+
* */
|
|
48
|
+
type: 'standard' | 'time-slots' | 'designation';
|
|
49
|
+
conflict?: boolean;
|
|
50
|
+
time_slot: {
|
|
51
|
+
start_time: string;
|
|
52
|
+
end_time: string;
|
|
53
|
+
id: number;
|
|
54
|
+
}[];
|
|
55
|
+
id: number;
|
|
56
|
+
/** 指定的开始时间结束时间 */
|
|
57
|
+
designation: {
|
|
58
|
+
start_date: string;
|
|
59
|
+
end_date: string;
|
|
60
|
+
start_time: string;
|
|
61
|
+
end_time: string;
|
|
62
|
+
} | {
|
|
63
|
+
start_date: string;
|
|
64
|
+
end_date: string;
|
|
65
|
+
start_time: string;
|
|
66
|
+
end_time: string;
|
|
67
|
+
}[];
|
|
68
|
+
/** 是否全天 */
|
|
69
|
+
is_all: 1 | 0;
|
|
70
|
+
[key: string]: any;
|
|
71
|
+
relation?: {
|
|
72
|
+
id: number;
|
|
73
|
+
item_id: number;
|
|
74
|
+
item_type: string;
|
|
75
|
+
relation_table_type: string;
|
|
76
|
+
schedule_id: number;
|
|
77
|
+
}[];
|
|
78
|
+
};
|
|
79
|
+
export type ScheduleFormOtherValue = {
|
|
80
|
+
/** 截止模式
|
|
81
|
+
* 1: 永不截止
|
|
82
|
+
* 2: 按日期截止
|
|
83
|
+
* */
|
|
84
|
+
endRadio: 1 | 2;
|
|
85
|
+
/** 是否为全天 */
|
|
86
|
+
isAllDay: boolean;
|
|
87
|
+
/** 是否开启排除日期 */
|
|
88
|
+
excludedStatus: boolean;
|
|
89
|
+
/** 是否包含排除日期 */
|
|
90
|
+
includeStatus: boolean;
|
|
91
|
+
type: 'standard' | 'time-slots' | 'designation';
|
|
92
|
+
};
|
|
93
|
+
export type ExcIncDate = {
|
|
94
|
+
start: string;
|
|
95
|
+
end: string;
|
|
96
|
+
};
|
|
97
|
+
export type ScheduleFormData = {
|
|
98
|
+
/** 颜色 */
|
|
99
|
+
color: string;
|
|
100
|
+
/** 日程名称 */
|
|
101
|
+
name: {
|
|
102
|
+
en: string;
|
|
103
|
+
'zh-CN': string;
|
|
104
|
+
'zh-HK': string;
|
|
105
|
+
original: string;
|
|
106
|
+
} | string;
|
|
107
|
+
/** 重复模式
|
|
108
|
+
* 0:不重复
|
|
109
|
+
* 1:按天重复
|
|
110
|
+
* 2:按周重复 */
|
|
111
|
+
repeat_type: '0' | '1' | '2';
|
|
112
|
+
/** 备注 */
|
|
113
|
+
note: string;
|
|
114
|
+
/** 指定的开始时间结束时间 */
|
|
115
|
+
designation: {
|
|
116
|
+
start_date: string;
|
|
117
|
+
end_date: string;
|
|
118
|
+
start_time: string;
|
|
119
|
+
end_time: string;
|
|
120
|
+
} | {
|
|
121
|
+
start_date: string;
|
|
122
|
+
end_date: string;
|
|
123
|
+
start_time: string;
|
|
124
|
+
end_time: string;
|
|
125
|
+
}[];
|
|
126
|
+
time_slot: {
|
|
127
|
+
start_time: string;
|
|
128
|
+
end_time: string;
|
|
129
|
+
id: number;
|
|
130
|
+
}[];
|
|
131
|
+
/** 重复频率 */
|
|
132
|
+
frequency: number;
|
|
133
|
+
/** 按周重复时选择的周数据 */
|
|
134
|
+
frequency_date: number[];
|
|
135
|
+
/** 截止日期 */
|
|
136
|
+
end_date: string;
|
|
137
|
+
/** 排除的日期范围 */
|
|
138
|
+
excluded_date: ExcIncDate[];
|
|
139
|
+
/** 包含的日期范围 */
|
|
140
|
+
included_date: ExcIncDate[];
|
|
141
|
+
/** 多时间段的开始时间 */
|
|
142
|
+
start_time: any;
|
|
143
|
+
end_time: any;
|
|
144
|
+
};
|
|
145
|
+
export type CalendarDataItem = {
|
|
146
|
+
date: string;
|
|
147
|
+
color: string[];
|
|
148
|
+
isExcluded: boolean;
|
|
149
|
+
schedule_ids?: number[];
|
|
150
|
+
[key: string]: any;
|
|
151
|
+
};
|
|
152
|
+
export type RequestData<Data> = {
|
|
153
|
+
data: Data;
|
|
154
|
+
status: boolean;
|
|
155
|
+
message: string;
|
|
156
|
+
code: number;
|
|
157
|
+
};
|
|
158
|
+
export type ResponseListData<Data> = {
|
|
159
|
+
status: boolean;
|
|
160
|
+
message: string;
|
|
161
|
+
code: number;
|
|
162
|
+
data: {
|
|
163
|
+
list: Data;
|
|
164
|
+
count: number;
|
|
165
|
+
size: number;
|
|
166
|
+
skip: number;
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
export type ScheduleAllMap = Record<string, {
|
|
170
|
+
minTime: dayjs.Dayjs | null;
|
|
171
|
+
maxTime: dayjs.Dayjs | null;
|
|
172
|
+
minTimeStr: string | null;
|
|
173
|
+
maxTimeStr: string | null;
|
|
174
|
+
dateRange: {
|
|
175
|
+
start: string;
|
|
176
|
+
end: string;
|
|
177
|
+
}[];
|
|
178
|
+
dateRangeFormat: {
|
|
179
|
+
start: string;
|
|
180
|
+
end: string;
|
|
181
|
+
}[];
|
|
182
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { ScheduleFormData, ScheduleFormOtherValue, ScheduleItem, ScheduleAllMap } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* 根据日程配置生成日历数据
|
|
4
|
+
* @param values
|
|
5
|
+
* @param others
|
|
6
|
+
* @param type
|
|
7
|
+
*/
|
|
8
|
+
export declare const calcCalendarDataBySchedule: (values: ScheduleFormData, others: ScheduleFormOtherValue, type?: 'standard' | 'time-slots' | 'designation') => any[];
|
|
9
|
+
/**
|
|
10
|
+
* 获取开始时间和结束时间之间的所有日期
|
|
11
|
+
* @param startDate
|
|
12
|
+
* @param endDate
|
|
13
|
+
*/
|
|
14
|
+
export declare const getDaysByStartEnd: (startDate: any, endDate: any) => string[];
|
|
15
|
+
/**
|
|
16
|
+
* 根据标准日程计算日历数据
|
|
17
|
+
* @param values
|
|
18
|
+
* @param others
|
|
19
|
+
*/
|
|
20
|
+
export declare const calcCalendarDataByStandard: (values: ScheduleFormData, others: ScheduleFormOtherValue, isGetRange?: boolean) => any[];
|
|
21
|
+
/**
|
|
22
|
+
* 根据多时间段计算日历数据
|
|
23
|
+
* @param values
|
|
24
|
+
* @param others
|
|
25
|
+
*/
|
|
26
|
+
export declare const calcCalendarDataByTimeSlots: (values: ScheduleFormData, others: ScheduleFormOtherValue, isGetRange?: boolean) => any[];
|
|
27
|
+
/**
|
|
28
|
+
* 根据指定日期计算日历数据
|
|
29
|
+
* @param values
|
|
30
|
+
* @param others
|
|
31
|
+
*/
|
|
32
|
+
export declare const calcCalendarDataByDesignation: (values: ScheduleFormData, others: ScheduleFormOtherValue, isGetRange?: boolean) => any[];
|
|
33
|
+
export declare const isAllDay: (value: ScheduleItem) => boolean;
|
|
34
|
+
/**
|
|
35
|
+
* 根据接口返回的Schedule计算日历数据
|
|
36
|
+
* @param schedule
|
|
37
|
+
*/
|
|
38
|
+
export declare const calcCalendarDataByScheduleResult: (schedule: ScheduleItem) => any[];
|
|
39
|
+
/**
|
|
40
|
+
* 接口返回schedule转换格式
|
|
41
|
+
* @param schedule
|
|
42
|
+
*/
|
|
43
|
+
export declare const formatScheduleResult: (schedule: ScheduleItem) => {
|
|
44
|
+
scheduleFormData: Partial<ScheduleFormData>;
|
|
45
|
+
scheduleFormOtherValue: ScheduleFormOtherValue;
|
|
46
|
+
};
|
|
47
|
+
export declare const calcScheduleDateRange: (schedule: ScheduleItem) => any[];
|
|
48
|
+
export declare const calcCalendarDataBySchedules: (schedules: ScheduleItem[]) => unknown[];
|
|
49
|
+
export declare const calcMinTimeMaxTimeBySchedules: (schedules: ScheduleItem[], scheduleAllMap?: ScheduleAllMap, selectDate?: string) => {};
|
|
50
|
+
/**
|
|
51
|
+
* @title: 格式化日程数据
|
|
52
|
+
* @description:
|
|
53
|
+
* @param {Array} relation 资源列表
|
|
54
|
+
* @param {string} table_type 关联表类型
|
|
55
|
+
* @param {string} item_type 资源类型
|
|
56
|
+
* @param {boolean} isExcluded 是否排除
|
|
57
|
+
* @return {*}
|
|
58
|
+
* @Author: WangHan
|
|
59
|
+
* @Date: 2024-09-04 11:54
|
|
60
|
+
*/
|
|
61
|
+
export declare const formatScheduleData: (relation: Array<any>, table_type?: string, item_type?: string, isExcluded?: boolean) => any;
|
|
62
|
+
export interface TimeRange {
|
|
63
|
+
start: string;
|
|
64
|
+
end: string;
|
|
65
|
+
count?: number;
|
|
66
|
+
}
|
|
67
|
+
export declare function getAllSortedDateRanges(schedules: Record<string, any>): TimeRange[];
|