@pisell/private-materials 6.6.28 → 6.6.30
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +2 -2
- package/build/lowcode/preview.js +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +8 -8
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +9 -9
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/eftpos/hooks.d.ts +0 -1
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/store/index.d.ts +5 -5
- package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/es/components/ticketBooking/utils/index.d.ts +1 -1
- package/es/hooks/usePaymentLogger.d.ts +0 -1
- package/es/index.d.ts +4 -0
- package/es/index.js +4 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
- package/es/plus/saasAttendance/index.d.ts +6 -0
- package/es/plus/saasAttendance/index.js +5 -0
- package/es/plus/saasAttendance/locales.d.ts +318 -0
- package/es/plus/saasAttendance/locales.js +354 -0
- package/es/plus/saasAttendance/settings/BasicInfoTab.d.ts +5 -0
- package/es/plus/saasAttendance/settings/BasicInfoTab.js +96 -0
- package/es/plus/saasAttendance/settings/ClockInMethodTab.d.ts +8 -0
- package/es/plus/saasAttendance/settings/ClockInMethodTab.js +81 -0
- package/es/plus/saasAttendance/settings/CorrectionPolicyTab.d.ts +8 -0
- package/es/plus/saasAttendance/settings/CorrectionPolicyTab.js +293 -0
- package/es/plus/saasAttendance/settings/ShiftScheduleTab.d.ts +5 -0
- package/es/plus/saasAttendance/settings/ShiftScheduleTab.js +109 -0
- package/es/plus/saasAttendance/settings/components/MapField.d.ts +78 -0
- package/es/plus/saasAttendance/settings/components/MapField.js +810 -0
- package/es/plus/saasAttendance/settings/components/index.d.ts +3 -0
- package/es/plus/saasAttendance/settings/components/index.js +2 -0
- package/es/plus/saasAttendance/settings/components/membersField/index.d.ts +8 -0
- package/es/plus/saasAttendance/settings/components/membersField/index.js +216 -0
- package/es/plus/saasAttendance/settings/components/membersField/index.less +70 -0
- package/es/plus/saasAttendance/settings/components/shiftModal/index.d.ts +18 -0
- package/es/plus/saasAttendance/settings/components/shiftModal/index.js +438 -0
- package/es/plus/saasAttendance/settings/index.d.ts +18 -0
- package/es/plus/saasAttendance/settings/index.js +255 -0
- package/es/plus/saasAttendance/settings/index.less +495 -0
- package/es/plus/saasAttendance/settings/serve.d.ts +27 -0
- package/es/plus/saasAttendance/settings/serve.js +83 -0
- package/es/plus/saasAttendance/settings/types.d.ts +128 -0
- package/es/plus/saasAttendance/settings/types.js +1 -0
- package/es/plus/saasRole/components/PermissionManager/index.d.ts +19 -0
- package/es/plus/saasRole/components/PermissionManager/index.js +211 -0
- package/es/plus/saasRole/components/PermissionManager/index.less +71 -0
- package/es/plus/saasRole/index.d.ts +14 -0
- package/es/plus/saasRole/index.js +1036 -0
- package/es/plus/saasRole/index.less +196 -0
- package/es/plus/saasRole/locales.d.ts +193 -0
- package/es/plus/saasRole/locales.js +193 -0
- package/es/plus/saasRole/serve.d.ts +72 -0
- package/es/plus/saasRole/serve.js +304 -0
- package/es/plus/saasRole/types.d.ts +175 -0
- package/es/plus/saasRole/types.js +1 -0
- package/es/plus/saasRole/utils.d.ts +0 -0
- package/es/plus/saasRole/utils.js +0 -0
- package/es/plus/saasTeamMembers/components/MemberDrawer/ExtensionFormTabContent.d.ts +31 -0
- package/es/plus/saasTeamMembers/components/MemberDrawer/ExtensionFormTabContent.js +503 -0
- package/es/plus/saasTeamMembers/components/MemberDrawer/index.d.ts +23 -0
- package/es/plus/saasTeamMembers/components/MemberDrawer/index.js +634 -0
- package/es/plus/saasTeamMembers/components/MemberDrawer/index.less +178 -0
- package/es/plus/saasTeamMembers/index.d.ts +5 -0
- package/es/plus/saasTeamMembers/index.js +529 -0
- package/es/plus/saasTeamMembers/index.less +87 -0
- package/es/plus/saasTeamMembers/locales.d.ts +330 -0
- package/es/plus/saasTeamMembers/locales.js +375 -0
- package/es/plus/saasTeamMembers/serve.d.ts +95 -0
- package/es/plus/saasTeamMembers/serve.js +374 -0
- package/es/plus/saasTeamMembers/type.d.ts +156 -0
- package/es/plus/saasTeamMembers/type.js +1 -0
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/eftpos/hooks.d.ts +0 -1
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/store/index.d.ts +5 -5
- package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/lib/components/ticketBooking/utils/index.d.ts +1 -1
- package/lib/hooks/usePaymentLogger.d.ts +0 -1
- package/lib/index.d.ts +4 -0
- package/lib/index.js +9 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
- package/lib/plus/saasAttendance/index.d.ts +6 -0
- package/lib/plus/saasAttendance/index.js +39 -0
- package/lib/plus/saasAttendance/locales.d.ts +318 -0
- package/lib/plus/saasAttendance/locales.js +342 -0
- package/lib/plus/saasAttendance/settings/BasicInfoTab.d.ts +5 -0
- package/lib/plus/saasAttendance/settings/BasicInfoTab.js +152 -0
- package/lib/plus/saasAttendance/settings/ClockInMethodTab.d.ts +8 -0
- package/lib/plus/saasAttendance/settings/ClockInMethodTab.js +88 -0
- package/lib/plus/saasAttendance/settings/CorrectionPolicyTab.d.ts +8 -0
- package/lib/plus/saasAttendance/settings/CorrectionPolicyTab.js +369 -0
- package/lib/plus/saasAttendance/settings/ShiftScheduleTab.d.ts +5 -0
- package/lib/plus/saasAttendance/settings/ShiftScheduleTab.js +106 -0
- package/lib/plus/saasAttendance/settings/components/MapField.d.ts +78 -0
- package/lib/plus/saasAttendance/settings/components/MapField.js +631 -0
- package/lib/plus/saasAttendance/settings/components/index.d.ts +3 -0
- package/lib/plus/saasAttendance/settings/components/index.js +42 -0
- package/lib/plus/saasAttendance/settings/components/membersField/index.d.ts +8 -0
- package/lib/plus/saasAttendance/settings/components/membersField/index.js +247 -0
- package/lib/plus/saasAttendance/settings/components/membersField/index.less +70 -0
- package/lib/plus/saasAttendance/settings/components/shiftModal/index.d.ts +18 -0
- package/lib/plus/saasAttendance/settings/components/shiftModal/index.js +447 -0
- package/lib/plus/saasAttendance/settings/index.d.ts +18 -0
- package/lib/plus/saasAttendance/settings/index.js +283 -0
- package/lib/plus/saasAttendance/settings/index.less +495 -0
- package/lib/plus/saasAttendance/settings/serve.d.ts +27 -0
- package/lib/plus/saasAttendance/settings/serve.js +54 -0
- package/lib/plus/saasAttendance/settings/types.d.ts +128 -0
- package/lib/plus/saasAttendance/settings/types.js +17 -0
- package/lib/plus/saasRole/components/PermissionManager/index.d.ts +19 -0
- package/lib/plus/saasRole/components/PermissionManager/index.js +159 -0
- package/lib/plus/saasRole/components/PermissionManager/index.less +71 -0
- package/lib/plus/saasRole/index.d.ts +14 -0
- package/lib/plus/saasRole/index.js +780 -0
- package/lib/plus/saasRole/index.less +196 -0
- package/lib/plus/saasRole/locales.d.ts +193 -0
- package/lib/plus/saasRole/locales.js +219 -0
- package/lib/plus/saasRole/serve.d.ts +72 -0
- package/lib/plus/saasRole/serve.js +100 -0
- package/lib/plus/saasRole/types.d.ts +175 -0
- package/lib/plus/saasRole/types.js +17 -0
- package/lib/plus/saasRole/utils.d.ts +0 -0
- package/lib/plus/saasRole/utils.js +0 -0
- package/lib/plus/saasTeamMembers/components/MemberDrawer/ExtensionFormTabContent.d.ts +31 -0
- package/lib/plus/saasTeamMembers/components/MemberDrawer/ExtensionFormTabContent.js +393 -0
- package/lib/plus/saasTeamMembers/components/MemberDrawer/index.d.ts +23 -0
- package/lib/plus/saasTeamMembers/components/MemberDrawer/index.js +672 -0
- package/lib/plus/saasTeamMembers/components/MemberDrawer/index.less +178 -0
- package/lib/plus/saasTeamMembers/index.d.ts +5 -0
- package/lib/plus/saasTeamMembers/index.js +448 -0
- package/lib/plus/saasTeamMembers/index.less +87 -0
- package/lib/plus/saasTeamMembers/locales.d.ts +330 -0
- package/lib/plus/saasTeamMembers/locales.js +401 -0
- package/lib/plus/saasTeamMembers/serve.d.ts +95 -0
- package/lib/plus/saasTeamMembers/serve.js +132 -0
- package/lib/plus/saasTeamMembers/type.d.ts +156 -0
- package/lib/plus/saasTeamMembers/type.js +17 -0
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
- package/lowcode/saas-attendance-settings/meta.ts +56 -0
- package/lowcode/saas-role/meta.ts +35 -0
- package/lowcode/saas-team-members/meta.ts +35 -0
- package/package.json +4 -4
|
@@ -0,0 +1,374 @@
|
|
|
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
|
+
import { request } from "../../utils";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* 获取团队成员列表
|
|
9
|
+
* GET: /tenant/account
|
|
10
|
+
*/
|
|
11
|
+
export var getTeamMembers = /*#__PURE__*/function () {
|
|
12
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
13
|
+
var params,
|
|
14
|
+
response,
|
|
15
|
+
_args = arguments;
|
|
16
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17
|
+
while (1) switch (_context.prev = _context.next) {
|
|
18
|
+
case 0:
|
|
19
|
+
params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
20
|
+
_context.next = 3;
|
|
21
|
+
return request.getRequest().get('/tenant/account', params);
|
|
22
|
+
case 3:
|
|
23
|
+
response = _context.sent;
|
|
24
|
+
return _context.abrupt("return", response.data || {
|
|
25
|
+
list: [],
|
|
26
|
+
count: 0,
|
|
27
|
+
page: 1,
|
|
28
|
+
size: 10
|
|
29
|
+
});
|
|
30
|
+
case 5:
|
|
31
|
+
case "end":
|
|
32
|
+
return _context.stop();
|
|
33
|
+
}
|
|
34
|
+
}, _callee);
|
|
35
|
+
}));
|
|
36
|
+
return function getTeamMembers() {
|
|
37
|
+
return _ref.apply(this, arguments);
|
|
38
|
+
};
|
|
39
|
+
}();
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* 获取团队成员详情
|
|
43
|
+
* GET: /tenant/account/{id}
|
|
44
|
+
*/
|
|
45
|
+
export var getTeamMemberDetail = /*#__PURE__*/function () {
|
|
46
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(id) {
|
|
47
|
+
var response;
|
|
48
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
49
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
50
|
+
case 0:
|
|
51
|
+
_context2.next = 2;
|
|
52
|
+
return request.getRequest().get("/tenant/account/".concat(id), {
|
|
53
|
+
'with[]': ['account', 'roles']
|
|
54
|
+
});
|
|
55
|
+
case 2:
|
|
56
|
+
response = _context2.sent;
|
|
57
|
+
return _context2.abrupt("return", response.data);
|
|
58
|
+
case 4:
|
|
59
|
+
case "end":
|
|
60
|
+
return _context2.stop();
|
|
61
|
+
}
|
|
62
|
+
}, _callee2);
|
|
63
|
+
}));
|
|
64
|
+
return function getTeamMemberDetail(_x) {
|
|
65
|
+
return _ref2.apply(this, arguments);
|
|
66
|
+
};
|
|
67
|
+
}();
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* 创建团队成员
|
|
71
|
+
* POST: /tenant/account
|
|
72
|
+
*/
|
|
73
|
+
export var createTeamMember = /*#__PURE__*/function () {
|
|
74
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(data) {
|
|
75
|
+
var response;
|
|
76
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
77
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
78
|
+
case 0:
|
|
79
|
+
_context3.next = 2;
|
|
80
|
+
return request.getRequest().post('/tenant/account', data);
|
|
81
|
+
case 2:
|
|
82
|
+
response = _context3.sent;
|
|
83
|
+
return _context3.abrupt("return", response.data);
|
|
84
|
+
case 4:
|
|
85
|
+
case "end":
|
|
86
|
+
return _context3.stop();
|
|
87
|
+
}
|
|
88
|
+
}, _callee3);
|
|
89
|
+
}));
|
|
90
|
+
return function createTeamMember(_x2) {
|
|
91
|
+
return _ref3.apply(this, arguments);
|
|
92
|
+
};
|
|
93
|
+
}();
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* 更新团队成员
|
|
97
|
+
* PUT: /tenant/account/{id}
|
|
98
|
+
*/
|
|
99
|
+
export var updateTeamMember = /*#__PURE__*/function () {
|
|
100
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(id, data) {
|
|
101
|
+
var response;
|
|
102
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
103
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
104
|
+
case 0:
|
|
105
|
+
_context4.next = 2;
|
|
106
|
+
return request.getRequest().put("/tenant/account/".concat(id), data);
|
|
107
|
+
case 2:
|
|
108
|
+
response = _context4.sent;
|
|
109
|
+
return _context4.abrupt("return", response.data);
|
|
110
|
+
case 4:
|
|
111
|
+
case "end":
|
|
112
|
+
return _context4.stop();
|
|
113
|
+
}
|
|
114
|
+
}, _callee4);
|
|
115
|
+
}));
|
|
116
|
+
return function updateTeamMember(_x3, _x4) {
|
|
117
|
+
return _ref4.apply(this, arguments);
|
|
118
|
+
};
|
|
119
|
+
}();
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* 删除团队成员
|
|
123
|
+
* DELETE: /tenant/account/{id}
|
|
124
|
+
*/
|
|
125
|
+
export var deleteTeamMember = /*#__PURE__*/function () {
|
|
126
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(id) {
|
|
127
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
128
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
129
|
+
case 0:
|
|
130
|
+
_context5.next = 2;
|
|
131
|
+
return request.getRequest().remove("/tenant/account/".concat(id));
|
|
132
|
+
case 2:
|
|
133
|
+
case "end":
|
|
134
|
+
return _context5.stop();
|
|
135
|
+
}
|
|
136
|
+
}, _callee5);
|
|
137
|
+
}));
|
|
138
|
+
return function deleteTeamMember(_x5) {
|
|
139
|
+
return _ref5.apply(this, arguments);
|
|
140
|
+
};
|
|
141
|
+
}();
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* 激活团队成员
|
|
145
|
+
* PUT: /tenant/account/{id}
|
|
146
|
+
*/
|
|
147
|
+
export var activateTeamMember = /*#__PURE__*/function () {
|
|
148
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(id) {
|
|
149
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
150
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
151
|
+
case 0:
|
|
152
|
+
return _context6.abrupt("return", updateTeamMember(id, {
|
|
153
|
+
status: 'active'
|
|
154
|
+
}));
|
|
155
|
+
case 1:
|
|
156
|
+
case "end":
|
|
157
|
+
return _context6.stop();
|
|
158
|
+
}
|
|
159
|
+
}, _callee6);
|
|
160
|
+
}));
|
|
161
|
+
return function activateTeamMember(_x6) {
|
|
162
|
+
return _ref6.apply(this, arguments);
|
|
163
|
+
};
|
|
164
|
+
}();
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* 停用团队成员
|
|
168
|
+
* PUT: /tenant/account/{id}
|
|
169
|
+
*/
|
|
170
|
+
export var deactivateTeamMember = /*#__PURE__*/function () {
|
|
171
|
+
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(id) {
|
|
172
|
+
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
173
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
174
|
+
case 0:
|
|
175
|
+
return _context7.abrupt("return", updateTeamMember(id, {
|
|
176
|
+
status: 'inactive'
|
|
177
|
+
}));
|
|
178
|
+
case 1:
|
|
179
|
+
case "end":
|
|
180
|
+
return _context7.stop();
|
|
181
|
+
}
|
|
182
|
+
}, _callee7);
|
|
183
|
+
}));
|
|
184
|
+
return function deactivateTeamMember(_x7) {
|
|
185
|
+
return _ref7.apply(this, arguments);
|
|
186
|
+
};
|
|
187
|
+
}();
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* 获取所有角色列表(用于筛选和表单选择)
|
|
191
|
+
* GET: /tenant/role
|
|
192
|
+
*/
|
|
193
|
+
export var getRoles = /*#__PURE__*/function () {
|
|
194
|
+
var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8() {
|
|
195
|
+
var response;
|
|
196
|
+
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
197
|
+
while (1) switch (_context8.prev = _context8.next) {
|
|
198
|
+
case 0:
|
|
199
|
+
_context8.next = 2;
|
|
200
|
+
return request.getRequest().get('/tenant/role', {});
|
|
201
|
+
case 2:
|
|
202
|
+
response = _context8.sent;
|
|
203
|
+
return _context8.abrupt("return", response.data || []);
|
|
204
|
+
case 4:
|
|
205
|
+
case "end":
|
|
206
|
+
return _context8.stop();
|
|
207
|
+
}
|
|
208
|
+
}, _callee8);
|
|
209
|
+
}));
|
|
210
|
+
return function getRoles() {
|
|
211
|
+
return _ref8.apply(this, arguments);
|
|
212
|
+
};
|
|
213
|
+
}();
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* 通过email查询账号
|
|
217
|
+
* GET: /account:get
|
|
218
|
+
* @param params.filter - filter string, e.g. {"email":"test@example.com","tenant_id":1}
|
|
219
|
+
*/
|
|
220
|
+
export var getAccountByEmail = /*#__PURE__*/function () {
|
|
221
|
+
var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(params) {
|
|
222
|
+
var response;
|
|
223
|
+
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
|
224
|
+
while (1) switch (_context9.prev = _context9.next) {
|
|
225
|
+
case 0:
|
|
226
|
+
_context9.next = 2;
|
|
227
|
+
return request.getRequest().get("/account:get", params, {
|
|
228
|
+
isNocobaseReadonly: true,
|
|
229
|
+
headers: {
|
|
230
|
+
'x-data-source': 'pisell2'
|
|
231
|
+
}
|
|
232
|
+
});
|
|
233
|
+
case 2:
|
|
234
|
+
response = _context9.sent;
|
|
235
|
+
return _context9.abrupt("return", response.data);
|
|
236
|
+
case 4:
|
|
237
|
+
case "end":
|
|
238
|
+
return _context9.stop();
|
|
239
|
+
}
|
|
240
|
+
}, _callee9);
|
|
241
|
+
}));
|
|
242
|
+
return function getAccountByEmail(_x8) {
|
|
243
|
+
return _ref9.apply(this, arguments);
|
|
244
|
+
};
|
|
245
|
+
}();
|
|
246
|
+
|
|
247
|
+
//relation_type: tenant_account
|
|
248
|
+
// relation_id: account_id
|
|
249
|
+
// form_id: form_id
|
|
250
|
+
// form_record_id: form_record_id
|
|
251
|
+
/**
|
|
252
|
+
* 查询绑定记录
|
|
253
|
+
*/
|
|
254
|
+
var shopPrefix = '/shop';
|
|
255
|
+
export var getFormRecords = /*#__PURE__*/function () {
|
|
256
|
+
var _ref10 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(params) {
|
|
257
|
+
var _ref11, data;
|
|
258
|
+
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
|
259
|
+
while (1) switch (_context10.prev = _context10.next) {
|
|
260
|
+
case 0:
|
|
261
|
+
_context10.next = 2;
|
|
262
|
+
return request.getRequest().get("".concat(shopPrefix, "/form/data/v1"), params, {
|
|
263
|
+
isShopApi: true
|
|
264
|
+
});
|
|
265
|
+
case 2:
|
|
266
|
+
_ref11 = _context10.sent;
|
|
267
|
+
data = _ref11.data;
|
|
268
|
+
return _context10.abrupt("return", data || {
|
|
269
|
+
list: [],
|
|
270
|
+
count: 0,
|
|
271
|
+
skip: 1,
|
|
272
|
+
size: 10
|
|
273
|
+
});
|
|
274
|
+
case 5:
|
|
275
|
+
case "end":
|
|
276
|
+
return _context10.stop();
|
|
277
|
+
}
|
|
278
|
+
}, _callee10);
|
|
279
|
+
}));
|
|
280
|
+
return function getFormRecords(_x9) {
|
|
281
|
+
return _ref10.apply(this, arguments);
|
|
282
|
+
};
|
|
283
|
+
}();
|
|
284
|
+
export var getRelationRecords = /*#__PURE__*/function () {
|
|
285
|
+
var _ref12 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(params) {
|
|
286
|
+
var _ref13, data;
|
|
287
|
+
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
|
288
|
+
while (1) switch (_context11.prev = _context11.next) {
|
|
289
|
+
case 0:
|
|
290
|
+
_context11.next = 2;
|
|
291
|
+
return request.getRequest().get("".concat(shopPrefix, "/form/relation/record/raw"), params, {
|
|
292
|
+
isShopApi: true
|
|
293
|
+
});
|
|
294
|
+
case 2:
|
|
295
|
+
_ref13 = _context11.sent;
|
|
296
|
+
data = _ref13.data;
|
|
297
|
+
return _context11.abrupt("return", data || []);
|
|
298
|
+
case 5:
|
|
299
|
+
case "end":
|
|
300
|
+
return _context11.stop();
|
|
301
|
+
}
|
|
302
|
+
}, _callee11);
|
|
303
|
+
}));
|
|
304
|
+
return function getRelationRecords(_x10) {
|
|
305
|
+
return _ref12.apply(this, arguments);
|
|
306
|
+
};
|
|
307
|
+
}();
|
|
308
|
+
export var bindRelationRecord = /*#__PURE__*/function () {
|
|
309
|
+
var _ref14 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(params) {
|
|
310
|
+
var _ref15, data;
|
|
311
|
+
return _regeneratorRuntime().wrap(function _callee12$(_context12) {
|
|
312
|
+
while (1) switch (_context12.prev = _context12.next) {
|
|
313
|
+
case 0:
|
|
314
|
+
_context12.next = 2;
|
|
315
|
+
return request.getRequest().post("".concat(shopPrefix, "/form/relation/record"), params, {
|
|
316
|
+
isShopApi: true
|
|
317
|
+
});
|
|
318
|
+
case 2:
|
|
319
|
+
_ref15 = _context12.sent;
|
|
320
|
+
data = _ref15.data;
|
|
321
|
+
return _context12.abrupt("return", data);
|
|
322
|
+
case 5:
|
|
323
|
+
case "end":
|
|
324
|
+
return _context12.stop();
|
|
325
|
+
}
|
|
326
|
+
}, _callee12);
|
|
327
|
+
}));
|
|
328
|
+
return function bindRelationRecord(_x11) {
|
|
329
|
+
return _ref14.apply(this, arguments);
|
|
330
|
+
};
|
|
331
|
+
}();
|
|
332
|
+
export var updateRelationRecord = /*#__PURE__*/function () {
|
|
333
|
+
var _ref16 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(id, params) {
|
|
334
|
+
var _ref17, data;
|
|
335
|
+
return _regeneratorRuntime().wrap(function _callee13$(_context13) {
|
|
336
|
+
while (1) switch (_context13.prev = _context13.next) {
|
|
337
|
+
case 0:
|
|
338
|
+
_context13.next = 2;
|
|
339
|
+
return request.getRequest().put("".concat(shopPrefix, "/form/relation/record/").concat(id), params, {
|
|
340
|
+
isShopApi: true
|
|
341
|
+
});
|
|
342
|
+
case 2:
|
|
343
|
+
_ref17 = _context13.sent;
|
|
344
|
+
data = _ref17.data;
|
|
345
|
+
return _context13.abrupt("return", data);
|
|
346
|
+
case 5:
|
|
347
|
+
case "end":
|
|
348
|
+
return _context13.stop();
|
|
349
|
+
}
|
|
350
|
+
}, _callee13);
|
|
351
|
+
}));
|
|
352
|
+
return function updateRelationRecord(_x12, _x13) {
|
|
353
|
+
return _ref16.apply(this, arguments);
|
|
354
|
+
};
|
|
355
|
+
}();
|
|
356
|
+
export var unbindRelationRecord = /*#__PURE__*/function () {
|
|
357
|
+
var _ref18 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(id) {
|
|
358
|
+
return _regeneratorRuntime().wrap(function _callee14$(_context14) {
|
|
359
|
+
while (1) switch (_context14.prev = _context14.next) {
|
|
360
|
+
case 0:
|
|
361
|
+
_context14.next = 2;
|
|
362
|
+
return request.getRequest().remove("".concat(shopPrefix, "/form/relation/record/").concat(id), {}, {
|
|
363
|
+
isShopApi: true
|
|
364
|
+
});
|
|
365
|
+
case 2:
|
|
366
|
+
case "end":
|
|
367
|
+
return _context14.stop();
|
|
368
|
+
}
|
|
369
|
+
}, _callee14);
|
|
370
|
+
}));
|
|
371
|
+
return function unbindRelationRecord(_x14) {
|
|
372
|
+
return _ref18.apply(this, arguments);
|
|
373
|
+
};
|
|
374
|
+
}();
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* 通用响应结构
|
|
4
|
+
*/
|
|
5
|
+
export interface ApiResponse<T> {
|
|
6
|
+
status: boolean;
|
|
7
|
+
code: number;
|
|
8
|
+
message: string;
|
|
9
|
+
data: T;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* 分页数据结构
|
|
13
|
+
*/
|
|
14
|
+
export interface PaginationData<T> {
|
|
15
|
+
list: T[];
|
|
16
|
+
count: number;
|
|
17
|
+
page: number;
|
|
18
|
+
size: number;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* 多语言字段
|
|
22
|
+
*/
|
|
23
|
+
export interface MultiLanguage {
|
|
24
|
+
en?: string;
|
|
25
|
+
'zh-CN'?: string;
|
|
26
|
+
'zh-HK'?: string;
|
|
27
|
+
original?: string;
|
|
28
|
+
[key: string]: string | undefined;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* 账户基础信息
|
|
32
|
+
*/
|
|
33
|
+
export interface AccountInfo {
|
|
34
|
+
id: number;
|
|
35
|
+
tenant_id: number;
|
|
36
|
+
email: string | null;
|
|
37
|
+
phone: string | null;
|
|
38
|
+
avatar: string | null;
|
|
39
|
+
name: string | null;
|
|
40
|
+
first_name: string | null;
|
|
41
|
+
last_name: string | null;
|
|
42
|
+
nickname: string | null;
|
|
43
|
+
locale: string;
|
|
44
|
+
timezone: string;
|
|
45
|
+
status: string;
|
|
46
|
+
login_times: number;
|
|
47
|
+
login_ip: string | null;
|
|
48
|
+
login_at: string | null;
|
|
49
|
+
created_at: string;
|
|
50
|
+
updated_at: string;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* 角色信息
|
|
54
|
+
*/
|
|
55
|
+
export interface RoleInfo {
|
|
56
|
+
id: number;
|
|
57
|
+
tenant_id: number;
|
|
58
|
+
code: string;
|
|
59
|
+
name: MultiLanguage;
|
|
60
|
+
description?: MultiLanguage;
|
|
61
|
+
permission: string[];
|
|
62
|
+
metadata?: {
|
|
63
|
+
extension_form_id?: number;
|
|
64
|
+
[key: string]: any;
|
|
65
|
+
};
|
|
66
|
+
sort: number;
|
|
67
|
+
created_at: string;
|
|
68
|
+
updated_at: string;
|
|
69
|
+
pivot?: {
|
|
70
|
+
tenant_account_id: number;
|
|
71
|
+
tenant_role_id: number;
|
|
72
|
+
created_at: string;
|
|
73
|
+
updated_at: string;
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* 团队成员信息接口
|
|
78
|
+
*/
|
|
79
|
+
export interface TeamMemberInfo {
|
|
80
|
+
/** 租户账户ID */
|
|
81
|
+
id: number;
|
|
82
|
+
/** 租户ID */
|
|
83
|
+
tenant_id: number;
|
|
84
|
+
/** 全局账户ID */
|
|
85
|
+
account_id: number;
|
|
86
|
+
/** 成员类型 */
|
|
87
|
+
type: string;
|
|
88
|
+
/** 昵称 */
|
|
89
|
+
nickname: string;
|
|
90
|
+
/** 员工编号 */
|
|
91
|
+
member_id: string | null;
|
|
92
|
+
/** 状态 */
|
|
93
|
+
status: 'active' | 'inactive';
|
|
94
|
+
/** 创建时间 */
|
|
95
|
+
created_at: string;
|
|
96
|
+
/** 更新时间 */
|
|
97
|
+
updated_at: string;
|
|
98
|
+
/** 关联的账户详情 */
|
|
99
|
+
account?: AccountInfo;
|
|
100
|
+
/** 关联的角色列表 */
|
|
101
|
+
roles?: RoleInfo[];
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* 团队成员表单值
|
|
105
|
+
*/
|
|
106
|
+
export interface TeamMemberFormValues {
|
|
107
|
+
/** 昵称/偏好名称 */
|
|
108
|
+
nickname: string;
|
|
109
|
+
/** 成员编号 */
|
|
110
|
+
member_id?: string;
|
|
111
|
+
/** 状态 */
|
|
112
|
+
status: 'active' | 'inactive';
|
|
113
|
+
/** 角色ID列表 */
|
|
114
|
+
tenant_role_ids?: number[];
|
|
115
|
+
/** 邮箱(新建时) */
|
|
116
|
+
email?: string;
|
|
117
|
+
/** 密码(新建时) */
|
|
118
|
+
password?: string;
|
|
119
|
+
/** 名 */
|
|
120
|
+
first_name?: string;
|
|
121
|
+
/** 姓 */
|
|
122
|
+
last_name?: string;
|
|
123
|
+
/** 手机号码 */
|
|
124
|
+
phone?: string;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* 查询参数
|
|
128
|
+
*/
|
|
129
|
+
export interface TeamMemberQueryParams {
|
|
130
|
+
page?: number;
|
|
131
|
+
size?: number;
|
|
132
|
+
search?: string;
|
|
133
|
+
tenant_role_ids?: number[];
|
|
134
|
+
status?: 'active' | 'inactive';
|
|
135
|
+
with?: string[];
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* SaasTeamMembers 组件 Props 接口
|
|
139
|
+
*/
|
|
140
|
+
export interface SaasTeamMembersProps {
|
|
141
|
+
/** 类名 */
|
|
142
|
+
className?: string;
|
|
143
|
+
/** 样式 */
|
|
144
|
+
style?: CSSProperties;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* 抽屉模式
|
|
148
|
+
*/
|
|
149
|
+
export declare type DrawerMode = 'create' | 'edit';
|
|
150
|
+
/**
|
|
151
|
+
* 筛选器状态
|
|
152
|
+
*/
|
|
153
|
+
export interface FilterState {
|
|
154
|
+
roles?: number[];
|
|
155
|
+
status?: string;
|
|
156
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -216,4 +216,4 @@ export declare const updateAppointmentServicePrice: (state: any, { start_date, e
|
|
|
216
216
|
* @Author: WangHan
|
|
217
217
|
* @Date: 2024-12-24 11:32
|
|
218
218
|
*/
|
|
219
|
-
export declare const updateServicePrice: (state: any) => Promise<any
|
|
219
|
+
export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
|
|
@@ -9,7 +9,7 @@ import { PosProps } from './const';
|
|
|
9
9
|
*/
|
|
10
10
|
declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
|
|
11
11
|
className?: string | undefined;
|
|
12
|
-
onChange?: ((status: "
|
|
12
|
+
onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
|
|
13
13
|
[keys: string]: unknown;
|
|
14
14
|
} | undefined, other?: any) => void) | undefined;
|
|
15
15
|
onClose: () => void;
|
|
@@ -11,7 +11,7 @@ import './device.less';
|
|
|
11
11
|
declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, containerStyle, }: {
|
|
12
12
|
api: PayProps['api'];
|
|
13
13
|
className?: string | undefined;
|
|
14
|
-
onChange?: ((status: "
|
|
14
|
+
onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
|
|
15
15
|
[keys: string]: unknown;
|
|
16
16
|
} | undefined, other?: any) => void) | undefined;
|
|
17
17
|
onClose: () => void;
|
|
@@ -15,11 +15,11 @@ export declare const useStoreRef: <T extends {
|
|
|
15
15
|
readonly numRef: React.MutableRefObject<string | number | undefined>;
|
|
16
16
|
readonly orderIdRef: React.MutableRefObject<string | number>;
|
|
17
17
|
readonly modeRef: React.MutableRefObject<ModeEnum>;
|
|
18
|
-
readonly statusRef: React.MutableRefObject<"
|
|
18
|
+
readonly statusRef: React.MutableRefObject<"loading" | "success" | "warn" | "init" | "fail" | "pedding" | "resove" | "reject" | "question">;
|
|
19
19
|
readonly netRef: React.MutableRefObject<boolean | undefined>;
|
|
20
20
|
readonly symbolRef: React.MutableRefObject<string>;
|
|
21
21
|
readonly amountRef: React.MutableRefObject<string | number>;
|
|
22
|
-
readonly eftposRef: React.MutableRefObject<"
|
|
22
|
+
readonly eftposRef: React.MutableRefObject<"stripe" | "payo" | "tyro" | "windcave" | "linkly" | "huifu">;
|
|
23
23
|
readonly clientRef: React.MutableRefObject<ClientEnum>;
|
|
24
24
|
readonly dataRef: React.MutableRefObject<import("./store").State>;
|
|
25
25
|
};
|
|
@@ -178,7 +178,7 @@ export declare const updateCustom: (payload: {
|
|
|
178
178
|
export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
|
|
179
179
|
type: EActionTypes;
|
|
180
180
|
payload: {
|
|
181
|
-
status: "
|
|
181
|
+
status: "loading" | "success" | "warn" | "fail" | "question";
|
|
182
182
|
};
|
|
183
183
|
};
|
|
184
184
|
/**
|
|
@@ -299,10 +299,10 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
|
299
299
|
name?: string | undefined;
|
|
300
300
|
symbol?: string | undefined;
|
|
301
301
|
amount?: string | number | undefined;
|
|
302
|
-
mode?: "pay" | "
|
|
302
|
+
mode?: "pay" | "refund" | "fullPay" | "query" | undefined;
|
|
303
303
|
order_id?: string | number | undefined;
|
|
304
|
-
eftpos?: "
|
|
305
|
-
action?: "
|
|
304
|
+
eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | "huifu" | undefined;
|
|
305
|
+
action?: "pay" | "amount" | "deviceList" | undefined;
|
|
306
306
|
key?: number | undefined;
|
|
307
307
|
step?: number | undefined;
|
|
308
308
|
title?: string | undefined;
|
|
@@ -312,7 +312,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
|
312
312
|
net?: boolean | undefined;
|
|
313
313
|
component?: string | undefined;
|
|
314
314
|
form?: string | undefined;
|
|
315
|
-
status?: "
|
|
315
|
+
status?: "loading" | "success" | "warn" | "init" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
|
|
316
316
|
warn?: string | undefined;
|
|
317
317
|
steps?: {
|
|
318
318
|
/** 用于重置当前步骤 */
|