@beabee/beabee-common 0.20.0 → 0.20.1

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.
@@ -21,6 +21,7 @@ __reExport(search_exports, require("./contacts.cjs"), module.exports);
21
21
  __reExport(search_exports, require("./notices.cjs"), module.exports);
22
22
  __reExport(search_exports, require("./operators.cjs"), module.exports);
23
23
  __reExport(search_exports, require("./payments.cjs"), module.exports);
24
+ __reExport(search_exports, require("./segments.cjs"), module.exports);
24
25
  // Annotate the CommonJS export names for ESM import in node:
25
26
  0 && (module.exports = {
26
27
  ...require("./api-keys.cjs"),
@@ -28,5 +29,6 @@ __reExport(search_exports, require("./payments.cjs"), module.exports);
28
29
  ...require("./contacts.cjs"),
29
30
  ...require("./notices.cjs"),
30
31
  ...require("./operators.cjs"),
31
- ...require("./payments.cjs")
32
+ ...require("./payments.cjs"),
33
+ ...require("./segments.cjs")
32
34
  });
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var segments_exports = {};
20
+ __export(segments_exports, {
21
+ segmentFilters: () => segmentFilters
22
+ });
23
+ module.exports = __toCommonJS(segments_exports);
24
+ const segmentFilters = {
25
+ id: {
26
+ type: "text"
27
+ },
28
+ name: {
29
+ type: "text"
30
+ },
31
+ description: {
32
+ type: "text"
33
+ }
34
+ };
35
+ // Annotate the CommonJS export names for ESM import in node:
36
+ 0 && (module.exports = {
37
+ segmentFilters
38
+ });
@@ -98,6 +98,7 @@ __reExport(types_exports, require("./rule-operator.cjs"), module.exports);
98
98
  __reExport(types_exports, require("./rule-opperator-params.cjs"), module.exports);
99
99
  __reExport(types_exports, require("./rule-value.cjs"), module.exports);
100
100
  __reExport(types_exports, require("./rule.cjs"), module.exports);
101
+ __reExport(types_exports, require("./segment-filter-name.cjs"), module.exports);
101
102
  __reExport(types_exports, require("./stripe-fee-country.cjs"), module.exports);
102
103
  __reExport(types_exports, require("./text-case.cjs"), module.exports);
103
104
  __reExport(types_exports, require("./unit-matches.cjs"), module.exports);
@@ -194,6 +195,7 @@ __reExport(types_exports, require("./validator.cjs"), module.exports);
194
195
  ...require("./rule-opperator-params.cjs"),
195
196
  ...require("./rule-value.cjs"),
196
197
  ...require("./rule.cjs"),
198
+ ...require("./segment-filter-name.cjs"),
197
199
  ...require("./stripe-fee-country.cjs"),
198
200
  ...require("./text-case.cjs"),
199
201
  ...require("./unit-matches.cjs"),
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+ var segment_filter_name_exports = {};
16
+ module.exports = __toCommonJS(segment_filter_name_exports);
@@ -4,3 +4,4 @@ export * from "./contacts.js";
4
4
  export * from "./notices.js";
5
5
  export * from "./operators.js";
6
6
  export * from "./payments.js";
7
+ export * from "./segments.js";
@@ -0,0 +1,14 @@
1
+ const segmentFilters = {
2
+ id: {
3
+ type: "text"
4
+ },
5
+ name: {
6
+ type: "text"
7
+ },
8
+ description: {
9
+ type: "text"
10
+ }
11
+ };
12
+ export {
13
+ segmentFilters
14
+ };
@@ -81,6 +81,7 @@ export * from "./rule-operator.js";
81
81
  export * from "./rule-opperator-params.js";
82
82
  export * from "./rule-value.js";
83
83
  export * from "./rule.js";
84
+ export * from "./segment-filter-name.js";
84
85
  export * from "./stripe-fee-country.js";
85
86
  export * from "./text-case.js";
86
87
  export * from "./unit-matches.js";
File without changes
@@ -4,3 +4,4 @@ export * from "./contacts.ts";
4
4
  export * from "./notices.ts";
5
5
  export * from "./operators.ts";
6
6
  export * from "./payments.ts";
7
+ export * from "./segments.ts";
@@ -0,0 +1,11 @@
1
+ export declare const segmentFilters: {
2
+ readonly id: {
3
+ readonly type: "text";
4
+ };
5
+ readonly name: {
6
+ readonly type: "text";
7
+ };
8
+ readonly description: {
9
+ readonly type: "text";
10
+ };
11
+ };
@@ -81,6 +81,7 @@ export * from "./rule-operator.ts";
81
81
  export * from "./rule-opperator-params.ts";
82
82
  export * from "./rule-value.ts";
83
83
  export * from "./rule.ts";
84
+ export * from "./segment-filter-name.ts";
84
85
  export * from "./stripe-fee-country.ts";
85
86
  export * from "./text-case.ts";
86
87
  export * from "./unit-matches.ts";
@@ -0,0 +1,2 @@
1
+ import type { segmentFilters } from "../search/segments.ts";
2
+ export type SegmentFilterName = keyof typeof segmentFilters;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beabee/beabee-common",
3
- "version": "0.20.0",
3
+ "version": "0.20.1",
4
4
  "description": "Shared code between Beabee projects for Node.js, Deno and the browser",
5
5
  "type": "module",
6
6
  "main": "./dist/cjs/index.cjs",