@aglyn/plugins-bookings 1.0.0-beta.268 → 1.0.0-beta.270

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aglyn/plugins-bookings",
3
- "version": "1.0.0-beta.268",
3
+ "version": "1.0.0-beta.270",
4
4
  "license": "Apache-2.0",
5
5
  "homepage": "https://aglyn.com",
6
6
  "repository": {
@@ -25,16 +25,16 @@
25
25
  "./package.json": "./package.json"
26
26
  },
27
27
  "dependencies": {
28
- "@aglyn/aglyn": "1.0.0-beta.268",
29
- "@aglyn/shared-data-mdi": "1.0.0-beta.268",
30
- "@aglyn/shared-ui-jsx": "1.0.0-beta.268",
31
- "@aglyn/shared-ui-snackstack": "1.0.0-beta.268",
32
- "@aglyn/shared-util-email": "1.0.0-beta.268",
33
- "@aglyn/shared-util-http": "1.0.0-beta.268",
34
- "@aglyn/shared-util-timestamp": "1.0.0-beta.268",
35
- "@aglyn/tenant-data-admin": "1.0.0-beta.268",
36
- "@aglyn/tenant-feature-instance": "1.0.0-beta.268",
37
- "@aglyn/tenant-runtime": "1.0.0-beta.268",
28
+ "@aglyn/aglyn": "1.0.0-beta.270",
29
+ "@aglyn/shared-data-mdi": "1.0.0-beta.270",
30
+ "@aglyn/shared-ui-jsx": "1.0.0-beta.270",
31
+ "@aglyn/shared-ui-snackstack": "1.0.0-beta.270",
32
+ "@aglyn/shared-util-email": "1.0.0-beta.270",
33
+ "@aglyn/shared-util-http": "1.0.0-beta.270",
34
+ "@aglyn/shared-util-timestamp": "1.0.0-beta.270",
35
+ "@aglyn/tenant-data-admin": "1.0.0-beta.270",
36
+ "@aglyn/tenant-feature-instance": "1.0.0-beta.270",
37
+ "@aglyn/tenant-runtime": "1.0.0-beta.270",
38
38
  "@swc/helpers": "0.5.23"
39
39
  },
40
40
  "peerDependencies": {
@@ -16,6 +16,8 @@
16
16
  */ // The registry's own module, not the `@aglyn/aglyn/server` barrel: boot needs
17
17
  // one registry, not the whole server surface.
18
18
  import { registerPluginPersonEraser } from "@aglyn/aglyn/plugin-manager/plugin-person-erasure";
19
+ import { registerPluginSearchSources } from "@aglyn/aglyn/plugin-manager/plugin-search-sources";
20
+ import { BOOKINGS_SEARCH_SOURCES } from "./model/bookings-search-sources.js";
19
21
  import { registerPluginTransferResource } from "@aglyn/aglyn/plugin-manager/plugin-transfer-resources";
20
22
  import { declarePluginDomainEvents } from "@aglyn/aglyn/plugin-manager/plugin-domain-events";
21
23
  import { registerApiV1SiteResource } from "@aglyn/tenant-data-admin/server/api-v1-resources";
@@ -99,6 +101,12 @@ function bookingsTransferResource() {
99
101
  }, {
100
102
  pluginId: BUNDLE_ID
101
103
  });
104
+ // What the native apps' one box finds in a site's bookings (AGL-3943): the
105
+ // palette's own group, under the extension's plan flag.
106
+ registerPluginSearchSources(BOOKINGS_SEARCH_SOURCES, {
107
+ pluginId: BUNDLE_ID,
108
+ featureFlag: 'bookings'
109
+ });
102
110
  }
103
111
 
104
112
  //# sourceMappingURL=declarations.console-server.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../libs/plugins/bookings/src/lib/declarations.console-server.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2026 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// The registry's own module, not the `@aglyn/aglyn/server` barrel: boot needs\n// one registry, not the whole server surface.\nimport { registerPluginPersonEraser } from '@aglyn/aglyn/plugin-manager/plugin-person-erasure'\nimport {\n registerPluginTransferResource,\n type PluginTransferResource,\n} from '@aglyn/aglyn/plugin-manager/plugin-transfer-resources'\nimport { declarePluginDomainEvents } from '@aglyn/aglyn/plugin-manager/plugin-domain-events'\nimport { registerApiV1SiteResource } from '@aglyn/tenant-data-admin/server/api-v1-resources'\nimport { BUNDLE_ID } from './constants/bundle-common'\nimport { BOOKING_EVENT_DECLARATIONS } from './model/booking-events'\nimport {\n BOOKINGS_TRANSFER_MATCH_KEYS,\n BOOKINGS_TRANSFER_RESOURCE,\n} from './transfer/bookings-transfer-common'\n\n/**\n * The `bookings` transfer resource over the platform's Firestore, built on\n * first use: the resource module and the Admin SDK load with the first\n * export, not at boot.\n */\nlet bookingsTransfer: Promise<PluginTransferResource> | null = null\nfunction bookingsTransferResource(): Promise<PluginTransferResource> {\n return (bookingsTransfer ??= import('./transfer/bookings-transfer.server')\n .then(({ adminBookingsTransferResource }) =>\n adminBookingsTransferResource(),\n )\n .catch((error: unknown) => {\n // A failed load is retried by the next export rather than remembered.\n bookingsTransfer = null\n throw error\n }))\n}\n\n/**\n * The bookings plugin's CONSOLE-ONLY server declarations (AGL-3080), named\n * under `consoleServerDeclarations` in `plugins.config.json` and run at the\n * console's boot. The tenant runtime registers none of it.\n *\n * Its share of a person erasure: every booking the person made on a site of\n * the workspace keeps its service and its time, with the person taken off it\n * (`server/person-eraser.ts`). Declared `requiredPersonEraser`, because the\n * erasure promises it — a console whose boot skipped this refuses to erase.\n *\n * Its `bookings` transfer resource: every booking of a site, exported and\n * never imported (`transfer/bookings-transfer.ts` says why).\n *\n * Its bookings on the customer REST API, `/v1/sites/{siteId}/bookings`\n * (AGL-3643), and the booking events it raises, declared.\n *\n * Light at boot: the eraser, the export and the Admin SDK they bring load\n * with the first erasure or export. Registering again replaces this plugin's\n * own.\n */\nexport function registerBookingsConsoleServerDeclarations(): void {\n // The booking events this plugin raises (AGL-3643), named for the pickers\n // and diagnostics that list what is declared; raising needs no declaration.\n declarePluginDomainEvents(BOOKING_EVENT_DECLARATIONS, { pluginId: BUNDLE_ID })\n // A site's bookings on the customer REST API (AGL-3643), read-only. The\n // handler asks its scope and then the plan, so no `entitlement` is named\n // here: the router would ask them the other way round.\n registerApiV1SiteResource(\n 'bookings',\n {\n handle: async (...args) => (await import('./server/api-v1/bookings')).handleBookings(...args),\n describe: async () => (await import('./server/api-v1/openapi')).BOOKINGS_API_V1_DESCRIPTION,\n },\n { pluginId: BUNDLE_ID },\n )\n registerPluginPersonEraser(\n async (request) =>\n (await import('./server/person-eraser')).bookingsPersonEraser(request),\n { pluginId: BUNDLE_ID },\n )\n registerPluginTransferResource(\n BOOKINGS_TRANSFER_RESOURCE,\n {\n fields: async (ctx) =>\n (await bookingsTransferResource()).fields?.(ctx) ?? { standard: [] },\n // Read synchronously by the routes, so a plain array, not a loaded one.\n matchKeys: BOOKINGS_TRANSFER_MATCH_KEYS,\n count: async (ctx, options) =>\n (await bookingsTransferResource()).count?.(ctx, options) ?? 0,\n readPage: async (ctx, cursor, fieldIds, options) => {\n const resource = await bookingsTransferResource()\n if (!resource.readPage) throw new Error('bookings export: no reader')\n return resource.readPage(ctx, cursor, fieldIds, options)\n },\n lookup: async (ctx, requests) => {\n const resource = await bookingsTransferResource()\n if (!resource.lookup) throw new Error('bookings export: no lookup')\n return resource.lookup(ctx, requests)\n },\n },\n { pluginId: BUNDLE_ID },\n )\n}\n"],"names":["registerPluginPersonEraser","registerPluginTransferResource","declarePluginDomainEvents","registerApiV1SiteResource","BUNDLE_ID","BOOKING_EVENT_DECLARATIONS","BOOKINGS_TRANSFER_MATCH_KEYS","BOOKINGS_TRANSFER_RESOURCE","bookingsTransfer","bookingsTransferResource","then","adminBookingsTransferResource","catch","error","registerBookingsConsoleServerDeclarations","pluginId","handle","args","handleBookings","describe","BOOKINGS_API_V1_DESCRIPTION","request","bookingsPersonEraser","fields","ctx","standard","matchKeys","count","options","readPage","cursor","fieldIds","resource","Error","lookup","requests"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GAED,8EAA8E;AAC9E,8CAA8C;AAC9C,SAASA,0BAA0B,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AA,CAAC,QAAA,MAAMnB,4BAA4BkB,KAAK,qBAAxC,YAAC,OAA0CH,KAAKI,2BAAY;;QAC9DC,UAAU,OAAOL,KAAKM,QAAQC,UAAUH;YACtC,MAAMI,WAAW,MAAMvB;YACvB,IAAI,CAACuB,SAASH,QAAQ,EAAE,MAAM,IAAII,MAAM;YACxC,OAAOD,SAASH,QAAQ,CAACL,KAAKM,QAAQC,UAAUH;QAClD;QACAM,QAAQ,OAAOV,KAAKW;YAClB,MAAMH,WAAW,MAAMvB;YACvB,IAAI,CAACuB,SAASE,MAAM,EAAE,MAAM,IAAID,MAAM;YACtC,OAAOD,SAASE,MAAM,CAACV,KAAKW;QAC9B;IACF,GACA;QAAEpB,UAAUX;IAAU;AAE1B"}
1
+ {"version":3,"sources":["../../../../../../libs/plugins/bookings/src/lib/declarations.console-server.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2026 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// The registry's own module, not the `@aglyn/aglyn/server` barrel: boot needs\n// one registry, not the whole server surface.\nimport { registerPluginPersonEraser } from '@aglyn/aglyn/plugin-manager/plugin-person-erasure'\nimport { registerPluginSearchSources } from '@aglyn/aglyn/plugin-manager/plugin-search-sources'\nimport { BOOKINGS_SEARCH_SOURCES } from './model/bookings-search-sources'\nimport {\n registerPluginTransferResource,\n type PluginTransferResource,\n} from '@aglyn/aglyn/plugin-manager/plugin-transfer-resources'\nimport { declarePluginDomainEvents } from '@aglyn/aglyn/plugin-manager/plugin-domain-events'\nimport { registerApiV1SiteResource } from '@aglyn/tenant-data-admin/server/api-v1-resources'\nimport { BUNDLE_ID } from './constants/bundle-common'\nimport { BOOKING_EVENT_DECLARATIONS } from './model/booking-events'\nimport {\n BOOKINGS_TRANSFER_MATCH_KEYS,\n BOOKINGS_TRANSFER_RESOURCE,\n} from './transfer/bookings-transfer-common'\n\n/**\n * The `bookings` transfer resource over the platform's Firestore, built on\n * first use: the resource module and the Admin SDK load with the first\n * export, not at boot.\n */\nlet bookingsTransfer: Promise<PluginTransferResource> | null = null\nfunction bookingsTransferResource(): Promise<PluginTransferResource> {\n return (bookingsTransfer ??= import('./transfer/bookings-transfer.server')\n .then(({ adminBookingsTransferResource }) =>\n adminBookingsTransferResource(),\n )\n .catch((error: unknown) => {\n // A failed load is retried by the next export rather than remembered.\n bookingsTransfer = null\n throw error\n }))\n}\n\n/**\n * The bookings plugin's CONSOLE-ONLY server declarations (AGL-3080), named\n * under `consoleServerDeclarations` in `plugins.config.json` and run at the\n * console's boot. The tenant runtime registers none of it.\n *\n * Its share of a person erasure: every booking the person made on a site of\n * the workspace keeps its service and its time, with the person taken off it\n * (`server/person-eraser.ts`). Declared `requiredPersonEraser`, because the\n * erasure promises it — a console whose boot skipped this refuses to erase.\n *\n * Its `bookings` transfer resource: every booking of a site, exported and\n * never imported (`transfer/bookings-transfer.ts` says why).\n *\n * Its bookings on the customer REST API, `/v1/sites/{siteId}/bookings`\n * (AGL-3643), and the booking events it raises, declared.\n *\n * Light at boot: the eraser, the export and the Admin SDK they bring load\n * with the first erasure or export. Registering again replaces this plugin's\n * own.\n */\nexport function registerBookingsConsoleServerDeclarations(): void {\n // The booking events this plugin raises (AGL-3643), named for the pickers\n // and diagnostics that list what is declared; raising needs no declaration.\n declarePluginDomainEvents(BOOKING_EVENT_DECLARATIONS, { pluginId: BUNDLE_ID })\n // A site's bookings on the customer REST API (AGL-3643), read-only. The\n // handler asks its scope and then the plan, so no `entitlement` is named\n // here: the router would ask them the other way round.\n registerApiV1SiteResource(\n 'bookings',\n {\n handle: async (...args) => (await import('./server/api-v1/bookings')).handleBookings(...args),\n describe: async () => (await import('./server/api-v1/openapi')).BOOKINGS_API_V1_DESCRIPTION,\n },\n { pluginId: BUNDLE_ID },\n )\n registerPluginPersonEraser(\n async (request) =>\n (await import('./server/person-eraser')).bookingsPersonEraser(request),\n { pluginId: BUNDLE_ID },\n )\n registerPluginTransferResource(\n BOOKINGS_TRANSFER_RESOURCE,\n {\n fields: async (ctx) =>\n (await bookingsTransferResource()).fields?.(ctx) ?? { standard: [] },\n // Read synchronously by the routes, so a plain array, not a loaded one.\n matchKeys: BOOKINGS_TRANSFER_MATCH_KEYS,\n count: async (ctx, options) =>\n (await bookingsTransferResource()).count?.(ctx, options) ?? 0,\n readPage: async (ctx, cursor, fieldIds, options) => {\n const resource = await bookingsTransferResource()\n if (!resource.readPage) throw new Error('bookings export: no reader')\n return resource.readPage(ctx, cursor, fieldIds, options)\n },\n lookup: async (ctx, requests) => {\n const resource = await bookingsTransferResource()\n if (!resource.lookup) throw new Error('bookings export: no lookup')\n return resource.lookup(ctx, requests)\n },\n },\n { pluginId: BUNDLE_ID },\n )\n // What the native apps' one box finds in a site's bookings (AGL-3943): the\n // palette's own group, under the extension's plan flag.\n registerPluginSearchSources(BOOKINGS_SEARCH_SOURCES, { pluginId: BUNDLE_ID, featureFlag: 'bookings' })\n}\n"],"names":["registerPluginPersonEraser","registerPluginSearchSources","BOOKINGS_SEARCH_SOURCES","registerPluginTransferResource","declarePluginDomainEvents","registerApiV1SiteResource","BUNDLE_ID","BOOKING_EVENT_DECLARATIONS","BOOKINGS_TRANSFER_MATCH_KEYS","BOOKINGS_TRANSFER_RESOURCE","bookingsTransfer","bookingsTransferResource","then","adminBookingsTransferResource","catch","error","registerBookingsConsoleServerDeclarations","pluginId","handle","args","handleBookings","describe","BOOKINGS_API_V1_DESCRIPTION","request","bookingsPersonEraser","fields","ctx","standard","matchKeys","count","options","readPage","cursor","fieldIds","resource","Error","lookup","requests","featureFlag"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GAED,8EAA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Q;gBAAEC,UAAU,EAAE;YAAC;;QACrE,wEAAwE;QACxEC,WAAWpB;QACXqB,OAAO,OAAOH,KAAKI;;gBACjB,QAAC;4BAAD,SAAA,CAAC,QAAA,MAAMnB,4BAA4BkB,KAAK,qBAAxC,YAAC,OAA0CH,KAAKI,2BAAY;;QAC9DC,UAAU,OAAOL,KAAKM,QAAQC,UAAUH;YACtC,MAAMI,WAAW,MAAMvB;YACvB,IAAI,CAACuB,SAASH,QAAQ,EAAE,MAAM,IAAII,MAAM;YACxC,OAAOD,SAASH,QAAQ,CAACL,KAAKM,QAAQC,UAAUH;QAClD;QACAM,QAAQ,OAAOV,KAAKW;YAClB,MAAMH,WAAW,MAAMvB;YACvB,IAAI,CAACuB,SAASE,MAAM,EAAE,MAAM,IAAID,MAAM;YACtC,OAAOD,SAASE,MAAM,CAACV,KAAKW;QAC9B;IACF,GACA;QAAEpB,UAAUX;IAAU;IAExB,2EAA2E;IAC3E,wDAAwD;IACxDL,4BAA4BC,yBAAyB;QAAEe,UAAUX;QAAWgC,aAAa;IAAW;AACtG"}
@@ -0,0 +1,28 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2026 Aglyn LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { type NativeNavContribution, type NativeNavCreateContribution } from '@aglyn/aglyn/app-utils/native-nav';
18
+ /**
19
+ * The Bookings area in the native apps' navigation (AGL-3943): the rows this plugin
20
+ * adds to the manifest the shells draw, placed into the core's lists by
21
+ * `order` (`assembleNativeNav`, `generate:native-contracts`). Labels are the
22
+ * console's words, held by `apps/console/specs/native-nav-manifest.spec.ts`.
23
+ *
24
+ * Imports only the core's plain nav module, so the native contracts read it.
25
+ */
26
+ export declare const NATIVE_NAV_ROWS: readonly NativeNavContribution[];
27
+ /** A bookable service, the console's "Add service" on Bookings. */
28
+ export declare const NATIVE_NAV_CREATE: readonly NativeNavCreateContribution[];
@@ -0,0 +1,59 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2026 Aglyn LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */ import { nativeNavIcon, nativeNavRef } from "@aglyn/aglyn/app-utils/native-nav";
17
+ /**
18
+ * The Bookings area in the native apps' navigation (AGL-3943): the rows this plugin
19
+ * adds to the manifest the shells draw, placed into the core's lists by
20
+ * `order` (`assembleNativeNav`, `generate:native-contracts`). Labels are the
21
+ * console's words, held by `apps/console/specs/native-nav-manifest.spec.ts`.
22
+ *
23
+ * Imports only the core's plain nav module, so the native contracts read it.
24
+ */ export const NATIVE_NAV_ROWS = [
25
+ {
26
+ list: 'site',
27
+ group: 'sell',
28
+ row: {
29
+ id: 'bookings',
30
+ label: 'Bookings',
31
+ icon: nativeNavIcon('calendar.badge.clock', 'event_available'),
32
+ screen: 'bookings.calendar',
33
+ pluginId: 'bookings',
34
+ order: 30,
35
+ docs: '/commerce-and-bookings/bookings/overview',
36
+ console: nativeNavRef('hostPluginTab', '/bookings')
37
+ }
38
+ }
39
+ ];
40
+ /** A bookable service, the console's "Add service" on Bookings. */ export const NATIVE_NAV_CREATE = [
41
+ {
42
+ scope: 'site',
43
+ item: {
44
+ id: 'service',
45
+ label: 'Service',
46
+ icon: nativeNavIcon('calendar.badge.clock', 'event_available'),
47
+ screen: 'bookings.services',
48
+ params: {
49
+ new: '1'
50
+ },
51
+ pluginId: 'bookings',
52
+ planFeature: 'bookings',
53
+ order: 40,
54
+ console: nativeNavRef('hostPluginTab', '/bookings')
55
+ }
56
+ }
57
+ ];
58
+
59
+ //# sourceMappingURL=native-nav.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../libs/plugins/bookings/src/lib/native-nav.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2026 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n type NativeNavContribution,\n type NativeNavCreateContribution,\n nativeNavIcon,\n nativeNavRef,\n} from '@aglyn/aglyn/app-utils/native-nav'\n\n/**\n * The Bookings area in the native apps' navigation (AGL-3943): the rows this plugin\n * adds to the manifest the shells draw, placed into the core's lists by\n * `order` (`assembleNativeNav`, `generate:native-contracts`). Labels are the\n * console's words, held by `apps/console/specs/native-nav-manifest.spec.ts`.\n *\n * Imports only the core's plain nav module, so the native contracts read it.\n */\n\nexport const NATIVE_NAV_ROWS: readonly NativeNavContribution[] = [\n {\n list: 'site',\n group: 'sell',\n row: {\n id: 'bookings',\n label: 'Bookings',\n icon: nativeNavIcon('calendar.badge.clock', 'event_available'),\n screen: 'bookings.calendar',\n pluginId: 'bookings',\n order: 30,\n docs: '/commerce-and-bookings/bookings/overview',\n console: nativeNavRef('hostPluginTab', '/bookings'),\n },\n },\n]\n\n/** A bookable service, the console's \"Add service\" on Bookings. */\nexport const NATIVE_NAV_CREATE: readonly NativeNavCreateContribution[] = [\n {\n scope: 'site',\n item: {\n id: 'service',\n label: 'Service',\n icon: nativeNavIcon('calendar.badge.clock', 'event_available'),\n screen: 'bookings.services',\n params: { new: '1' },\n pluginId: 'bookings',\n planFeature: 'bookings',\n order: 40,\n console: nativeNavRef('hostPluginTab', '/bookings'),\n },\n },\n]\n"],"names":["nativeNavIcon","nativeNavRef","NATIVE_NAV_ROWS","list","group","row","id","label","icon","screen","pluginId","order","docs","console","NATIVE_NAV_CREATE","scope","item","params","new","planFeature"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GAED,SAGEA,aAAa,EACbC,YAAY,QACP,oCAAmC;AAE1C;;;;;;;CAOC,GAED,OAAO,MAAMC,kBAAoD;IAC/D;QACEC,MAAM;QACNC,OAAO;QACPC,KAAK;YACHC,IAAI;YACJC,OAAO;YACPC,MAAMR,cAAc,wBAAwB;YAC5CS,QAAQ;YACRC,UAAU;YACVC,OAAO;YACPC,MAAM;YACNC,SAASZ,aAAa,iBAAiB;QACzC;IACF;CACD,CAAA;AAED,iEAAiE,GACjE,OAAO,MAAMa,oBAA4D;IACvE;QACEC,OAAO;QACPC,MAAM;YACJV,IAAI;YACJC,OAAO;YACPC,MAAMR,cAAc,wBAAwB;YAC5CS,QAAQ;YACRQ,QAAQ;gBAAEC,KAAK;YAAI;YACnBR,UAAU;YACVS,aAAa;YACbR,OAAO;YACPE,SAASZ,aAAa,iBAAiB;QACzC;IACF;CACD,CAAA"}